diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-java/easymock/easymock-3.3.1-r1.ebuild | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-java/easymock/easymock-3.3.1-r1.ebuild')
-rw-r--r-- | dev-java/easymock/easymock-3.3.1-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-java/easymock/easymock-3.3.1-r1.ebuild b/dev-java/easymock/easymock-3.3.1-r1.ebuild new file mode 100644 index 000000000000..3b4e321ccffe --- /dev/null +++ b/dev-java/easymock/easymock-3.3.1-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.easymock:easymock:3.3.1" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Mock Objects for interfaces in JUnit tests by generating them on the fly" +HOMEPAGE="https://easymock.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="3.2" +KEYWORDS="amd64 ~arm64 ppc64 x86" + +CDEPEND=" + dev-java/cglib:3 + dev-java/junit:4 + dev-java/objenesis:0 +" + +DEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND} +" + +S="${WORKDIR}/${PN}-${P}" + +JAVA_ENCODING="ISO-8859-1" + +JAVA_GENTOO_CLASSPATH="cglib-3,junit-4,objenesis" +JAVA_SRC_DIR=( + "${PN}/src/main/java" + "${PN}/src/samples/java" +) + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="${PN}/src/test/java" +JAVA_TEST_EXCLUDES=( + "org.easymock.tests2.EasyMockAnnotationsTest" # "java.lang.InstantiationException" (12 x) + "org.easymock.tests.BaseEasyMockRunnerTest" # No runnable methods +) + +src_prepare() { + default + # error: package com.google.dexmaker.stock does not exist + eapply "${FILESDIR}"/3.3.1-r1-no-android.patch + rm easymock/src/main/java/org/easymock/internal/AndroidClassProxyFactory.java || die + # cannot find symbol o = ProxyBuilder.forClass(ArrayList.class) + rm easymock/src/test/java/org/easymock/tests2/ClassExtensionHelperTest.java || die +} |