summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-10-03 10:38:42 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-10-20 12:16:51 +0200
commit7ffac0be200f7eaca629feae93bf50fbe8947117 (patch)
tree45a95e2910c94ec220203f8a9a8783da372640c1 /dev-java/objenesis
parentdev-java/ant: add 1.10.15 (diff)
downloadgentoo-7ffac0be200f7eaca629feae93bf50fbe8947117.tar.gz
gentoo-7ffac0be200f7eaca629feae93bf50fbe8947117.tar.bz2
gentoo-7ffac0be200f7eaca629feae93bf50fbe8947117.zip
dev-java/objenesis: add 3.4
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38836/commits/c72a096c530750e1c240e54e767cdecf787fe9d0 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/objenesis')
-rw-r--r--dev-java/objenesis/Manifest1
-rw-r--r--dev-java/objenesis/objenesis-3.4.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-java/objenesis/Manifest b/dev-java/objenesis/Manifest
index 955ff2825c1c..b106bf82c6ef 100644
--- a/dev-java/objenesis/Manifest
+++ b/dev-java/objenesis/Manifest
@@ -1 +1,2 @@
DIST objenesis-3.3.tar.gz 125400 BLAKE2B 36cff7cb5a2dca9a81f3ca07d56995f68d9c61c9d2b7caeac5f87bb13da02b0494053927e2221c776edef0bafb862f5c97dfc0e79cf991c6c970b5b9206a5aa3 SHA512 786fe0d2d1dba0f006d5218101578d8fd23616765f5cdb4df190d138fd10dd675b9189887c27a40b63f09ed5e1dac1324b2936c7ac24a655e6f63d53b9cd7c01
+DIST objenesis-3.4.tar.gz 128447 BLAKE2B 220694fb496b4a29ad50c92741477e08475a6bdbd4f6ff647a03995a86945d9474672ee1be4f60f1fc07f0b05a4f1e59110977fccf9fd063dbd57750a66e2a26 SHA512 e4b106ae71e5f62e6057dba749ac56c42030a2a1aca5c2ec5c95c934a7fe1af99e6c62ca9c50e76fa67610bfbf075e46a0c9f37d4e6c35ea6047175189ab686e
diff --git a/dev-java/objenesis/objenesis-3.4.ebuild b/dev-java/objenesis/objenesis-3.4.ebuild
new file mode 100644
index 000000000000..61b9dc73a2eb
--- /dev/null
+++ b/dev-java/objenesis/objenesis-3.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.objenesis:objenesis:3.4"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A library for instantiating Java objects"
+HOMEPAGE="https://objenesis.org/"
+SRC_URI="https://github.com/easymock/objenesis/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${P}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+RESTRICT="test" #839681
+
+DEPEND=">=virtual/jdk-1.8:*"
+RDEPEND=">=virtual/jre-1.8:*"
+
+JAVA_TEST_GENTOO_CLASSPATH="
+ junit-4
+ junit-5
+"
+
+JAVA_TEST_SRC_DIR="main/src/test/java"
+
+src_compile() {
+ if use test; then
+ einfo "Compiling objenesis-test"
+ JAVA_AUTOMATIC_MODULE_NAME="org.objenesis.test"
+ JAVA_SRC_DIR="test/src/main/java"
+ JAVA_JAR_FILENAME="objenesis-test.jar"
+ java-pkg-simple_src_compile
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":objenesis-test.jar"
+ rm -r target || die
+ fi
+
+ einfo "Compiling objenesis"
+ JAVA_SRC_DIR="main/src/main/java"
+ JAVA_JAR_FILENAME="objenesis.jar"
+ JAVA_AUTOMATIC_MODULE_NAME="org.objenesis"
+ java-pkg-simple_src_compile
+}