summaryrefslogtreecommitdiff
path: root/dev-java/batik
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/batik
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/batik')
-rw-r--r--dev-java/batik/Manifest4
-rw-r--r--dev-java/batik/batik-1.9.ebuild109
-rw-r--r--dev-java/batik/files/batik-1.9-ImportInfo.patch10
-rw-r--r--dev-java/batik/metadata.xml13
4 files changed, 136 insertions, 0 deletions
diff --git a/dev-java/batik/Manifest b/dev-java/batik/Manifest
new file mode 100644
index 000000000000..898f4bb7e7fe
--- /dev/null
+++ b/dev-java/batik/Manifest
@@ -0,0 +1,4 @@
+AUX batik-1.9-ImportInfo.patch 439 BLAKE2B 2d1c13f8ffa944c9f303932818b4df5b2c9c10f2903b67500971413e9e3460340b4c6d9bb3e84875ce06845f6646d0ce566a295a5982e88209bf692266dabbb8 SHA512 ff390670537fd631dbd0041a4496e0a33daa1bbd9390867285d2a817ee7794d19c0d634dbfcf4a1e777db072a0f1b6bc2b68e475bbe590bce825aa7b7d76f643
+DIST batik-src-1.9.tar.gz 16748072 BLAKE2B 4e23c0de3d56ba130c5bc9ef80a01549e8c11ab4db3b1ac5dae8525cf0a3a8b7f4df3161c12f1f0df9c74229aaf2034fb6c9c2f91b7fc7407a0af580d144e606 SHA512 96a5c16bd3d61ea33ed5013fd0b00f1724470d9b667f0f84ef4a29dcaaa19b1cc8ffcc92dc49767f4e29d77a47f99df5afca479336ac5619778b51a6fb6cd952
+EBUILD batik-1.9.ebuild 2608 BLAKE2B fafaccf8e95594e59b37e39d367a2461f01ab2c0c847d7482afa544e1c96aea539fef9493823510d5aa52ae0796d0b88d7937b023523f7f9429a852dd292becd SHA512 6dee45bb334ede236b28e376b68526d30c5347441c62687c9f2f062f888174ca59ebe382075df5d14e860384ccc103d1ebdc907dfd40d25d5e87fc78f05834b7
+MISC metadata.xml 449 BLAKE2B 44566acbbaba426170f7f8690216a45cb7809590fd62af0e87eef9cedb6caea2d896507925ec98ed278b90001f92cc38c968795a7b6fc5627c9c4e322da17743 SHA512 e437217b578831129aa80be572fd1044db0ee1c0afb0af0538dbed3e7d2ba739062eca68053426c79433ec03128ea0116a4a92be4d1946e20968be3fe89a4e02
diff --git a/dev-java/batik/batik-1.9.ebuild b/dev-java/batik/batik-1.9.ebuild
new file mode 100644
index 000000000000..ab95a4c9432a
--- /dev/null
+++ b/dev-java/batik/batik-1.9.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc"
+
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="Java based SVG toolkit"
+HOMEPAGE="https://xmlgraphics.apache.org/batik/"
+SRC_URI="http://apache.mirrors.ovh.net/ftp.apache.org/dist/xmlgraphics/${PN}/source/${PN}-src-${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="1.9"
+KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc python tcl"
+
+CDEPEND="
+ tcl? ( dev-java/jacl:0 )
+ python? ( dev-java/jython:2.7 )
+ dev-java/xalan:0
+ dev-java/rhino:1.6
+ dev-java/ant-core:0
+ dev-java/xmlgraphics-commons:2
+ dev-java/xml-commons-external:1.3"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+EANT_GENTOO_CLASSPATH="
+ xml-commons-external-1.3
+ xmlgraphics-commons-2
+ rhino-1.6
+ xalan"
+
+src_prepare() {
+ default
+
+ # See bug 318323.
+ local file
+ for file in build.xml contrib/rasterizertask/build.xml; do
+ java-ant_xml-rewrite -f ${file} -c -e javadoc -a failonerror -v no -a maxmemory -v 512m
+ done
+
+ # See bug 628812.
+ use tcl && epatch "${FILESDIR}/${P}-ImportInfo.patch"
+
+ cd lib || die
+ rm -v *.jar build/*.jar || die
+ use python && java-pkg_jar-from jython-2.7
+ use tcl && java-pkg_jar-from jacl
+}
+
+src_compile() {
+ # Fails to build on amd64 without this
+ export ANT_OPTS="-Xmx256m"
+ use amd64 && export ANT_OPTS="-Xmx1g"
+
+ 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() {
+ batik_unversion_jars() {
+ local jar
+ for jar in batik-*.jar; do
+ newj="${jar%-*}.jar"
+ java-pkg_newjar ${jar} ${newj}
+ done
+ }
+
+ # First unversion jars in ${P}/lib
+ cd "${S}/${P}/lib" || die
+ batik_unversion_jars
+
+ # Then, only those in ${P}
+ cd "${S}/${P}" || die
+ batik_unversion_jars
+
+ # Proceed with documentation installation
+ cd "${S}" || die
+ dodoc README CHANGES
+ use doc && java-pkg_dojavadoc "${P}/docs/javadoc"
+
+ # See 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
+ local launcher
+ 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
+}
diff --git a/dev-java/batik/files/batik-1.9-ImportInfo.patch b/dev-java/batik/files/batik-1.9-ImportInfo.patch
new file mode 100644
index 000000000000..103b99e1b967
--- /dev/null
+++ b/dev-java/batik/files/batik-1.9-ImportInfo.patch
@@ -0,0 +1,10 @@
+--- a/batik-script/src/main/java/org/apache/batik/script/jacl/JaclInterpreterFactory.java 2017-10-28 17:24:11.401276868 +0000
++++ b/batik-script/src/main/java/org/apache/batik/script/jacl/JaclInterpreterFactory.java 2017-10-28 17:27:13.314255999 +0000
+@@ -20,6 +20,7 @@
+
+ import java.net.URL;
+
++import org.apache.batik.script.ImportInfo;
+ import org.apache.batik.script.Interpreter;
+ import org.apache.batik.script.InterpreterFactory;
+
diff --git a/dev-java/batik/metadata.xml b/dev-java/batik/metadata.xml
new file mode 100644
index 000000000000..2eec2d22b8d0
--- /dev/null
+++ b/dev-java/batik/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+<longdescription>
+ Java toolkit for applications or applets that want to use
+ images in the Scalable Vector Graphics (SVG) format for various
+ purposes, such as viewing, generation or manipulation.
+</longdescription>
+</pkgmetadata>