diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-04-17 01:49:36 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-04-18 16:36:26 +0200 |
commit | 320febf55dc6464a2981caa0210a4c17fa1d9cb6 (patch) | |
tree | a4f38c4717bceee7aef0789d5238090f0f842b5a /dev-java/jaxen | |
parent | sci-libs/pyshp: Version bump (diff) | |
download | gentoo-320febf55dc6464a2981caa0210a4c17fa1d9cb6.tar.gz gentoo-320febf55dc6464a2981caa0210a4c17fa1d9cb6.tar.bz2 gentoo-320febf55dc6464a2981caa0210a4c17fa1d9cb6.zip |
dev-java/jaxen: support dom4j
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/20412/commits/d3942f9178435b4cd21749278f4e6f1d064b26c6
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jaxen')
-rw-r--r-- | dev-java/jaxen/jaxen-1.2.0-r1.ebuild | 65 | ||||
-rw-r--r-- | dev-java/jaxen/metadata.xml | 3 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/jaxen/jaxen-1.2.0-r1.ebuild b/dev-java/jaxen/jaxen-1.2.0-r1.ebuild new file mode 100644 index 000000000000..adfa52aaccf4 --- /dev/null +++ b/dev-java/jaxen/jaxen-1.2.0-r1.ebuild @@ -0,0 +1,65 @@ +# 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" + +# It seems that most tests depend on dom4j, jdom and xom which all depend on jaxen +RESTRICT="test" + +# 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 + +DEPEND=" + dev-java/xerces:2 + >=virtual/jdk-1.8:* + dom4j? ( dev-java/dom4j:1 ) +" + +RDEPEND=" + >=virtual/jre-1.8:* +" + +S="${WORKDIR}" + +DOCS=( "${P}"/{LICENSE.txt,README.md} ) + +JAVA_CLASSPATH_EXTRA="xerces-2" +JAVA_SRC_DIR="${P}/src/java/main" + +src_prepare() { + default + + # solve cyclic deps by removing these dirs + # dom4j, jdom and xom depend on jaxen + # https://bugs.gentoo.org/739894#c9 + rm -rv "${JAVA_SRC_DIR}"/org/jaxen/{jdom,xom} || die + use dom4j || rm -rv "${JAVA_SRC_DIR}"/org/jaxen/dom4j || die + use dom4j && JAVA_GENTOO_CLASSPATH="dom4j-1" +} + +src_install() { + default + java-pkg-simple_src_install +} diff --git a/dev-java/jaxen/metadata.xml b/dev-java/jaxen/metadata.xml index fa38cb92d41f..418032ce6ec8 100644 --- a/dev-java/jaxen/metadata.xml +++ b/dev-java/jaxen/metadata.xml @@ -5,6 +5,9 @@ <email>java@gentoo.org</email> <name>Java</name> </maintainer> + <use> + <flag name="dom4j">build the org.jaxen.dom4j.Dom4jXPath class</flag> + </use> <upstream> <remote-id type="github">jaxen-xpath/jaxen</remote-id> <doc>https://github.com/jaxen-xpath/jaxen/wiki/Jaxen-Wiki</doc> |