commit:     328e8d91d758ff48a29908db00c416a4389f4220
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 14 11:27:40 2020 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Dec 14 11:27:40 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=328e8d91

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 <AT> gentoo.org>

 .../antlr/{antlr-3.5.2.ebuild => antlr-3.5.2-r1.ebuild}    | 14 +++++++++-----
 1 file 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
similarity index 95%
rename from dev-java/antlr/antlr-3.5.2.ebuild
rename to dev-java/antlr/antlr-3.5.2-r1.ebuild
index 43986264fbc..72eaa9b7c8b 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

Reply via email to