summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-11-17 03:30:04 +0000
committerChristoph Junghans <ottxor@gentoo.org>2012-11-17 03:30:04 +0000
commit202ce0b67a3708d3ff3da32b97e87c69801e87ca (patch)
treedf93b99a6952668c2f7e0071be0f126aa74fa953 /dev-java/batik
parentupdated metadata.xml (diff)
downloadgentoo-2-202ce0b67a3708d3ff3da32b97e87c69801e87ca.tar.gz
gentoo-2-202ce0b67a3708d3ff3da32b97e87c69801e87ca.tar.bz2
gentoo-2-202ce0b67a3708d3ff3da32b97e87c69801e87ca.zip
added prefix support (bug #438898)
(Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key C2000586)
Diffstat (limited to 'dev-java/batik')
-rw-r--r--dev-java/batik/ChangeLog10
-rw-r--r--dev-java/batik/batik-1.7-r3.ebuild95
2 files changed, 102 insertions, 3 deletions
diff --git a/dev-java/batik/ChangeLog b/dev-java/batik/ChangeLog
index 6a61e22c4a88..6f752f40af7a 100644
--- a/dev-java/batik/ChangeLog
+++ b/dev-java/batik/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/batik
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.66 2011/12/31 16:38:20 sera Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.67 2012/11/17 03:30:04 ottxor Exp $
+
+*batik-1.7-r3 (17 Nov 2012)
+
+ 17 Nov 2012; Christoph Junghans <ottxor@gentoo.org> +batik-1.7-r3.ebuild:
+ added prefix support (bug #438898)
31 Dec 2011; Ralph Sennhauser <sera@gentoo.org> batik-1.7-r2.ebuild:
Drop ia64 support #345433
@@ -252,4 +257,3 @@
27 Apr 2003; Todd Berman <tberman@gentoo.org> batik-1.1.1.ebuild:
Initial import.
-
diff --git a/dev-java/batik/batik-1.7-r3.ebuild b/dev-java/batik/batik-1.7-r3.ebuild
new file mode 100644
index 000000000000..6f49e1585949
--- /dev/null
+++ b/dev-java/batik/batik-1.7-r3.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.7-r3.ebuild,v 1.1 2012/11/17 03:30:04 ottxor Exp $
+
+EAPI=4
+JAVA_PKG_IUSE="doc"
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="Java based SVG toolkit"
+HOMEPAGE="http://xmlgraphics.apache.org/${PN}/"
+SRC_URI="mirror://apache/xmlgraphics/${PN}/${PN}-src-${PV}.zip"
+
+LICENSE="Apache-2.0"
+SLOT="1.7"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc python tcl"
+
+CDEPEND="dev-java/xalan:0
+ dev-java/rhino:1.6
+ dev-java/xml-commons-external:1.3
+ python? ( dev-java/jython:0 )
+ tcl? ( dev-java/jacl:0 )
+ dev-java/ant-core"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${CDEPEND}"
+RDEPEND=">=virtual/jre-1.4
+ ${CDEPEND}"
+
+java_prepare() {
+ java-ant_ignore-system-classes
+ java-ant_rewrite-classpath contrib/rasterizertask/build.xml
+ for file in build.xml contrib/rasterizertask/build.xml; do
+ # bug #318323
+ java-ant_xml-rewrite -f ${file} -c -e javadoc -a failonerror -v yes -a maxmemory -v 512m
+ done
+
+ cd lib
+ rm -v *.jar build/*.jar || die
+
+ java-pkg_jar-from xml-commons-external-1.3
+ java-pkg_jar-from xalan
+ java-pkg_jar-from rhino-1.6
+
+ use python && java-pkg_jar-from jython
+ use tcl && java-pkg_jar-from jacl
+}
+
+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)
+ cd contrib/rasterizertask || die
+ eant -Dgentoo.classpath="$(java-pkg_getjar ant-core ant.jar):../../classes" jar $(use_doc)
+}
+
+src_install() {
+ #All-jar doesn't include ALL
+ java-pkg_dojar ${P}/${PN}-*.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 batik*.jar
+ do
+ java-pkg_dojar ${jar}
+ dosym ../${jar} /usr/share/${PN}-${SLOT}/lib/lib/${jar}
+ done
+
+ cd "${S}"
+ dodoc README CHANGES
+ use doc && java-pkg_dojavadoc ${P}/docs/javadoc
+
+ # pwd fixes bug #116976
+ java-pkg_dolauncher batik-${SLOT} --pwd "${EPREFIX}/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
+
+ # Install and register the ant task.
+ java-pkg_dojar contrib/rasterizertask/build/lib/RasterizerTask.jar
+ java-pkg_register-ant-task
+}