diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2003-06-30 23:14:03 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2003-06-30 23:14:03 +0000 |
commit | d4d8eca7a1d4d769172d7f66441ab796d283b537 (patch) | |
tree | 1bad2b98356d70db2f7c1e61f068eb05a334b39e /dev-java/xalan/xalan-2.5.1.ebuild | |
parent | cvsps imported (diff) | |
download | gentoo-2-d4d8eca7a1d4d769172d7f66441ab796d283b537.tar.gz gentoo-2-d4d8eca7a1d4d769172d7f66441ab796d283b537.tar.bz2 gentoo-2-d4d8eca7a1d4d769172d7f66441ab796d283b537.zip |
versionbumps
Diffstat (limited to 'dev-java/xalan/xalan-2.5.1.ebuild')
-rw-r--r-- | dev-java/xalan/xalan-2.5.1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-java/xalan/xalan-2.5.1.ebuild b/dev-java/xalan/xalan-2.5.1.ebuild new file mode 100644 index 000000000000..5cfc4c60663e --- /dev/null +++ b/dev-java/xalan/xalan-2.5.1.ebuild @@ -0,0 +1,61 @@ +# 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.1.ebuild,v 1.1 2003/06/30 23:14:03 aliz Exp $ + +MY_P=${PN}-j_${PV//./_} + +S=${WORKDIR}/${MY_P} +DESCRIPTION="XSLT processor" +HOMEPAGE="http://xml.apache.org/xalan-j/index.html" +SRC_URI="http://xml.apache.org/dist/xalan-j/${MY_P}-src.tar.gz" +LICENSE="Apache-1.1" +DEPEND=">=virtual/jdk-1.3 + >=dev-java/ant-1.5.2 + >=dev-java/xerces-2.3.0" +RDEPEND="$DEPEND" +SLOT="0" +KEYWORDS="~x86 ~sparc ~ppc" +IUSE="doc" + +src_compile() { + 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 () { + dojar build/xalan.jar + dohtml readme.html + + if [ -n "`use doc`" ] ; then + 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 +} |