diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/xalan-serializer/xalan-serializer-2.7.2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/xalan-serializer/xalan-serializer-2.7.2.ebuild')
-rw-r--r-- | dev-java/xalan-serializer/xalan-serializer-2.7.2.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-java/xalan-serializer/xalan-serializer-2.7.2.ebuild b/dev-java/xalan-serializer/xalan-serializer-2.7.2.ebuild new file mode 100644 index 000000000000..491f657f50a4 --- /dev/null +++ b/dev-java/xalan-serializer/xalan-serializer-2.7.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 versionator + +MY_PN="xalan-j" +MY_PV="$(replace_all_version_separators _)" +MY_P="${MY_PN}_${MY_PV}" + +DESCRIPTION="DOM Level 3 serializer from Apache Xalan, shared by Xalan and Xerces" +HOMEPAGE="http://xalan.apache.org/" +SRC_URI="mirror://apache/xalan/${MY_PN}/source/${MY_P}-src.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND=">=virtual/jre-1.3" +DEPEND=">=virtual/jdk-1.3" + +EANT_BUILD_TARGET="serializer.jar" +EANT_DOC_TARGET="serializer.javadocs" + +S="${WORKDIR}/${MY_P}" + +java_prepare() { + # kill all non-serializer sources to ease javadocs and dosrc + find src/org/ -type f ! -path "src/org/apache/xml/serializer/*" -delete || die + + # remove bundled jars + find -name "*.jar" -delete || die + rm src/*.tar.gz || die +} + +src_install() { + java-pkg_dojar build/serializer.jar + + use doc && java-pkg_dojavadoc build/docs/apidocs + use source && java-pkg_dosrc src/org +} |