1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 JAVA_PKG_IUSE="doc source"
9 inherit java-pkg-2 java-pkg-simple
11 DESCRIPTION="Library for testing Java code using mock objects"
12 SRC_URI="http://www.${PN}.org/downloads/${P}-jars.zip"
13 HOMEPAGE="http://www.jmock.org/"
17 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
20 CDEPEND="dev-java/junit:0"
22 RDEPEND=">=virtual/jre-1.6
25 DEPEND=">=virtual/jdk-1.6
32 JAVA_GENTOO_CLASSPATH="junit"
37 unzip "${S}"/"${PN}-core-${PV}.jar" -d src || die
42 find -name "*.class" -delete || die
45 # This patch isn't changing the behaviour if jmock per se.
46 # Only the formatting is altered.
47 epatch "${FILESDIR}"/"${P}-AbstractMo.patch"