1 # Copyright 1999-2017 Gentoo Foundation
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="A mocking framework for Java"
11 HOMEPAGE="https://github.com/mockito/mockito"
12 SRC_URI="https://${PN}.googlecode.com/files/${P}.zip"
16 KEYWORDS="amd64 ~arm64 ppc64 x86"
20 CDEPEND="dev-java/junit:4
22 dev-java/hamcrest-core:0
24 RDEPEND=">=virtual/jre-1.5
26 DEPEND=">=virtual/jdk-1.5
33 JAVA_GENTOO_CLASSPATH="junit-4,objenesis,hamcrest-core,ant-core"
37 unzip "${S}"/sources/${PN}-core-${PV}-sources.jar -d src/ || die
41 find "${S}" -name "*.jar" -delete || die