blob: 142a47c4d62dc7a069d1ad47885ccf1a90f4d1a0 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Skeleton command:
# java-ebuilder --generate-ebuild --workdir . --pom janino/pom.xml --download-uri https://codeload.github.com/janino-compiler/janino/tar.gz/v3.1.6 --slot 0 --keywords "~amd64" --ebuild JANjanino-3.1.6.ebuild
EAPI=8
JAVA_PKG_IUSE="doc source test"
MAVEN_ID="org.codehaus.janino:janino:3.1.6"
JAVA_TESTING_FRAMEWORKS="junit-4"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="An embedded compiler for run-time compilation purposes"
HOMEPAGE="https://janino-compiler.github.io/janino/"
SRC_URI="https://codeload.github.com/janino-compiler/janino/tar.gz/v${PV} -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
# Common dependencies
# POM: janino/pom.xml
# org.codehaus.janino:commons-compiler:3.1.6 -> !!!groupId-not-found!!!
# Compile dependencies
# POM: janino/pom.xml
# org.apache.ant:ant:1.10.9 -> !!!groupId-not-found!!!
# POM: janino/pom.xml
# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4
DEPEND="
>=virtual/jdk-1.8:*
dev-java/ant-core:0
"
RDEPEND="
>=virtual/jre-1.8:*"
S="${WORKDIR}/${P}/janino"
src_prepare() {
default
java-pkg_clean
}
src_compile() {
JAVA_SRC_DIR="../commons-compiler/src/main/java"
JAVA_JAR_FILENAME="commons-compiler.jar"
java-pkg-simple_src_compile
JAVA_GENTOO_CLASSPATH_EXTRA+=":commons-compiler.jar"
rm -r target || die
JAVA_CLASSPATH_EXTRA="ant-core"
JAVA_SRC_DIR="src/main/java"
JAVA_RESOURCE_DIRS="src/main/resources"
JAVA_JAR_FILENAME="janino.jar"
java-pkg-simple_src_compile
JAVA_GENTOO_CLASSPATH_EXTRA+=":janino.jar"
rm -r target || die
if use doc; then
JAVA_SRC_DIR=(
"../commons-compiler/src/main/java"
"src/main/java"
)
JAVA_JAR_FILENAME="ignoreme.jar"
java-pkg-simple_src_compile
fi
}
src_test() {
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
JAVA_TEST_SRC_DIR="../commons-compiler/src/test/java"
JAVA_TEST_RESOURCE_DIRS="../commons-compiler/src/test/resources"
java-pkg-simple_src_test
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
JAVA_TEST_SRC_DIR="src/test/java"
JAVA_TEST_RESOURCE_DIRS="src/test/resources"
echo 'We are in '"$(pwd)"
java-pkg-simple_src_test
}
src_install() {
default
java-pkg_dojar "commons-compiler.jar"
java-pkg_dojar "janino.jar"
if use doc; then
java-pkg_dojavadoc target/api
fi
if use source; then
java-pkg_dosrc "../commons-compiler/src/main/java/*"
java-pkg_dosrc "src/main/java/*"
fi
}
|