summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2009-05-20 21:37:17 +0000
committerVlastimil Babka <caster@gentoo.org>2009-05-20 21:37:17 +0000
commit7348395259941ba7cc3c6603d69909ea4031768b (patch)
tree39bf3c27c57fa8cab4213d7d7c52e876ff29e9b6 /dev-java
parentVersion bump wrt #266823. (diff)
downloadgentoo-2-7348395259941ba7cc3c6603d69909ea4031768b.tar.gz
gentoo-2-7348395259941ba7cc3c6603d69909ea4031768b.tar.bz2
gentoo-2-7348395259941ba7cc3c6603d69909ea4031768b.zip
Version bump, bug #200851.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/batik/ChangeLog7
-rw-r--r--dev-java/batik/batik-1.7-r2.ebuild91
2 files changed, 97 insertions, 1 deletions
diff --git a/dev-java/batik/ChangeLog b/dev-java/batik/ChangeLog
index c60d97b471b6..c62b1dbc92ce 100644
--- a/dev-java/batik/ChangeLog
+++ b/dev-java/batik/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/batik
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.56 2009/05/20 20:31:34 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.57 2009/05/20 21:37:17 caster Exp $
+
+*batik-1.7-r2 (20 May 2009)
+
+ 20 May 2009; Vlastimil Babka <caster@gentoo.org> +batik-1.7-r2.ebuild:
+ Version bump, bug #200851.
20 May 2009; Vlastimil Babka <caster@gentoo.org> batik-1.6-r4.ebuild:
Cleanup
diff --git a/dev-java/batik/batik-1.7-r2.ebuild b/dev-java/batik/batik-1.7-r2.ebuild
new file mode 100644
index 000000000000..58f020e1e7ef
--- /dev/null
+++ b/dev-java/batik/batik-1.7-r2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.7-r2.ebuild,v 1.1 2009/05/20 21:37:17 caster Exp $
+
+EAPI=2
+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 ~ia64 ~ppc ~ppc64 ~x86"
+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
+
+ 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 *.jar
+ do
+ java-pkg_dojar ${jar}
+ dosym ../${jar} /usr/share/${PN}-${SLOT}/lib/lib/${jar}
+ done
+
+ cd "${S}"
+ dodoc README CHANGES || 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
+
+ # Install and register the ant task.
+ java-pkg_dojar contrib/rasterizertask/build/lib/RasterizerTask.jar
+ java-pkg_register-ant-task
+}