diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2006-11-05 22:38:32 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2006-11-05 22:38:32 +0000 |
commit | f86dbec19043a54fdbfe0a376df4e8e3be8d642e (patch) | |
tree | a919ad03dbb4b22f54b33ab507e0e4571d08cf78 /dev-java | |
parent | clean out old ebuild; bsd fixup reported by Javier Villavicencio via bug #154130 (diff) | |
download | gentoo-2-f86dbec19043a54fdbfe0a376df4e8e3be8d642e.tar.gz gentoo-2-f86dbec19043a54fdbfe0a376df4e8e3be8d642e.tar.bz2 gentoo-2-f86dbec19043a54fdbfe0a376df4e8e3be8d642e.zip |
Added launchers for ttf2svg, slideshow, svgpp and rasterizer tools.
(Portage version: 2.1.2_rc1-r3)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/batik/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/batik/batik-1.6-r2.ebuild | 88 | ||||
-rw-r--r-- | dev-java/batik/files/digest-batik-1.6-r2 | 3 |
3 files changed, 97 insertions, 1 deletions
diff --git a/dev-java/batik/ChangeLog b/dev-java/batik/ChangeLog index acbef11633d7..850d676e80bc 100644 --- a/dev-java/batik/ChangeLog +++ b/dev-java/batik/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/batik # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.36 2006/11/05 22:01:52 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.37 2006/11/05 22:38:32 betelgeuse Exp $ + +*batik-1.6-r2 (05 Nov 2006) + + 05 Nov 2006; Petteri Räty <betelgeuse@gentoo.org> +batik-1.6-r2.ebuild: + Added launchers for ttf2svg, slideshow, svgpp and rasterizer tools. 05 Nov 2006; Petteri Räty <betelgeuse@gentoo.org> batik-1.6-r1.ebuild: Added missing dependency on dev-java/jython. diff --git a/dev-java/batik/batik-1.6-r2.ebuild b/dev-java/batik/batik-1.6-r2.ebuild new file mode 100644 index 000000000000..570f4d221a42 --- /dev/null +++ b/dev-java/batik/batik-1.6-r2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.6-r2.ebuild,v 1.1 2006/11/05 22:38:32 betelgeuse 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 + + 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 + rm {js,x*}.jar + + # 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} + rm -f ${jar} + dosym ../${jar} /usr/share/${PN}-${SLOT}/lib/lib/${jar} + done + + cd "${S}" + dodoc README LICENSE || die "dodoc failed" + use doc && java-pkg_dohtml -r ${P}/docs/api xdocs/* + + # 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 +} diff --git a/dev-java/batik/files/digest-batik-1.6-r2 b/dev-java/batik/files/digest-batik-1.6-r2 new file mode 100644 index 000000000000..16f71a451358 --- /dev/null +++ b/dev-java/batik/files/digest-batik-1.6-r2 @@ -0,0 +1,3 @@ +MD5 b65e12f520f8342605f700204c96cd2b batik-src-1.6.zip 10199668 +RMD160 a6d32d881827fa47b294c57442b2e0efd87caf85 batik-src-1.6.zip 10199668 +SHA256 e1c69fb68e4b6710c246f44157bc4f3f021bdb2f2cedb8112bc025e3a4877a2c batik-src-1.6.zip 10199668 |