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 B516F158086 for ; Thu, 11 Nov 2021 11:02:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4B442BC0EB; Thu, 11 Nov 2021 11:02:14 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7340D2BC0EB for ; Thu, 11 Nov 2021 11:02:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6B2C3342CB0 for ; Thu, 11 Nov 2021 11:02:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CAD311B8 for ; Thu, 11 Nov 2021 11:02:11 +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: <1636628510.d48317ec0a5b55fa96c6cfcf1db9ede8690a2a1e.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.ebuild X-VCS-Directories: dev-java/jflex/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: d48317ec0a5b55fa96c6cfcf1db9ede8690a2a1e X-VCS-Branch: master Date: Thu, 11 Nov 2021 11:02:11 +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: 85baab10-3537-4f41-b8c4-74f748bef20b X-Archives-Hash: d248c885c9f67198923295bfda051347 commit: d48317ec0a5b55fa96c6cfcf1db9ede8690a2a1e Author: Miroslav Šulc gentoo org> AuthorDate: Thu Nov 11 11:01:50 2021 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Thu Nov 11 11:01:50 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d48317ec dev-java/jflex: dropped obsolete 1.6.1 Closes: https://bugs.gentoo.org/776886 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Miroslav Šulc gentoo.org> dev-java/jflex/jflex-1.6.1.ebuild | 121 -------------------------------------- 1 file changed, 121 deletions(-) diff --git a/dev-java/jflex/jflex-1.6.1.ebuild b/dev-java/jflex/jflex-1.6.1.ebuild deleted file mode 100644 index 32c5d341323..00000000000 --- a/dev-java/jflex/jflex-1.6.1.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -JAVA_PKG_IUSE="doc source" - -inherit epatch 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" -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~ppc-macos ~x64-macos" -IUSE="examples test vim-syntax" -RESTRICT="!test? ( test )" - -CDEPEND="dev-java/ant-core:0" - -RDEPEND=">=virtual/jre-1.6 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) - ${CDEPEND}" - -DEPEND=">=virtual/jdk-1.6 - test? ( dev-java/junit:4 ) - ${CDEPEND}" - -PDEPEND=">=dev-java/javacup-0.11b_p20151001:0" - -S="${WORKDIR}/${P}" -JAVA_SRC_DIR="src/main/java" - -java_prepare() { - # See below for details. - epatch "${FILESDIR}/icedtea-arm.patch" - - # We need the bundled jflex.jar. - rm -rv ${JAVA_SRC_DIR}/java_cup examples/pom.xml || die - - # Remove the bundled java-cup.jar if unneeded. - if has_version ${PDEPEND}; then - rm -v lib/java-cup-*.jar || die - fi -} - -src_configure() { - # javacup is a cyclic dependency. Use the package if we have it, - # otherwise use the bundled version and install the package later. - if has_version ${PDEPEND}; then - # Use PORTAGE_QUIET to suppress a QA warning that is spurious - # thanks to has_version above. This is Portage-specific but - # showing the warning elsewhere isn't the end of the world. - JAVACUP=$(PORTAGE_QUIET=1 java-pkg_getjar --build-only javacup javacup.jar) - else - JAVACUP=$(echo lib/java-cup-*.jar) - fi - - JAVA_GENTOO_CLASSPATH_EXTRA="$(java-pkg_getjars --build-only ant-core):${JAVACUP}" -} - -jflex_compile() { - 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 - - # 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 - # bundled version first. -Xint works around the problem. See - # 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} - - # Then recompile using the fresh jflex. - jflex_compile -cp "${PN}.jar:${JAVACUP}" -} - -src_install() { - java-pkg-simple_src_install - java-pkg_dolauncher ${PN} --main ${PN}.Main - - java-pkg_register-dependency javacup javacup-runtime.jar - java-pkg_register-ant-task - - use examples && java-pkg_doexamples examples - dodoc {changelog,README}.md - - if use doc; then - dodoc doc/*.pdf - docinto html - dodoc doc/*.{css,html,png} doc/COPYRIGHT - fi - - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins lib/${PN}.vim - fi -} - -src_test() { - if use arm && java-pkg_current-vm-matches oracle-jdk-bin-1.8; then - # This results in a StackOverflowError as of 1.8.0.65 but works - # fine on icedtea:7. Don't know about icedtea:8 yet. - rm -v src/test/java/jflex/EmitterTest.java || die - fi - - local CP="src/test/java:${PN}.jar:${JAVA_GENTOO_CLASSPATH_EXTRA}:$(java-pkg_getjars junit-4)" - - local TESTS=$(find src/test/java -name "*Test*.java" -printf "%P\n") - TESTS="${TESTS//.java}" - TESTS="${TESTS//\//.}" - - ejavac -classpath "${CP}" $(find src/test/java -name "*.java") - ejunit4 -classpath "${CP}" ${TESTS} -}