diff options
author | Vlastimil Babka <caster@gentoo.org> | 2007-05-26 19:06:49 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2007-05-26 19:06:49 +0000 |
commit | a202e4b29606f2c970b71a079396332379196112 (patch) | |
tree | b1720080911d1ab903d2bfc1c0069a9ec9d15275 /dev-java/xalan-serializer/xalan-serializer-2.7.0.ebuild | |
parent | Add no-relax to LDFLAGS for alpha, and keyword latest version ~alpha (diff) | |
download | gentoo-2-a202e4b29606f2c970b71a079396332379196112.tar.gz gentoo-2-a202e4b29606f2c970b71a079396332379196112.tar.bz2 gentoo-2-a202e4b29606f2c970b71a079396332379196112.zip |
New package for serializer.jar from xalan, now used by both xalan and xerces - bug #156258.
(Portage version: 2.1.2.8)
Diffstat (limited to 'dev-java/xalan-serializer/xalan-serializer-2.7.0.ebuild')
-rw-r--r-- | dev-java/xalan-serializer/xalan-serializer-2.7.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-java/xalan-serializer/xalan-serializer-2.7.0.ebuild b/dev-java/xalan-serializer/xalan-serializer-2.7.0.ebuild new file mode 100644 index 000000000000..204b780ba144 --- /dev/null +++ b/dev-java/xalan-serializer/xalan-serializer-2.7.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan-serializer/xalan-serializer-2.7.0.ebuild,v 1.1 2007/05/26 19:06:48 caster Exp $ + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 eutils 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://xml.apache.org/xalan-j/index.html" +SRC_URI="mirror://apache/xml/${MY_PN}/source/${MY_P}-src.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="" + +COMMON_DEP="=dev-java/xml-commons-external-1.3*" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + + # kill all non-serializer sources to ease javadocs and dosrc + cd src/org/apache || die + mv xml/serializer "${T}/" || die "failed to mv to temp" + rm -rf ./* || die + mkdir xml || die + mv "${T}/serializer" xml/ || die "failed to mv from temp" + + # kill bundled jars and packed xml-commons-external sources + cd "${S}" + rm -v lib/*.jar tools/*.jar src/*.tar.gz || die + + cd lib + java-pkg_jar-from xml-commons-external-1.3 xml-apis.jar +} + +EANT_BUILD_TARGET="serializer.jar" +EANT_DOC_TARGET="serializer.javadocs" + +src_install() { + java-pkg_dojar build/serializer.jar + + use doc && java-pkg_dojavadoc build/docs/apidocs + use source && java-pkg_dosrc src/org +} |