diff options
Diffstat (limited to 'dev-java/jaxen')
-rw-r--r-- | dev-java/jaxen/Manifest | 2 | ||||
-rw-r--r-- | dev-java/jaxen/jaxen-2.0.0.ebuild | 67 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-java/jaxen/Manifest b/dev-java/jaxen/Manifest index a5b8079df996..3809345b5bc1 100644 --- a/dev-java/jaxen/Manifest +++ b/dev-java/jaxen/Manifest @@ -1,3 +1,5 @@ DIST jaxen-1.2.0.tar.gz 282829 BLAKE2B 4d89d4fd3dfd8c4113fe7ecc05597ea9dd743d9c871f320936809016ae8cb3a3d4fb3f935de19463e6c99db1b67eff3545e909b707e81f4c0f114ec0f0e7bb97 SHA512 cecfc62eab1cf6586b28594855bd983679a932dbdc6cbdd07d85a9a9458e78b2e784dfd6287e6e87e4f4443239eefbeac59a7316dae53b818379daaccae56b53 +DIST jaxen-2.0.0.tar.gz 348084 BLAKE2B 0dd90e040c865e0c2588f93ead9aadd64d49a8559a7c48255bdf89cca88967a60c8c0817ee4b234352fc0c8c3607e00e08c21df4580be7a889ca748073184f54 SHA512 897d8ee72b2ee3743118e363f66e1ccf5195863e4395dbdffa33b0bd7339663d85946f5e6eb37891e2ebb1572cab610a98a3690bdcc3993a2d2be4ae7920f174 EBUILD jaxen-1.2.0-r1.ebuild 1912 BLAKE2B b7c2b6d75ae49f3df6a46c20a23488f9084fc81d39cec91e3d5258c8ba26532bc03c7da45a4520c245a5b9132d40437cf93b0ab7eefa18459401fe6e091ce1e0 SHA512 f9a9252c02312941af0c08073956449834a5baaf19ff0ebe32fd279cda927e0e6b951c928270e3699d3fccf54b8867f5198aec24ddf8977339e78dbad6d3f3d8 +EBUILD jaxen-2.0.0.ebuild 1386 BLAKE2B 34dbb1b1163229237d8c19a142d58dcd22e56b9f634e3cc42780f8c125d6a5a9c6a16a41d96bf95beaa05b398c6efac67c3866e9f7b31a78b1b2bcc7a79d792f SHA512 0179ef6928c194ee699c9c45b1c66af4e61d7f83dd941f159da81223a871ad9194520cbc8263173c35d3a984ecf8402e672f76566778dcef4afaeca893d29622 MISC metadata.xml 719 BLAKE2B 81b0a7991de9a06ca79c793dc619356856370488753d22fbfc77d92e5323ab6a5cd489fe9098a60d1de248fa481d906696a20032e7a27972f9630d72a8175906 SHA512 221fb2b9430c909ea27039513feb2c9395992cd67ec087e008cc284dcb3a8d19fd373405c52d59f0ad41cf481586ce58588c04b05e864cc7731d6c4162a3544d diff --git a/dev-java/jaxen/jaxen-2.0.0.ebuild b/dev-java/jaxen/jaxen-2.0.0.ebuild new file mode 100644 index 000000000000..c8ec4f551e2f --- /dev/null +++ b/dev-java/jaxen/jaxen-2.0.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="jaxen:jaxen:2.0.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/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}" + +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 )" + +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:* +" + +JAVA_AUTOMATIC_MODULE_NAME="org.jaxen" +JAVA_SRC_DIR="core/src/java/main" + +JAVA_TEST_GENTOO_CLASSPATH="junit" +JAVA_TEST_SRC_DIR="core/src/java/test" + +src_prepare() { + java-pkg-2_src_prepare + + 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 +} |