diff options
author | 2007-01-08 10:59:40 +0000 | |
---|---|---|
committer | 2007-01-08 10:59:40 +0000 | |
commit | 31dbd7e42e3d8748eee2b68854581af301196246 (patch) | |
tree | 0bb957d492c618fa6799c3c1bd3a2f0917bec131 /dev-java/batik/batik-1.6-r3.ebuild | |
parent | fix digest #160837 (diff) | |
download | gentoo-2-31dbd7e42e3d8748eee2b68854581af301196246.tar.gz gentoo-2-31dbd7e42e3d8748eee2b68854581af301196246.tar.bz2 gentoo-2-31dbd7e42e3d8748eee2b68854581af301196246.zip |
Fix javadoc install location wrt bug #160835 by Alistair Bush <alistair.bush@gmail.com>. Don't install xdocs, we will need stylebook to transform them to html first. Prevents copying jython.jar into own lib dir.
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'dev-java/batik/batik-1.6-r3.ebuild')
-rw-r--r-- | dev-java/batik/batik-1.6-r3.ebuild | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/dev-java/batik/batik-1.6-r3.ebuild b/dev-java/batik/batik-1.6-r3.ebuild new file mode 100644 index 000000000000..1b6ef6f911ec --- /dev/null +++ b/dev-java/batik/batik-1.6-r3.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.6-r3.ebuild,v 1.1 2007/01/08 10:59:40 caster Exp $ + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION="Java based SVG toolkit" +HOMEPAGE="http://xml.apache.org/batik/" +SRC_URI="mirror://apache/xml/batik/${PN}-src-${PV}.zip" + +LICENSE="Apache-2.0" +SLOT="1.6" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc" + +# According to +# http://xmlgraphics.apache.org/batik/install.html#optionalComponents +# jython is optional so should look into making a use flag +CDEPEND="=dev-java/rhino-1.5* + >=dev-java/xerces-2.7.1 + =dev-java/xml-commons-external-1.3* + dev-java/jython" +DEPEND="=virtual/jdk-1.4* + dev-java/ant-core + app-arch/unzip + ${CDEPEND}" +RDEPEND=">=virtual/jre-1.4 + ${CDEPEND}" + +S="${WORKDIR}/xml-${PN}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch ${FILESDIR}/${P}-jikes.patch + epatch ${FILESDIR}/${P}-dont-copy-deps.patch + + cd lib + rm -f *.jar build/*.jar + + java-pkg_jar-from xml-commons-external-1.3 + java-pkg_jar-from xerces-2 + java-pkg_jar-from rhino-1.5 + java-pkg_jar-from jython +} + +src_compile() { + # Fails to build on amd64 without this + if use amd64 ; then + export ANT_OPTS="-Xmx1g" + else + export ANT_OPTS="-Xmx256m" + fi + + eant jars all-jar $(use_doc) +} + +src_install() { + java-pkg_dojar ${P}/batik*.jar + + cd ${P}/lib + + # needed because batik expects this layout: + # batik.jar lib/*.jar + # there are hardcoded classpaths in the manifest :( + dodir /usr/share/${PN}-${SLOT}/lib/lib/ + for jar in *.jar + do + java-pkg_dojar ${jar} + dosym ../${jar} /usr/share/${PN}-${SLOT}/lib/lib/${jar} + done + + cd "${S}" + dodoc README LICENSE || die "dodoc failed" + use doc && java-pkg_dojavadoc ${P}/docs/javadoc + + # pwd fixes bug #116976 + java-pkg_dolauncher batik-${SLOT} --pwd "/usr/share/${PN}-${SLOT}/" \ + --main org.apache.batik.apps.svgbrowser.Main + + # To find these lsjar batik-${SLOT} | grep Main.class + for launcher in ttf2svg slideshow svgpp rasterizer; do + java-pkg_dolauncher batik-${launcher}-${SLOT} \ + --main org.apache.batik.apps.${launcher}.Main + done +} |