diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2020-12-14 12:27:40 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2020-12-14 12:27:40 +0100 |
commit | 328e8d91d758ff48a29908db00c416a4389f4220 (patch) | |
tree | 305239f93237056a88e080055b299527d10ad3e1 | |
parent | dev-lang/python: Skip hanging faulthandler test in 3.6.12-r1 (diff) | |
download | gentoo-328e8d91d758ff48a29908db00c416a4389f4220.tar.gz gentoo-328e8d91d758ff48a29908db00c416a4389f4220.tar.bz2 gentoo-328e8d91d758ff48a29908db00c416a4389f4220.zip |
dev-java/antlr: migrated 3.5.2 to eapi7
Closes: https://bugs.gentoo.org/739746
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r-- | dev-java/antlr/antlr-3.5.2-r1.ebuild (renamed from dev-java/antlr/antlr-3.5.2.ebuild) | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/dev-java/antlr/antlr-3.5.2.ebuild b/dev-java/antlr/antlr-3.5.2-r1.ebuild index 43986264fbcd..72eaa9b7c8be 100644 --- a/dev-java/antlr/antlr-3.5.2.ebuild +++ b/dev-java/antlr/antlr-3.5.2-r1.ebuild @@ -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 @@ -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 @@ -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 |