blob: a62eb32679ba32309fcc22712d502d802dfd5693 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Skeleton command:
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/jaxen-xpath/jaxen/archive/refs/tags/v1.2.0.tar.gz --slot 1.2 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild jaxen-1.2.0.ebuild
EAPI=7
JAVA_PKG_IUSE="doc source test"
MAVEN_ID="jaxen:jaxen:1.2.0"
JAVA_TESTING_FRAMEWORKS="junit"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Jaxen is a universal XPath engine for Java."
HOMEPAGE="http://www.cafeconleche.org/jaxen/"
SRC_URI="https://github.com/${PN}-xpath/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="1.2"
KEYWORDS="amd64 ~arm ~arm64 ppc64 ~x86"
IUSE="dom4j jdom xom"
# It seems that most tests depend on dom4j, jdom and xom which all depend back on jaxen
REQUIRED_USE="test? ( dom4j jdom xom )"
# Compile dependencies
# POM: pom.xml
# xerces:xercesImpl:2.6.2 -> >=dev-java/xerces-2.12.0:2
# xml-apis:xml-apis:1.3.02 -> >=dev-java/xml-commons-external-1.4.01:1.4
# POM: pom.xml
# test? junit:junit:3.8.2 -> >=dev-java/junit-3.8.2:0
CDEPEND="
dom4j? ( dev-java/dom4j:1 )
jdom? ( dev-java/jdom:0 )
xom? ( dev-java/xom:0 )
"
DEPEND="
${CDEPEND}
>=virtual/jdk-1.8:*
"
RDEPEND="
${CDEPEND}
>=virtual/jre-1.8:*
"
S="${WORKDIR}"
DOCS=( "${P}"/{LICENSE.txt,README.md} )
JAVA_SRC_DIR="${P}/src/java/main"
JAVA_TEST_SRC_DIR="${P}/src/java/test"
JAVA_TEST_GENTOO_CLASSPATH="junit"
src_prepare() {
default
if use dom4j; then
JAVA_GENTOO_CLASSPATH+=" dom4j-1"
else
rm -rv "${JAVA_SRC_DIR}"/org/jaxen/dom4j || die
fi
if use jdom; then
JAVA_GENTOO_CLASSPATH+=" jdom"
else
rm -rv "${JAVA_SRC_DIR}"/org/jaxen/jdom || die
fi
if use xom; then
JAVA_GENTOO_CLASSPATH+=" xom"
else
rm -rv "${JAVA_SRC_DIR}"/org/jaxen/xom || die
fi
}
src_install() {
default
java-pkg-simple_src_install
}
|