diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-03-12 13:52:30 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-03-14 09:23:31 +0100 |
commit | fc3876841567939d008e2894e16440b6382e4399 (patch) | |
tree | 602ddd4ee33cefbcd194964469dfd0e0a2af5315 | |
parent | dev-java/jmock: SRC_URI HOMEPAGE (diff) | |
download | gentoo-fc3876841567939d008e2894e16440b6382e4399.tar.gz gentoo-fc3876841567939d008e2894e16440b6382e4399.tar.bz2 gentoo-fc3876841567939d008e2894e16440b6382e4399.zip |
dev-java/jmock: EAPI 7
Bug: https://bugs.gentoo.org/775635
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/19895
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r-- | dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch | 4 | ||||
-rw-r--r-- | dev-java/jmock/jmock-1.2.0-r2.ebuild | 48 | ||||
-rw-r--r-- | dev-java/jmock/jmock-2.6.1-r1.ebuild | 43 |
3 files changed, 93 insertions, 2 deletions
diff --git a/dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch b/dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch index 1e3a939d26d3..75b5195c37a2 100644 --- a/dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch +++ b/dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch @@ -1,5 +1,5 @@ ---- src/org/jmock/expectation/AssertMo.java.orig 2015-08-28 10:15:13.490000000 +0000 -+++ src/org/jmock/expectation/AssertMo.java 2015-08-28 10:15:22.206000000 +0000 +--- a/src/org/jmock/expectation/AssertMo.java.orig 2015-08-28 10:15:13.490000000 +0000 ++++ b/src/org/jmock/expectation/AssertMo.java 2015-08-28 10:15:22.206000000 +0000 @@ -73,15 +73,15 @@ assertTrue("Should not have verified", threwException); } diff --git a/dev-java/jmock/jmock-1.2.0-r2.ebuild b/dev-java/jmock/jmock-1.2.0-r2.ebuild new file mode 100644 index 000000000000..f30beade3c05 --- /dev/null +++ b/dev-java/jmock/jmock-1.2.0-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Library for testing Java code using mock objects" +HOMEPAGE="http://jmock.org/" +SRC_URI="http://jmock.org/downloads/${P}-jars.zip" + +LICENSE="BSD" +SLOT="1.0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" + +CDEPEND="dev-java/junit:0" + +RDEPEND=">=virtual/jre-1.8:* + ${CDEPEND}" + +DEPEND="app-arch/unzip + >=virtual/jdk-1.8:* + ${CDEPEND}" + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="src" +JAVA_GENTOO_CLASSPATH="junit" + +PATCHES=( + # This patch isn't changing the behaviour if jmock per se. + # Only the formatting is altered. + "${FILESDIR}"/${P}-AbstractMo.patch +) + +src_unpack() { + unpack ${A} + unzip "${P}"/jmock-core-"${PV}".jar -d src || die + mv src "${P}" || die +} + +src_prepare() { + default + find -name "*.class" -delete || die + rm *.jar || die +} diff --git a/dev-java/jmock/jmock-2.6.1-r1.ebuild b/dev-java/jmock/jmock-2.6.1-r1.ebuild new file mode 100644 index 000000000000..150ebf8f03ce --- /dev/null +++ b/dev-java/jmock/jmock-2.6.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Library for testing Java code using mock objects" +HOMEPAGE="http://jmock.org" +SRC_URI="http://jmock.org/downloads/${P}-jars.zip" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +CDEPEND="dev-java/hamcrest-core:1.3 + dev-java/hamcrest-library:1.3 + dev-java/junit:4" + +RDEPEND=">=virtual/jre-1.8:* + ${CDEPEND}" + +DEPEND="app-arch/unzip + >=virtual/jdk-1.8:* + ${CDEPEND}" + +JAVA_GENTOO_CLASSPATH="hamcrest-core-1.3,hamcrest-library-1.3,junit-4" + +S="${WORKDIR}/${P}" + +src_unpack() { + unpack ${A} + cd "${S}" || die + unzip ${P}.jar -d src || die + rm *.jar || die +} + +src_prepare() { + default + find -name "*.class" -delete || die +} |