blob: 52fa27bb6345c5e7b4801eca587cfaa58f024491 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
}
|