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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8C23013835B for ; Sun, 16 May 2021 19:06:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DFA81E0884; Sun, 16 May 2021 19:06:16 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B87F5E0884 for ; Sun, 16 May 2021 19:06:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C3294340FB4 for ; Sun, 16 May 2021 19:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 790B978C for ; Sun, 16 May 2021 19:06:14 +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: <1621191970.31124a323eb568a6d382f2b062d9be254033b242.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/antlr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/antlr/antlr-3.2.ebuild X-VCS-Directories: dev-java/antlr/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 31124a323eb568a6d382f2b062d9be254033b242 X-VCS-Branch: master Date: Sun, 16 May 2021 19:06:14 +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: 92313a55-28f5-4620-bc32-013b967c5be0 X-Archives-Hash: 7621998111a5d73f37df2a8e7bd52378 commit: 31124a323eb568a6d382f2b062d9be254033b242 Author: Miroslav Šulc gentoo org> AuthorDate: Sun May 16 19:05:47 2021 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Sun May 16 19:06:10 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31124a32 dev-java/antlr: dropped obsolete 3.2 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Miroslav Šulc gentoo.org> dev-java/antlr/antlr-3.2.ebuild | 96 ----------------------------------------- 1 file changed, 96 deletions(-) diff --git a/dev-java/antlr/antlr-3.2.ebuild b/dev-java/antlr/antlr-3.2.ebuild deleted file mode 100644 index 3efa9766028..00000000000 --- a/dev-java/antlr/antlr-3.2.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit epatch java-pkg-2 java-pkg-simple - -DESCRIPTION="A parser generator for many languages" -HOMEPAGE="https://www.antlr3.org/" -SRC_URI="https://www.antlr3.org/download/${P}.tar.gz - https://www.antlr3.org/download/${P}.jar" # Prebuilt version needed. -LICENSE="BSD" -SLOT="3" -KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="doc test" -RESTRICT="!test? ( test )" - -CDEPEND=">=dev-java/antlr-2.7.7-r7:0 - dev-java/stringtemplate:0" - -RDEPEND="${CDEPEND} - >=virtual/jre-1.6" - -DEPEND="${CDEPEND} - >=virtual/jdk-1.6 - test? ( dev-java/junit:4 )" - -S="${WORKDIR}/${P}" -JAVA_GENTOO_CLASSPATH_EXTRA="${S}/${PN}-runtime.jar" -JAVA_GENTOO_CLASSPATH="antlr,stringtemplate" - -src_unpack() { - unpack ${P}.tar.gz -} - -java_prepare() { - java-pkg_clean - - # These fixes have been applied in 3.5. - epatch "${FILESDIR}/${PV}-test-fixes.patch" - epatch "${FILESDIR}/${PV}-java-8.patch" - - # Some tests fail under Java 8 in ways that probably aren't limited - # to the tests. This is bad but upstream is never going to update - # 3.2 even though other projects still rely on it. If any issues - # arise, we can only put pressure on those projects to upgrade. - if java-pkg_is-vm-version-ge 1.8; then - rm -v tool/src/test/java/org/antlr/test/Test{DFAConversion,SemanticPredicates,TopologicalSort}.java || die - fi - - # 3.2 has strange hidden files. - find -type f -name "._*.*" -delete || die -} - -src_compile() { - cd "${S}/runtime/Java/src/main" || die - JAVA_JAR_FILENAME="${S}/${PN}-runtime.jar" JAVA_PKG_IUSE="doc" java-pkg-simple_src_compile - - cd "${S}/tool/src/main" || die - - local G; for G in antlr codegen antlr.print assign.types buildnfa define; do # from pom.xml - antlr -o antlr2/org/antlr/grammar/v2/{,${G}.g} || die - done - - # We have applied a patch to fix this version under Java 8. Trouble - # is that we need to run a prebuilt version before we can build our - # own and that version doesn't have the fix applied. We work around - # this by building just the offending class against the prebuilt - # version and then putting them together in the classpath. That - # isn't all. Due to a compiler limitation that Chewi doesn't fully - # understand, this class cannot be compiled by itself without a - # couple of tweaks that have been applied in the Java 8 patch. - ejavac -classpath "${DISTDIR}/${P}.jar" java/org/antlr/tool/CompositeGrammar.java - - java -classpath "java:${DISTDIR}/${P}.jar" org.antlr.Tool $(find antlr3 -name "*.g") || die - JAVA_JAR_FILENAME="${S}/${PN}-tool.jar" java-pkg-simple_src_compile - java-pkg_addres "${S}/${PN}-tool.jar" resources -} - -src_install() { - java-pkg_dojar ${PN}-{runtime,tool}.jar - java-pkg_dolauncher ${PN}${SLOT} --main org.antlr.Tool - use doc && java-pkg_dojavadoc runtime/Java/src/main/target/api -} - -src_test() { - cd tool/src/test/java || die - local CP=".:${S}/${PN}-runtime.jar:${S}/${PN}-tool.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})" - - local TESTS=$(find * -name "Test*.java") - TESTS="${TESTS//.java}" - TESTS="${TESTS//\//.}" - - ejavac -classpath "${CP}" $(find -name "*.java") - ejunit4 -classpath "${CP}" ${TESTS} -}