summaryrefslogtreecommitdiff
path: root/dev-java/mockito
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/mockito')
-rw-r--r--dev-java/mockito/Manifest1
-rw-r--r--dev-java/mockito/mockito-1.9.5-r2.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/mockito/Manifest b/dev-java/mockito/Manifest
index e786ecd10ef1..985fe732b18d 100644
--- a/dev-java/mockito/Manifest
+++ b/dev-java/mockito/Manifest
@@ -1,3 +1,4 @@
DIST mockito-1.9.5.zip 6453870 BLAKE2B b577c4a82f03b5c345462ecc10e9fe25c03836d08d57d633d95a1eaba17f52d4306603f50f332df360d0a4880c85c65bad4503503df0acad8f7b437694a2b887 SHA512 93768992c74fbc2e2653b46b3afb526ab816b9c707cb5f9608564299ffd206e256182be146c590b4777a624379f576d7117ed7d43b11f8d2974e87c402eede51
EBUILD mockito-1.9.5-r1.ebuild 844 BLAKE2B b8ed4f84aaece678fcf10167dc29df664f5d484a302cdb560f64337833bfc93c26094550be04adfbe69e49d35c5c7b794c02e82886ee5a0cfe25b5e0f7031d8b SHA512 2caa56ec15407184643ebd9204d19c2536773c371bfad8e936012957b84f79612fc75ef96c60b0f3756a2e4643d215c058f0f91a479c187242fa40c51b96b74f
+EBUILD mockito-1.9.5-r2.ebuild 849 BLAKE2B 3e315682add72a455809c5dadac111e6b3a03ab78566abcb66b3b7ed75e2999a351de73a1e07df6ef4c43ee476ea271bd1cdffc7ffdee8e387e10066456e29d4 SHA512 11bbf4faf9dc1804f526fbac5e195f16075f4d552658979575f0f25d7f44d611558b408af00adb178475f721d4bb6b1e30635b4ba744694972d5b465e7ce9733
MISC metadata.xml 368 BLAKE2B b76278732bfbed14a8ec62d1b339971836efbaf3565e6b93dd61a09c18749fa30c815c283f633321cf0ddbc818ccfbeb92fed293f6e43137eeb2d3b8efa9ed04 SHA512 371a02c769989a221b89405e852f627a4cd9953f1529b8e6890056b6ca83e2526a82752ab3ed9b36f40a3d88d460360e20762d2a4cdcba359116c036f1d7cc7b
diff --git a/dev-java/mockito/mockito-1.9.5-r2.ebuild b/dev-java/mockito/mockito-1.9.5-r2.ebuild
new file mode 100644
index 000000000000..1076b1486ea3
--- /dev/null
+++ b/dev-java/mockito/mockito-1.9.5-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A mocking framework for Java"
+HOMEPAGE="https://github.com/mockito/mockito"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.zip"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+CDEPEND="
+ dev-java/ant-core:0
+ dev-java/hamcrest-core:0
+ dev-java/junit:4
+ dev-java/objenesis:0
+"
+RDEPEND="${CDEPEND}
+ virtual/jre:1.8"
+DEPEND="${CDEPEND}
+ virtual/jdk:1.8"
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}"
+
+JAVA_SRC_DIR="src"
+JAVA_GENTOO_CLASSPATH="junit-4,objenesis,hamcrest-core,ant-core"
+
+src_unpack() {
+ unpack ${A}
+ unzip "${S}"/sources/${PN}-core-${PV}-sources.jar -d src/ || die
+}
+
+src_prepare() {
+ default
+ find "${S}" -name "*.jar" -delete || die
+}