From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E5813158043 for ; Wed, 17 Apr 2024 09:13:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25EC6E29BE; Wed, 17 Apr 2024 09:13:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06A1FE29BE for ; Wed, 17 Apr 2024 09:13:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E058A343464 for ; Wed, 17 Apr 2024 09:13:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75AEF16D3 for ; Wed, 17 Apr 2024 09:13:40 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1713345177.b883c87352b112a7148cdd881948aa1f96e05120.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jflex/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/jflex/jflex-1.6.1-r1.ebuild dev-java/jflex/jflex-1.6.1-r2.ebuild X-VCS-Directories: dev-java/jflex/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: b883c87352b112a7148cdd881948aa1f96e05120 X-VCS-Branch: master Date: Wed, 17 Apr 2024 09:13:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b71bb1e2-109a-4105-9527-a461215aa930 X-Archives-Hash: 912aee1c6ee7c5ff9de1b014a9548e97 commit: b883c87352b112a7148cdd881948aa1f96e05120 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Thu Mar 14 11:46:09 2024 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Wed Apr 17 09:12:57 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b883c873 dev-java/jflex: switch to dev-java/ant also updates EAPI 7 -> 8 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/35723/commits/4fbe65f45313f308d0f5a2630c2d4aad6e227dfc Signed-off-by: Miroslav Šulc gentoo.org> .../{jflex-1.6.1-r1.ebuild => jflex-1.6.1-r2.ebuild} | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/dev-java/jflex/jflex-1.6.1-r1.ebuild b/dev-java/jflex/jflex-1.6.1-r2.ebuild similarity index 86% rename from dev-java/jflex/jflex-1.6.1-r1.ebuild rename to dev-java/jflex/jflex-1.6.1-r2.ebuild index 58580490d2fc..17d1b99fd468 100644 --- a/dev-java/jflex/jflex-1.6.1-r1.ebuild +++ b/dev-java/jflex/jflex-1.6.1-r2.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" +EAPI=8 JAVA_PKG_IUSE="doc source" @@ -10,6 +10,7 @@ inherit java-pkg-2 java-pkg-simple DESCRIPTION="JFlex is a lexical analyzer generator for Java" HOMEPAGE="https://www.jflex.de/" SRC_URI="https://${PN}.de/${P}.tar.gz" +S="${WORKDIR}/${P}" LICENSE="BSD" SLOT="0" @@ -17,7 +18,7 @@ KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~ppc-macos ~x64-macos" IUSE="examples test vim-syntax" RESTRICT="!test? ( test )" -CDEPEND="dev-java/ant-core:0" +CDEPEND=">=dev-java/ant-1.10.14:0" RDEPEND=">=virtual/jre-1.8:* vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) @@ -29,7 +30,6 @@ DEPEND=">=virtual/jdk-1.8:* PDEPEND="dev-java/javacup:0" -S="${WORKDIR}/${P}" JAVA_SRC_DIR="src/main/java" src_prepare() { @@ -59,17 +59,19 @@ src_configure() { JAVACUP=$(echo lib/java-cup-*.jar) fi - JAVA_GENTOO_CLASSPATH_EXTRA="$(java-pkg_getjars --build-only ant-core):${JAVACUP}" + JAVA_GENTOO_CLASSPATH_EXTRA="$(java-pkg_getjar --build-only ant ant.jar):${JAVACUP}" } jflex_compile() { - java "${@}" jflex.Main -d ${JAVA_SRC_DIR}/${PN} --skel src/main/${PN}/skeleton.nested src/main/${PN}/LexScan.flex || die + java "${@}" jflex.Main -d ${JAVA_SRC_DIR}/${PN} \ + --skel src/main/${PN}/skeleton.nested src/main/${PN}/LexScan.flex || die java-pkg-simple_src_compile java-pkg_addres ${PN}.jar src/main/resources } src_compile() { - java -jar "${JAVACUP}" -destdir ${JAVA_SRC_DIR}/${PN} -package ${PN} -parser LexParse -interface src/main/cup/LexParse.cup || die + java -jar "${JAVACUP}" -destdir ${JAVA_SRC_DIR}/${PN} -package ${PN} \ + -parser LexParse -interface src/main/cup/LexParse.cup || die # The IcedTea ARM HotSpot port (as of 2.6.1) hangs when running # jflex. We have patched jflex to fix it but we have to run the @@ -77,8 +79,8 @@ src_compile() { # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2678. use arm && local JFLEX_ARGS="-Xint" - # First compile (without doc/source) using the bundled jflex. - JAVA_PKG_IUSE= jflex_compile -cp "lib/${P}.jar:${JAVACUP}" ${JFLEX_ARGS} + # First compile using the bundled jflex. + jflex_compile -cp "lib/${P}.jar:${JAVACUP}" ${JFLEX_ARGS} # Then recompile using the fresh jflex. jflex_compile -cp "${PN}.jar:${JAVACUP}"