Skip to content

Commit

Permalink
dev-java/antlr: migrated 3.5.2 to eapi7
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/739746
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Miroslav Šulc <[email protected]>
  • Loading branch information
fordfrog committed Dec 14, 2020
1 parent 613e504 commit 328e8d9
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="5"
EAPI=7

inherit eutils java-pkg-2 java-pkg-simple

Expand All @@ -18,21 +18,26 @@ RESTRICT="!test? ( test )"
CDEPEND="dev-java/stringtemplate:4"

RDEPEND="${CDEPEND}
>=virtual/jre-1.6"
>=virtual/jre-1.8"

DEPEND="${CDEPEND}
>=virtual/jdk-1.6
>=virtual/jdk-1.8
test? ( dev-java/junit:4 )"

S="${WORKDIR}/${PN}3-${PV}"
JAVA_GENTOO_CLASSPATH_EXTRA="${S}/${PN}-runtime.jar"
JAVA_GENTOO_CLASSPATH="stringtemplate-4"
PATCHES=(
"${FILESDIR}/${PV}-test-fixes.patch"
)

src_unpack() {
unpack ${P}.tar.gz
}

java_prepare() {
src_prepare() {
default

java-pkg_clean

# This requires StringTemplate v3 and is only needed for
Expand All @@ -42,7 +47,6 @@ java_prepare() {

# Some tests have to be removed as a result.
rm -v tool/src/test/java/org/antlr/test/Test{RewriteTemplates,Templates}.java || die
epatch "${FILESDIR}/${PV}-test-fixes.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
Expand Down

0 comments on commit 328e8d9

Please sign in to comment.