From 7435d07d99cd2bfa88107a8cad336134a24761c6 Mon Sep 17 00:00:00 2001 From: Adrian Almenar Date: Tue, 16 Dec 2003 03:37:40 +0000 Subject: Updated to latest version ~arch masked. Moved to stable on ppc and sparc. --- dev-java/xalan/xalan-2.5.2.ebuild | 68 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 dev-java/xalan/xalan-2.5.2.ebuild (limited to 'dev-java/xalan/xalan-2.5.2.ebuild') diff --git a/dev-java/xalan/xalan-2.5.2.ebuild b/dev-java/xalan/xalan-2.5.2.ebuild new file mode 100644 index 000000000000..52926a3a1220 --- /dev/null +++ b/dev-java/xalan/xalan-2.5.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan/xalan-2.5.2.ebuild,v 1.1 2003/12/16 03:37:22 strider Exp $ + +inherit java-pkg eutils + +IUSE="doc" + +MY_P=${PN}-j_${PV//./_} +S=${WORKDIR}/${MY_P} +DESCRIPTION="XSLT processor" +HOMEPAGE="http://xml.apache.org/xalan-j/index.html" +SRC_URI="mirror://apache/xml/xalan-j/source/${MY_P}-src.tar.gz" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~x86 ~sparc ~ppc" + +DEPEND=">=virtual/jdk-1.3 + >=dev-java/ant-1.5.2 + >=dev-java/xerces-2.6.0" +RDEPEND="$DEPEND" + +src_compile() { + CLASSPATH=$CLASSPATH:`pwd`/bin/xercesImpl.jar:`pwd`/bin/bsf.jar:`pwd`/src\ + ant jar ${myc} || die "build failed" + + if [ -n "`use doc`" ] ; then + if [ `java-config --java-version 2>&1 | grep "1\.4\." | wc -l` -lt 1 ] ; then + ant javadocs || die "Build Javadocs Failed" + else + USE="" + einfo " " + einfo " 1.4.x JDKs are unable to compile Javadocs at this time. " + einfo " " + fi + fi +} + +src_install () { + java-pkg_dojar build/*.jar + dohtml readme.html + + if [ -n "`use doc`" ] ; then + dodir /usr/share/doc/${P} + dodoc TODO STATUS README LICENSE ISSUES + dohtml -r build/docs/* + fi +} + +pkg_postinst() { + if [ -n "`use doc`" ] ; then + einfo " " + einfo " API Documentation is in /usr/share/doc/${PN}-${PV}. " + einfo " " + einfo " Design documentation can be found online at: " + einfo " http://xml.apache.org/xalan-j/design/design2_0_0.html" + einfo " " + sleep 5 + else + einfo " " + einfo " Online Documentation: " + einfo " http://xml.apache.org/xalan-j/design/design2_0_0.html" + einfo " http://xml.apache.org/xalan-j/apidocs/index.html " + einfo " " + sleep 5 + fi +} -- cgit v1.2.3-65-gdbad