+++ /dev/null
-diff -ur jmock-1.1.0.old/build.xml jmock-1.1.0/build.xml
---- jmock-1.1.0.old/build.xml 2006-12-23 00:06:19.000000000 +0200
-+++ jmock-1.1.0/build.xml 2006-12-23 00:06:49.000000000 +0200
-@@ -116,7 +116,7 @@
- </junit>
- </target>
-
-- <target name="core.jar" depends="core.test.unit">
-+ <target name="core.jar" depends="core.compile">
- <mkdir dir="${build.dist.bin.dir}"/>
- <jar basedir="${core.build.dir}" destfile="${core.jar}" excludes="test/**" index="true"/>
- </target>
-@@ -181,7 +181,7 @@
- </junit>
- </target>
-
-- <target name="cglib.jar" depends="cglib.test.unit">
-+ <target name="cglib.jar" depends="cglib.compile">
- <mkdir dir="${build.dist.bin.dir}"/>
- <jar basedir="${cglib.build.dir}" destfile="${cglib.jar}" excludes="test/**" index="true"/>
- </target>
+++ /dev/null
-diff -ur jmock-1.1.0.old/core/src/org/jmock/expectation/AssertMo.java jmock-1.1.0/core/src/org/jmock/expectation/AssertMo.java
---- jmock-1.1.0.old/core/src/org/jmock/expectation/AssertMo.java 2006-12-22 23:56:07.000000000 +0200
-+++ jmock-1.1.0/core/src/org/jmock/expectation/AssertMo.java 2006-12-22 23:56:17.000000000 +0200
-@@ -73,7 +73,7 @@
- assertTrue("Should not have verified", threwException);
- }
-
-- static protected void failNotEquals( String message,
-+ static public void failNotEquals( String message,
- Object expected,
- Object actual ) {
- String formatted = "";
--- /dev/null
+--- 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);
--- /dev/null
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ~ppc ~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"
+}