summaryrefslogtreecommitdiff
path: root/dev-java/jmock
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/jmock
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/jmock')
-rw-r--r--dev-java/jmock/Manifest8
-rw-r--r--dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch27
-rw-r--r--dev-java/jmock/jmock-1.2.0-r1.ebuild47
-rw-r--r--dev-java/jmock/jmock-2.6.1.ebuild43
-rw-r--r--dev-java/jmock/metadata.xml8
5 files changed, 133 insertions, 0 deletions
diff --git a/dev-java/jmock/Manifest b/dev-java/jmock/Manifest
new file mode 100644
index 000000000000..5db997368a4a
--- /dev/null
+++ b/dev-java/jmock/Manifest
@@ -0,0 +1,8 @@
+AUX jmock-1.2.0-AbstractMo.patch 1189 SHA256 a0ee7711ae0c47d0a11a5e16ff5268361e5476c3c326a07cde773bf58514555a SHA512 b4d59d16c2c513031b3b36fc2bdf4526cee8bfa405cac4c2c76d850289a835ba6e57d4e042ed4afe2814a217dcc1493afe80af9fd17fa066d1ada96af6dfa663 WHIRLPOOL 020c9dae844296c0883acdf1eccdb102924ba68c7d43d88fbb816b29b0c0187661b617dbf9db8f3f113b15d4e46a092accd8a33c84312acbcf171a81e03a8f17
+DIST jmock-1.2.0-jars.zip 153214 SHA256 44a98a4982b7b8fc65a0a2b12f73c488d25981df1e938069639baa28df0b0f01 SHA512 5290f1d14cbc3d0f223bdaf59716b037dbc021c8f39a3784d13af8d8be3edbddc5e2eb4754b80e78ae954daf12889210183e7e11c110012b4d9320344efe19da WHIRLPOOL e8e6f4d976c7678fe06882df6e17e22d80f4dfa5f21ad09a9901d991e8073651af2dd71a6e143d3fa55c941ae16e08278474f08cfda2f3bf8503bafe39ba33dd
+DIST jmock-2.6.1-jars.zip 1249841 SHA256 e49a0f7628c6368e46de1c48dfd8aed084f03661d87cf3a78025fdec367021fb SHA512 7cd1d2e89dceb31c68ad3f702ad937b5de6ec77cc37e94be7aa53db2fc61d11aa40ec5aab225a3eeeba5064ad8384f10413ac05a9df97102c8e63f4209ea149e WHIRLPOOL e67be30e6718b998a34a52cdaa59ba7afc19969b5fe08529ea056867c0b8b3fad2628eb04b8b0b778bd215d29fe4aa962b0021afbb64835eac845f76c4b5987d
+EBUILD jmock-1.2.0-r1.ebuild 998 SHA256 4453307e8128738fd5c239abc5ca5e7ca1134d9f52fee19a843526b6ee12e214 SHA512 7539d04bf327d02eefee2880f17b66bfb7374ab98a4bd632cdf14ca83893fc8868dce06bdfec573e432108d64bfd9cb07f0a6e4b1cc0f9608c37d3069208ce19 WHIRLPOOL 48e275fd7b35c55945580ddcdf9230a02650db20d5bfb67eb796b3d2b49920f6d77c33e0720a52e9e629f5c103c31b916cd46acca324ec46997c4fc0dbae4bb7
+EBUILD jmock-2.6.1.ebuild 812 SHA256 6fe7faf27e7be63af1c01da429d6087dde48200ca7fb4b0abb5c33ba1fbd28d0 SHA512 a1cad09703ea22c47a6e898daa43764c708eb2ab400674e7efeb4b0d61451de1d0153495f81d42ccfa23a73ca4884df841f5262a148cf7c284d609874a9624c7 WHIRLPOOL 0ecffdcc7b3246fb96d9748999cd8ceec78021347eb5906ea7d763fb7ce9af1eb9da1c9dc0b917d2e3a3dd4061b743e144f17fdc7bf7ff157cae8bce6724059f
+MISC ChangeLog 4417 SHA256 9d8949bcd6e976da3dc7c2d83ee3aff798b987098d983f0d1905147900af1882 SHA512 d8ab0ce18cb7a1d379afe069131f4acd9a78277e9d6dca0daffb2fe36036b98cedada325836790dbcb7c9e402ee2cba16834bc94a58524b8e87d268507ddc7bb WHIRLPOOL 21253b0e8b9ea6502c8c1e1312fcb5b025d0d627b981086d2aae1cfb749d264eb566f027fa27a891d995dc60874c53a35fef77284a61f5fa10807220ca3afad2
+MISC ChangeLog-2015 4483 SHA256 a3079d06a719dcb76ebf5fbcf77787de4d29d320ddf689833db2765e65b08f51 SHA512 9a44b08d193887e57fa2e8c5ca3be06bbe2708f195b3d33af44b849c7af16a7f63e88961bedb6037daa1449932613a0d5f6e0de992913692fb1c7ae3e9bfc10b WHIRLPOOL e02060ba8196f12c05e47e09aadb1a14c9a9ee1876712c6db82f477458742163d90c74869227bec81e71054d9e6a3c85472b2a57020bb4038e057d2a2293e720
+MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac
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..a3b3508b11b3
--- /dev/null
+++ b/dev-java/jmock/jmock-1.2.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 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-fbsd ~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>