diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-03-30 15:37:23 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-03-31 10:25:31 +0200 |
commit | 4835b780f8329b0d486455cba0bf35ceace96857 (patch) | |
tree | b144549353673e8293bc41613048fc9b695fcf68 | |
parent | dev-java/guava: MAVEN_ID (diff) | |
download | gentoo-4835b780f8329b0d486455cba0bf35ceace96857.tar.gz gentoo-4835b780f8329b0d486455cba0bf35ceace96857.tar.bz2 gentoo-4835b780f8329b0d486455cba0bf35ceace96857.zip |
dev-java/werken-xpath: EAPI 7
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/20176/commits/b6914869f3afa33a8b64e2962eb31ffb1ca60a27
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r-- | dev-java/werken-xpath/werken-xpath-0.9.4_beta-r5.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r5.ebuild b/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r5.ebuild new file mode 100644 index 000000000000..858ddfce3f6b --- /dev/null +++ b/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r5.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-antlr" + +inherit java-pkg-2 java-ant-2 + +MY_PN=${PN/-/.} +MY_PV=${PV//_/-} +MY_P=${MY_PN}-${MY_PV} + +DESCRIPTION="W3C XPath-Rec implementation for DOM4J" +HOMEPAGE="https://sourceforge.net/projects/werken-xpath/" +SRC_URI="mirror://gentoo/${MY_P}-src.tar.gz" +# This tarball was acquired from jpackage's src rpm of the package by the same name + +LICENSE="JDOM" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +COMMON_DEP=" + dev-java/jdom:0 + >=dev-java/antlr-2.7.7-r7:0" +DEPEND=">=virtual/jdk-1.8:* + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.8:* + ${COMMON_DEP}" + +S=${WORKDIR}/${MY_PN} + +EANT_BUILD_TARGET="package" +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_GENTOO_CLASSPATH="antlr,jdom" + +src_prepare() { + default + # Courtesy of JPackages :) + eapply "${FILESDIR}"/${P}-jpp-compile.patch + eapply "${FILESDIR}"/${P}-jpp-jdom.patch + eapply "${FILESDIR}"/${P}-jpp-tests.patch + eapply "${FILESDIR}"/${P}-gentoo.patch + + # API updates to support jdom-1 + eapply "${FILESDIR}"/${P}-jdom-1.0.patch + + java-pkg_clean + rm -rv lib/bin || die +} + +src_install() { + java-pkg_newjar build/${MY_PN}.jar + + dodoc README TODO LIMITATIONS + use doc && java-pkg_dojavadoc build/apidocs + use source && java-pkg_dosrc src/* +} |