From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/antlr/
Date: Sun, 16 May 2021 19:06:14 +0000 (UTC) [thread overview]
Message-ID: <1621191970.31124a323eb568a6d382f2b062d9be254033b242.fordfrog@gentoo> (raw)
commit: 31124a323eb568a6d382f2b062d9be254033b242
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sun May 16 19:05:47 2021 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> 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 <fordfrog <AT> 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}
-}
next reply other threads:[~2021-05-16 19:06 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-16 19:06 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-16 7:22 [gentoo-commits] repo/gentoo:master commit in: dev-java/antlr/ Ulrich Müller
2024-11-25 8:04 Miroslav Šulc
2024-04-15 7:45 Miroslav Šulc
2022-05-13 17:09 Miroslav Šulc
2022-05-13 14:15 Jakov Smolić
2022-05-12 8:24 Jakov Smolić
2022-05-12 8:24 Jakov Smolić
2022-05-11 14:50 Agostino Sarubbo
2022-04-11 6:19 Miroslav Šulc
2022-03-17 8:56 Miroslav Šulc
2022-03-17 2:09 Sam James
2022-03-17 1:36 Sam James
2022-03-17 0:57 Sam James
2022-03-17 0:21 Sam James
2022-03-09 9:19 Agostino Sarubbo
2022-03-08 13:04 Agostino Sarubbo
2022-02-25 21:31 Sam James
2022-02-24 8:46 Jakov Smolić
2022-02-24 8:46 Jakov Smolić
2022-02-04 8:17 Miroslav Šulc
2022-01-25 9:30 Miroslav Šulc
2021-11-23 21:36 Sam James
2021-11-23 21:36 Sam James
2021-07-18 6:33 Agostino Sarubbo
2021-06-19 11:54 Miroslav Šulc
2021-06-19 10:01 Agostino Sarubbo
2021-06-19 7:53 Miroslav Šulc
2021-06-19 7:53 Miroslav Šulc
2021-06-18 22:28 Sam James
2021-06-18 15:46 Sam James
2021-05-27 8:04 Miroslav Šulc
2021-05-16 19:06 Miroslav Šulc
2021-05-16 19:06 Miroslav Šulc
2021-04-28 9:23 Miroslav Šulc
2020-12-14 11:27 Miroslav Šulc
2020-07-25 2:21 Sam James
2020-07-20 1:10 Sam James
2019-04-20 1:29 Aaron Bauman
2018-03-01 8:39 Michał Górny
2017-07-13 12:13 Alexis Ballier
2017-03-20 11:06 Patrice Clement
2017-01-29 15:41 Fabian Groffen
2016-10-07 20:55 James Le Cuirot
2016-10-07 20:55 James Le Cuirot
2016-10-07 20:55 James Le Cuirot
2016-01-14 21:44 James Le Cuirot
2016-01-14 21:44 James Le Cuirot
2015-12-06 13:46 James Le Cuirot
2015-10-14 15:22 James Le Cuirot
2015-10-14 15:22 James Le Cuirot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1621191970.31124a323eb568a6d382f2b062d9be254033b242.fordfrog@gentoo \
--to=fordfrog@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox