1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit java-pkg-2 java-pkg-simple
10 DESCRIPTION="Library for testing Java code using mock objects"
11 SRC_URI="http://www.${PN}.org/downloads/${P}-jars.zip"
12 HOMEPAGE="http://www.jmock.org/"
16 KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
19 CDEPEND="dev-java/junit:0"
21 RDEPEND=">=virtual/jre-1.6
24 DEPEND=">=virtual/jdk-1.6
31 JAVA_GENTOO_CLASSPATH="junit"
36 unzip "${S}"/"${PN}-core-${PV}.jar" -d src || die
41 find -name "*.class" -delete || die
44 # This patch isn't changing the behaviour if jmock per se.
45 # Only the formatting is altered.
46 epatch "${FILESDIR}"/"${P}-AbstractMo.patch"