summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-04-13 11:05:54 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-04-13 11:05:54 +0000
commitea0237cfe07821f0f6c4dd72fd9069e9d06330bc (patch)
tree5b77afc96b84db77e2499d69deb49a78902915cf /dev-java
parentApply the patch in 2.8.2, thanks to Charles Clément <caratorn at gmail dot c... (diff)
downloadgentoo-2-ea0237cfe07821f0f6c4dd72fd9069e9d06330bc.tar.gz
gentoo-2-ea0237cfe07821f0f6c4dd72fd9069e9d06330bc.tar.bz2
gentoo-2-ea0237cfe07821f0f6c4dd72fd9069e9d06330bc.zip
Add launcher script named saxon8 and add Main-Class attribute to saxon8.jar. Fixes bug #174419.
(Portage version: 2.1.2.3)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/saxon/ChangeLog9
-rw-r--r--dev-java/saxon/files/build-8.4b.xml5
-rw-r--r--dev-java/saxon/files/digest-saxon-8.4b-r33
-rw-r--r--dev-java/saxon/saxon-8.4b-r3.ebuild63
4 files changed, 78 insertions, 2 deletions
diff --git a/dev-java/saxon/ChangeLog b/dev-java/saxon/ChangeLog
index 6bfb73560099..d0492bcb5a77 100644
--- a/dev-java/saxon/ChangeLog
+++ b/dev-java/saxon/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/saxon
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/ChangeLog,v 1.25 2007/04/12 13:55:24 welp Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/ChangeLog,v 1.26 2007/04/13 11:05:54 betelgeuse Exp $
+
+*saxon-8.4b-r3 (13 Apr 2007)
+
+ 13 Apr 2007; Petteri Räty <betelgeuse@gentoo.org> files/build-8.4b.xml,
+ +saxon-8.4b-r3.ebuild:
+ Add launcher script named saxon8 and add Main-Class attribute to saxon8.jar.
+ Fixes bug #174419.
12 Apr 2007; <welp@gentoo.org> saxon-6.5.2-r1.ebuild,
saxon-8.4b-r2.ebuild:
diff --git a/dev-java/saxon/files/build-8.4b.xml b/dev-java/saxon/files/build-8.4b.xml
index 64d9036d83e8..a3b6ebafbec7 100644
--- a/dev-java/saxon/files/build-8.4b.xml
+++ b/dev-java/saxon/files/build-8.4b.xml
@@ -61,7 +61,10 @@
<exclude name="**/xom/**"/>
<exclude name="**/xpath/**"/>
</fileset>
- </jar>
+ <manifest>
+ <attribute name="Main-Class" value="net.sf.saxon.Transform" />
+ </manifest>
+ </jar>
</target>
<target name="jar-saxon8-dom" depends="compile,manifest">
diff --git a/dev-java/saxon/files/digest-saxon-8.4b-r3 b/dev-java/saxon/files/digest-saxon-8.4b-r3
new file mode 100644
index 000000000000..0a0ed4b5b587
--- /dev/null
+++ b/dev-java/saxon/files/digest-saxon-8.4b-r3
@@ -0,0 +1,3 @@
+MD5 3ca4ece454bcc7980693a76870a82a3f saxonb8-4.zip 7266831
+RMD160 9da35b8bdc632f1e758bdc101110ebe06b66f4f9 saxonb8-4.zip 7266831
+SHA256 c47f0f88c765d246a3e6666228db050fba5089bc8eff426d1b23ef807d1c7ff0 saxonb8-4.zip 7266831
diff --git a/dev-java/saxon/saxon-8.4b-r3.ebuild b/dev-java/saxon/saxon-8.4b-r3.ebuild
new file mode 100644
index 000000000000..275c403aec17
--- /dev/null
+++ b/dev-java/saxon/saxon-8.4b-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/saxon-8.4b-r3.ebuild,v 1.1 2007/04/13 11:05:54 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 eutils java-ant-2
+
+DESCRIPTION="The SAXON package is a collection of tools for processing XML documents: XSLT processor, XSL library, parser."
+MyPV=${PV%b}
+SRC_URI="mirror://sourceforge/saxon/saxonb${MyPV/./-}.zip"
+HOMEPAGE="http://saxon.sourceforge.net/"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+COMMON_DEP="
+ dev-java/xom
+ ~dev-java/jdom-1.0
+ =dev-java/xml-commons-external-1.3*"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+
+ unpack ./source.zip
+ mkdir src
+ mv net src
+
+ epatch ${FILESDIR}/${P}-jikes.patch
+
+ cp "${FILESDIR}/build-${PV}.xml" build.xml -i || die
+
+ rm -v *.jar || die
+ mkdir lib && cd lib
+ java-pkg_jar-from jdom-1.0
+ java-pkg_jar-from xom
+ # Is not needed with 1.5 but gets pulled in by deps any way
+ # without this emerging with sun-jdk-1.4 fails with
+ # JAVA_PKG_STRICT
+ java-pkg_jar-from xml-commons-external-1.3
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+
+ # the jar is named saxon8 and and helps if new slots come along
+ java-pkg_dolauncher ${PN}8 --main net.sf.saxon.Transform
+ if use doc; then
+ java-pkg_dojavadoc dist/doc/api doc/*
+ java-pkg_dohtml doc/*
+ fi
+ use source && java-pkg_dosrc src/*
+}