1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
# Skeleton command:
|
5 |
|
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri mirror://apache/xmlgraphics/commons/source/2.8-src.tar.gz --slot 2 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild xmlgraphics-commons-2.8.ebuild
|
6 |
|
|
7 |
4 |
EAPI=8
|
8 |
5 |
|
9 |
6 |
JAVA_PKG_IUSE="doc source test"
|
10 |
|
MAVEN_ID="org.apache.xmlgraphics:xmlgraphics-commons:2.8"
|
|
7 |
MAVEN_ID="org.apache.xmlgraphics:xmlgraphics-commons:2.9"
|
11 |
8 |
JAVA_TESTING_FRAMEWORKS="junit-4"
|
12 |
9 |
|
13 |
10 |
inherit java-pkg-2 java-pkg-simple verify-sig
|
... | ... | |
17 |
14 |
SRC_URI="mirror://apache/xmlgraphics/commons/source/${P}-src.tar.gz
|
18 |
15 |
verify-sig? ( https://downloads.apache.org/xmlgraphics/commons/source/xmlgraphics-commons-${PV}-src.tar.gz.asc )"
|
19 |
16 |
|
|
17 |
S="${WORKDIR}/${P}"
|
|
18 |
|
20 |
19 |
LICENSE="Apache-2.0"
|
21 |
20 |
SLOT="2"
|
22 |
|
KEYWORDS="amd64 arm64 ppc64 x86"
|
23 |
|
|
24 |
|
# Common dependencies
|
25 |
|
# POM: pom.xml
|
26 |
|
# commons-io:commons-io:2.11.0 -> >=dev-java/commons-io-2.11.0:1
|
27 |
|
# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0
|
|
21 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
28 |
22 |
|
29 |
23 |
CP_DEPEND="
|
30 |
24 |
dev-java/commons-io:1
|
31 |
25 |
dev-java/commons-logging:0
|
32 |
26 |
"
|
33 |
27 |
|
34 |
|
# Compile dependencies
|
35 |
|
# POM: pom.xml
|
36 |
|
# test? junit:junit:4.11 -> >=dev-java/junit-4.13.2:4
|
37 |
|
# test? org.mockito:mockito-core:2.28.2 -> >=dev-java/mockito-4.8.0:4
|
38 |
|
# test? xml-resolver:xml-resolver:1.2 -> >=dev-java/xml-commons-resolver-1.2:0
|
39 |
|
|
40 |
28 |
DEPEND="${CP_DEPEND}
|
41 |
29 |
>=virtual/jdk-1.8:*
|
42 |
30 |
test? (
|
... | ... | |
52 |
40 |
|
53 |
41 |
DOCS=( NOTICE README )
|
54 |
42 |
|
55 |
|
S="${WORKDIR}/${P}"
|
56 |
|
|
57 |
43 |
JAVA_RESOURCE_DIRS="src/main/resources"
|
58 |
44 |
JAVA_SRC_DIR="src/main/java"
|
59 |
45 |
|
60 |
46 |
JAVA_TEST_EXTRA_ARGS=( -ea )
|
61 |
47 |
JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-4,xml-commons-resolver"
|
62 |
|
# Some *.{png,tiff,txt,xmp} are misplaced in "src/main/java".
|
|
48 |
# Some *.{png,tiff,txt,xmp} are misplaced in "src/test/java".
|
63 |
49 |
JAVA_TEST_RESOURCE_DIRS=( "src/test/resources" "src/test/java" )
|
64 |
50 |
JAVA_TEST_SRC_DIR="src/test/java"
|
65 |
|
|
66 |
|
src_test() {
|
67 |
|
local vm_version="$(java-config -g PROVIDES_VERSION)"
|
68 |
|
if ver_test "${vm_version}" -ge 11; then
|
69 |
|
JAVA_TEST_EXCLUDES="org.apache.xmlgraphics.image.loader.CorruptImagesTestCase"
|
70 |
|
fi
|
71 |
|
java-pkg-simple_src_test
|
72 |
|
}
|