diff options
Diffstat (limited to 'dev-java/jmock')
-rw-r--r-- | dev-java/jmock/Manifest | 6 | ||||
-rw-r--r-- | dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch | 27 | ||||
-rw-r--r-- | dev-java/jmock/jmock-1.2.0-r1.ebuild | 47 | ||||
-rw-r--r-- | dev-java/jmock/jmock-2.6.1.ebuild | 43 | ||||
-rw-r--r-- | dev-java/jmock/metadata.xml | 8 |
5 files changed, 131 insertions, 0 deletions
diff --git a/dev-java/jmock/Manifest b/dev-java/jmock/Manifest new file mode 100644 index 000000000000..fdd789c787c0 --- /dev/null +++ b/dev-java/jmock/Manifest @@ -0,0 +1,6 @@ +AUX jmock-1.2.0-AbstractMo.patch 1189 BLAKE2B d10edde92384c86c2cbf9605cffcf25aa0acbd073e8803b88cccca2b4b94839e28458cb02f647cb492615836e7df02562329fb6135876c2a39fe5bb8fa7766bd SHA512 b4d59d16c2c513031b3b36fc2bdf4526cee8bfa405cac4c2c76d850289a835ba6e57d4e042ed4afe2814a217dcc1493afe80af9fd17fa066d1ada96af6dfa663 +DIST jmock-1.2.0-jars.zip 153214 BLAKE2B 2c40696229018406f3b60559013b73b5331c223da6e2743830c4c9b8b728484b1ebed8fb347c240f50f6936c2fd1e4ee85b754315682047a87a14414effc3a48 SHA512 5290f1d14cbc3d0f223bdaf59716b037dbc021c8f39a3784d13af8d8be3edbddc5e2eb4754b80e78ae954daf12889210183e7e11c110012b4d9320344efe19da +DIST jmock-2.6.1-jars.zip 1249841 BLAKE2B 87861dad7151000e1397a54d0ded7e49c3fd81fca64afd74d6176436f336be5b5e89f73be8c124cf086798f74aef4972303137529113e3c85ba93353f95e3a42 SHA512 7cd1d2e89dceb31c68ad3f702ad937b5de6ec77cc37e94be7aa53db2fc61d11aa40ec5aab225a3eeeba5064ad8384f10413ac05a9df97102c8e63f4209ea149e +EBUILD jmock-1.2.0-r1.ebuild 986 BLAKE2B a93c5e07830ed1dc6f2b92da16a796452ebfb74411555ea11e15d1ea0d7d8e5e1277184811723f2a44d97085bd879ffdc2a1a08fff1eb30be19a81693e3b1060 SHA512 336584062f37ef805f0320ec17562f9547900c11a0f24d7d450401acb544f1f1954c035e4d1ba5156cf8739d473d880ed5ff61816504258b4d9d4d468edfa675 +EBUILD jmock-2.6.1.ebuild 812 BLAKE2B 3d72677eb23caf056604dc2c799b1344cc38080fad875edbfe87c3e4f6dcb5f94dc7ad6ad8204f58770d1dbfef57061e0a47e84707511d837a71dfbba917d7b2 SHA512 a1cad09703ea22c47a6e898daa43764c708eb2ab400674e7efeb4b0d61451de1d0153495f81d42ccfa23a73ca4884df841f5262a148cf7c284d609874a9624c7 +MISC metadata.xml 232 BLAKE2B 513679b02247d8e4cb4c874abd785119d9ca62ad24c44969d52a42c3765d0ebf689024512a2c4c48e69688a4ce02a74ae05708b050a720bc73d8d2bf2ceff58d SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 diff --git a/dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch b/dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch new file mode 100644 index 000000000000..1e3a939d26d3 --- /dev/null +++ b/dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch @@ -0,0 +1,27 @@ +--- 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 +@@ -73,15 +73,15 @@ + assertTrue("Should not have verified", threwException); + } + +- static protected void failNotEquals( String message, +- Object expected, +- Object actual ) { +- String formatted = ""; +- if (message != null) { +- formatted = message + " "; +- } +- fail(formatted + "\nExpected:<" + expected + ">\nReceived:<" + actual + ">"); +- } ++// static protected void failNotEquals( String message, ++// Object expected, ++// Object actual ) { ++// String formatted = ""; ++// if (message != null) { ++// formatted = message + " "; ++// } ++// fail(formatted + "\nExpected:<" + expected + ">\nReceived:<" + actual + ">"); ++// } + + public static void notImplemented( String mockName ) { + throw new NotImplementedException("Not Implemented in " + mockName); diff --git a/dev-java/jmock/jmock-1.2.0-r1.ebuild b/dev-java/jmock/jmock-1.2.0-r1.ebuild new file mode 100644 index 000000000000..30bbbb34de42 --- /dev/null +++ b/dev-java/jmock/jmock-1.2.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Library for testing Java code using mock objects" +SRC_URI="http://www.${PN}.org/downloads/${P}-jars.zip" +HOMEPAGE="http://www.jmock.org/" + +LICENSE="BSD" +SLOT="1.0" +KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +CDEPEND="dev-java/junit:0" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + ${CDEPEND} + app-arch/unzip" + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="src" +JAVA_GENTOO_CLASSPATH="junit" + +src_unpack() { + default + unpack ${A} + unzip "${S}"/"${PN}-core-${PV}.jar" -d src || die + mv src "${S}" || die +} + +java_prepare() { + find -name "*.class" -delete || die + rm *.jar || die + + # This patch isn't changing the behaviour if jmock per se. + # Only the formatting is altered. + epatch "${FILESDIR}"/"${P}-AbstractMo.patch" +} diff --git a/dev-java/jmock/jmock-2.6.1.ebuild b/dev-java/jmock/jmock-2.6.1.ebuild new file mode 100644 index 000000000000..2213fe41255e --- /dev/null +++ b/dev-java/jmock/jmock-2.6.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Library for testing Java code using mock objects" +SRC_URI="http://www.jmock.org/downloads/${P}-jars.zip" +HOMEPAGE="http://www.jmock.org" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="dev-java/hamcrest-core:1.3 + dev-java/hamcrest-library:1.3 + dev-java/junit:4" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + ${CDEPEND} + app-arch/unzip" + +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() { + find -name "*.class" -delete || die +} diff --git a/dev-java/jmock/metadata.xml b/dev-java/jmock/metadata.xml new file mode 100644 index 000000000000..2444066aa02b --- /dev/null +++ b/dev-java/jmock/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> +</maintainer> +</pkgmetadata> |