diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-06-09 13:47:57 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-06-11 11:54:01 +0200 |
commit | 7f6a257b2b35f45ab5b4d1efdf2eb706a72cc824 (patch) | |
tree | 9a610411eece841f6664773730d508ff7c11cf7e /dev-java/mockito | |
parent | dev-java/gwt: bump to 2.9.0 (diff) | |
download | gentoo-7f6a257b2b35f45ab5b4d1efdf2eb706a72cc824.tar.gz gentoo-7f6a257b2b35f45ab5b4d1efdf2eb706a72cc824.tar.bz2 gentoo-7f6a257b2b35f45ab5b4d1efdf2eb706a72cc824.zip |
dev-java/mockito: restrict min java to 1.8
Bug: https://bugs.gentoo.org/786750
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/21174
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/mockito')
-rw-r--r-- | dev-java/mockito/mockito-1.9.5-r2.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
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 +} |