From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-java/xalan/Manifest | 4 +++ dev-java/xalan/metadata.xml | 8 +++++ dev-java/xalan/xalan-2.7.2.ebuild | 64 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 dev-java/xalan/Manifest create mode 100644 dev-java/xalan/metadata.xml create mode 100644 dev-java/xalan/xalan-2.7.2.ebuild (limited to 'dev-java/xalan') diff --git a/dev-java/xalan/Manifest b/dev-java/xalan/Manifest new file mode 100644 index 000000000000..7881f925af05 --- /dev/null +++ b/dev-java/xalan/Manifest @@ -0,0 +1,4 @@ +DIST xalan-j_2_7_2-bin.zip 17740075 BLAKE2B 244fd71011fa957ff1988dbbb58e40af4ad218aafbd92f2a6ec305d59ec0fb221a283442b24e4290f6d2e853cfad39d689c1397b4d18f34f4c94403610079328 SHA512 ae2be0bfc5e794b159c2d16718275a6ce6e8f63d681e2d13875f233d334a37aba872206c6c1f70565698ceaf4c66261c7df6db6c524e6e8da5dafe2f17cefddf +DIST xalan-j_2_7_2-src.tar.gz 8416261 BLAKE2B be67c9f2f7ec1140965dc148aea94347e60a2969deb1fac5834c1458d10b3dca91b448a44ed6ebbbb227e4f04780ce0142e812cd99d8862a4cbbf5e8e2af4cb3 SHA512 2f1fa105b3cb8082594e3121a245464e1b7c15464b1ead2d10e306e51ef61ded5d7fcd70c034fa46f41c4a8c14316e376cc14d8045c8aadfce80f2e4bd1b61d8 +EBUILD xalan-2.7.2.ebuild 1833 BLAKE2B 7a390c747ee190010b9884b7d8c70497595eb341a31b1b6e85b4fbfd6e880d6c6f670e9e6018f64647fbb781ba11f78c93d87d1c5eb708ebf55aaebcb64251c0 SHA512 eadca11ef9dcbec73a8f6a048fb518d6fbe6f8c8976ec37c71d014d7acbd640baee7a8422ab2ee7db38f280fe96019619989a109f35e75f45cc3c2fee0625018 +MISC metadata.xml 232 BLAKE2B 513679b02247d8e4cb4c874abd785119d9ca62ad24c44969d52a42c3765d0ebf689024512a2c4c48e69688a4ce02a74ae05708b050a720bc73d8d2bf2ceff58d SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 diff --git a/dev-java/xalan/metadata.xml b/dev-java/xalan/metadata.xml new file mode 100644 index 000000000000..2444066aa02b --- /dev/null +++ b/dev-java/xalan/metadata.xml @@ -0,0 +1,8 @@ + + + + + java@gentoo.org + Java + + diff --git a/dev-java/xalan/xalan-2.7.2.ebuild b/dev-java/xalan/xalan-2.7.2.ebuild new file mode 100644 index 000000000000..d5c0c149b9de --- /dev/null +++ b/dev-java/xalan/xalan-2.7.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# NOTE: Building the docs is much more hassle than it's worth. It +# requires com.sun.image.codec, which has long gone from JDKs, and +# Apache StyleBook, which is long dead though it is bundled here. + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 versionator + +MY_PN="${PN}-j" +MY_PV="$(replace_all_version_separators _)" +MY_P="${MY_PN}_${MY_PV}" +SRC_DIST="${MY_P}-src.tar.gz" +BIN_DIST="${MY_P}-bin.zip" + +DESCRIPTION="Transforming XML documents into HTML, text, or other XML document types" +HOMEPAGE="http://xalan.apache.org/" +SRC_URI="mirror://apache/${PN}/${MY_PN}/source/${SRC_DIST} + doc? ( mirror://apache/${PN}/${MY_PN}/binaries/${BIN_DIST} )" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +CDEPEND="dev-java/javacup:0 + dev-java/bcel:0" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.3 + ~dev-java/xalan-serializer-${PV}:${SLOT}" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.3 + doc? ( app-arch/unzip )" + +EANT_GENTOO_CLASSPATH="bcel,javacup" +EANT_BUILD_TARGET="unbundledjar" +EANT_DOC_TARGET="" + +JAVA_ANT_REWRITE_CLASSPATH="true" +S="${WORKDIR}/${MY_P}" + +java_prepare() { + # disable building of serializer.jar + sed -i -e 's/depends="prepare,serializer.jar"/depends="prepare"/' \ + build.xml || die "sed build.xml failed" + + # remove bundled jars + find -name "*.jar" -delete || die + rm src/*.tar.gz || die +} + +src_install() { + java-pkg_newjar build/${PN}-unbundled.jar + java-pkg_dolauncher ${PN} --main org.apache.xalan.xslt.Process + java-pkg_register-dependency ${PN}-serializer + + dodoc NOTICE.txt readme.html + use doc && java-pkg_dohtml -r docs/* + use source && java-pkg_dosrc src/org +} -- cgit v1.2.3