summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2021-06-18 21:01:58 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2021-06-19 09:53:02 +0200
commitfaa9d3b2c09a1e6eb29338d66008625eecf6b577 (patch)
treea9097f7808edbcd9d97db274f7aa8ded699ba0c9 /dev-java/antlr
parentdev-java/antlr: v4.5.3-r1 min java 1.8:* (diff)
downloadgentoo-faa9d3b2c09a1e6eb29338d66008625eecf6b577.tar.gz
gentoo-faa9d3b2c09a1e6eb29338d66008625eecf6b577.tar.bz2
gentoo-faa9d3b2c09a1e6eb29338d66008625eecf6b577.zip
dev-java/antlr: remove unstable obsolete version
Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21314 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/antlr')
-rw-r--r--dev-java/antlr/antlr-4.5.3.ebuild92
1 files changed, 0 insertions, 92 deletions
diff --git a/dev-java/antlr/antlr-4.5.3.ebuild b/dev-java/antlr/antlr-4.5.3.ebuild
deleted file mode 100644
index 3cd757f2a8eb..000000000000
--- a/dev-java/antlr/antlr-4.5.3.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-JAVA_PKG_IUSE="source"
-MAVEN_ID="org.antlr:antlr4:4.5.3"
-
-inherit java-pkg-2 java-pkg-simple
-
-DESCRIPTION="A parser generator for many languages"
-HOMEPAGE="https://www.antlr.org/"
-SRC_URI="https://github.com/${PN}/${PN}4/archive/${PV}.tar.gz -> ${P}.tar.gz
- https://www.antlr.org/download/${P}-complete.jar" # Prebuilt version needed.
-LICENSE="BSD"
-SLOT="4"
-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:3.5
- dev-java/stringtemplate:4
- dev-java/treelayout:0"
-
-RDEPEND="${CDEPEND}
- >=virtual/jre-1.6"
-
-DEPEND="${CDEPEND}
- >=virtual/jdk-1.6
- test? (
- dev-java/hamcrest-core:1.3
- dev-java/junit:4
- )"
-
-S="${WORKDIR}/${PN}4-${PV}"
-JAVA_GENTOO_CLASSPATH="stringtemplate-4,treelayout"
-
-src_unpack() {
- unpack ${P}.tar.gz
-}
-
-java_prepare() {
- java-pkg_clean
-}
-
-src_configure() {
- # TODO: Make java-config accept a jar@package query.
- JAVA_GENTOO_CLASSPATH_EXTRA="${S}/${PN}-runtime.jar:$(java-pkg_getjar antlr-3.5 antlr-runtime.jar)"
-}
-
-src_compile() {
- cd "${S}/runtime/Java/src"
- local G PKG
-
- for G in $(find * -name "*.g4"); do
- PKG="${G%/*}"
- PKG="${PKG//\//.}"
- java -jar "${DISTDIR}/${P}-complete.jar" -package "${PKG}" "${G}" || die
- done
-
- JAVA_JAR_FILENAME="${S}/${PN}-runtime.jar" JAVA_PKG_IUSE="doc" java-pkg-simple_src_compile
-
- cd "${S}/tool/src"
- antlr3.5 $(find -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.v4.Tool
- use doc && java-pkg_dojavadoc runtime/Java/src/target/api
- use source && java-pkg_dosrc runtime/Java/src/org tool/src/org
-}
-
-junit_suite() {
- cd "${S}/$1-testsuite/test" || die
- local CP=".:${S}/runtime-testsuite/test:${S}/${PN}-tool.jar:$(java-pkg_getjars hamcrest-core-1.3,junit-4,${JAVA_GENTOO_CLASSPATH}):${JAVA_GENTOO_CLASSPATH_EXTRA}"
-
- local TESTS=$(find ${2:-*} -name "Test*.java")
- TESTS="${TESTS//.java}"
- TESTS="${TESTS//\//.}"
-
- ejavac -classpath "${CP}" $(find ${2:-*} -name "*.java")
- ejunit4 -classpath "${CP}" ${TESTS}
-}
-
-src_test() {
- # Only run Java runtime tests as we haven't built other languages.
- junit_suite runtime org/antlr/v4/test/runtime/java
- junit_suite tool
-}