summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-07-01 15:24:18 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-07-22 19:36:32 +0200
commitd90f115ea824c9c516fb0e285d5850864e84b7e9 (patch)
treead18efde1234efab6940dc15d1cdb12a11f87a9b /dev-java
parentdev-java/mockito: drop 4.6.1 (diff)
downloadgentoo-d90f115ea824c9c516fb0e285d5850864e84b7e9.tar.gz
gentoo-d90f115ea824c9c516fb0e285d5850864e84b7e9.tar.bz2
gentoo-d90f115ea824c9c516fb0e285d5850864e84b7e9.zip
dev-java/mockito: restrict to <=byte-buddy{,-agent}-1.12.10
from 1.12.12 dev-java/byte-buddy is monolithic >=dev-java/byte-buddy-agent-1.12.12 not packaged Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/mockito/mockito-4.6.0-r1.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-java/mockito/mockito-4.6.0-r1.ebuild b/dev-java/mockito/mockito-4.6.0-r1.ebuild
new file mode 100644
index 000000000000..bd3679411683
--- /dev/null
+++ b/dev-java/mockito/mockito-4.6.0-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Tests not enabled, wants junit-jupiter.
+# "${S}/settings.gradle.kts"
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="org.mockito:mockito-core:4.6.0"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Mockito mock objects library core API and implementation"
+HOMEPAGE="https://github.com/mockito/mockito"
+SRC_URI="https://github.com/mockito/mockito/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="4"
+KEYWORDS="amd64 ~arm arm64 ppc64 x86"
+
+# Common dependencies
+# POM: ${PN}-core-${PV}.pom
+# net.bytebuddy:byte-buddy:1.12.8 -> >=dev-java/byte-buddy-1.12.8:0
+# net.bytebuddy:byte-buddy-agent:1.12.8 -> >=dev-java/byte-buddy-agent-1.12.8:0
+
+CP_DEPEND="
+ <=dev-java/byte-buddy-1.12.10:0
+ <=dev-java/byte-buddy-agent-1.12.10:0
+ dev-java/junit:4
+ dev-java/objenesis:0
+ dev-java/opentest4j:0
+"
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ ${CP_DEPEND}
+"
+
+# Runtime dependencies
+# POM: ${PN}-core-${PV}.pom
+# org.objenesis:objenesis:3.2 -> >=dev-java/objenesis-3.2:0
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}
+"
+
+S="${WORKDIR}/${P}"
+
+JAVA_SRC_DIR="src/main/java"