summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2005-06-30 11:27:54 +0000
committerThomas Matthijs <axxo@gentoo.org>2005-06-30 11:27:54 +0000
commita792bc160946876403c9ae5220e0ddd305250aa4 (patch)
treed027dd79e3a424e3d2b1a831cf378d9433340e0a /dev-java/saxon
parentFix typo in amd64 auto* stuff. Reorder them properly. (diff)
downloadgentoo-2-a792bc160946876403c9ae5220e0ddd305250aa4.tar.gz
gentoo-2-a792bc160946876403c9ae5220e0ddd305250aa4.tar.bz2
gentoo-2-a792bc160946876403c9ae5220e0ddd305250aa4.zip
no longer uses packed jars, ebuild by Josh Nichols <nichoj@alum.rpi.edu> in 97431
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-java/saxon')
-rw-r--r--dev-java/saxon/ChangeLog11
-rw-r--r--dev-java/saxon/Manifest4
-rw-r--r--dev-java/saxon/files/build-8.4b.xml120
-rw-r--r--dev-java/saxon/files/digest-saxon-8.4b1
-rw-r--r--dev-java/saxon/files/saxon-8.4b-jikes.patch14
-rw-r--r--dev-java/saxon/metadata.xml5
-rw-r--r--dev-java/saxon/saxon-8.4b.ebuild61
7 files changed, 216 insertions, 0 deletions
diff --git a/dev-java/saxon/ChangeLog b/dev-java/saxon/ChangeLog
new file mode 100644
index 000000000000..f03eadceaec1
--- /dev/null
+++ b/dev-java/saxon/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/saxon
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/ChangeLog,v 1.9 2005/06/30 11:27:54 axxo Exp $
+
+*saxon-8.4b (30 Jun 2005)
+
+ 30 Jun 2005; Thomas Matthijs <axxo@gentoo.org> +files/build-8.4b.xml,
+ +files/saxon-8.4b-jikes.patch, +metadata.xml, +saxon-8.4b.ebuild:
+ no longer uses packed jars, ebuild by Josh Nichols <nichoj@alum.rpi.edu> in
+ 97431
+
diff --git a/dev-java/saxon/Manifest b/dev-java/saxon/Manifest
new file mode 100644
index 000000000000..d80bbc68f930
--- /dev/null
+++ b/dev-java/saxon/Manifest
@@ -0,0 +1,4 @@
+MD5 a8896d3b51d8312121768731fe3c585f saxon-8.4b.ebuild 1256
+MD5 7bc2c04efaafba15df5fa9c221a00a29 files/saxon-8.4b-jikes.patch 795
+MD5 afbe9c7e01f5c21423b6a0f067fb9d29 files/build-8.4b.xml 3942
+MD5 10dc7b59a9361c2d721acb87e6882516 files/digest-saxon-8.4b 59
diff --git a/dev-java/saxon/files/build-8.4b.xml b/dev-java/saxon/files/build-8.4b.xml
new file mode 100644
index 000000000000..64d9036d83e8
--- /dev/null
+++ b/dev-java/saxon/files/build-8.4b.xml
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!---
+ @author: Saleem Abdulrasool <compnerd@gentoo.org>
+ @date: 5/9/2005
+ @revision: 1.0_alpha
+
+ @notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name}
+-->
+
+<project name="Gentoo_Builder" default="jar" basedir=".">
+ <property name="src" value="src"/>
+ <property name="build" value="build"/>
+ <property name="dist" value="dist"/>
+
+ <property name="project.name" value="saxon8"/>
+ <property name="pkg" value="${package.name}"/>
+ <property name="all.jar" value="${project.name}.jar"/>
+ <property name="dom.jar" value="${project.name}-dom.jar"/>
+ <property name="jdom.jar" value="${project.name}-jdom.jar"/>
+ <property name="sql.jar" value="${project.name}-sql.jar"/>
+ <property name="xom.jar" value="${project.name}-xom.jar"/>
+ <property name="xpath.jar" value="${project.name}-xpath.jar"/>
+
+ <!-- Override any defined properties -->
+ <property file="build.properties"/>
+ <path id="lib.classpath">
+ <fileset dir="lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${build}"/>
+ <mkdir dir="${build}/META-INF/services"/>
+ <mkdir dir="${dist}"/>
+ <mkdir dir="${dist}/doc"/>
+ </target>
+
+ <target name="compile" depends="init">
+ <javac srcdir="${src}" destdir="${build}" classpath="${classpath}" classpathref="lib.classpath"/>
+ </target>
+
+ <target name="manifest" depends="init">
+ <manifest file="${build}/META-INF/MANIFEST.MF" mode="update">
+ <attribute name="Built-By" value="Gentoo Portage"/>
+ </manifest>
+ <echo file="${build}/META-INF/services/javax.xml.xpath.XPathFactory" message="net.sf.saxon.xpath.XPathFactory"/>
+ <echo file="${build}/META-INF/services/javax.xml.transform.TransformerFactory" message="net.sf.saxon.transform.TransformerFactoryImpl"/>
+ </target>
+
+ <target name="jar-saxon8" depends="compile,manifest">
+ <jar jarfile="${dist}/${all.jar}" manifest="${build}/META-INF/MANIFEST.MF">
+ <fileset dir="${build}">
+ <include name="net/sf/saxon/**"/>
+ <include name="META-INF/services/javax.xml.transform.TransformFactory"/>
+ <exclude name="**/dom/**"/>
+ <exclude name="**/jdom/**"/>
+ <exclude name="**/sql/**"/>
+ <exclude name="**/xom/**"/>
+ <exclude name="**/xpath/**"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="jar-saxon8-dom" depends="compile,manifest">
+ <jar jarfile="${dist}/${dom.jar}" manifest="${build}/META-INF/MANIFEST.MF">
+ <fileset dir="${build}">
+ <include name="net/sf/saxon/dom/**"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="jar-saxon8-jdom" depends="compile,manifest">
+ <jar jarfile="${dist}/${jdom.jar}" manifest="${build}/META-INF/MANIFEST.MF">
+ <fileset dir="${build}">
+ <include name="net/sf/saxon/jdom/**"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="jar-saxon8-sql" depends="compile,manifest">
+ <jar jarfile="${dist}/${sql.jar}" manifest="${build}/META-INF/MANIFEST.MF">
+ <fileset dir="${build}">
+ <include name="net/sf/saxon/jdom/**"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="jar-saxon8-xom" depends="compile,manifest">
+ <jar jarfile="${dist}/${xom.jar}" manifest="${build}/META-INF/MANIFEST.MF">
+ <fileset dir="${build}">
+ <include name="net/sf/saxon/xom/**"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="jar-saxon8-xpath" depends="compile,manifest">
+ <jar jarfile="${dist}/${xpath.jar}" manifest="${build}/META-INF/MANIFEST.MF">
+ <fileset dir="${build}">
+ <include name="net/sf/saxon/xpath/**"/>
+ <include name="META-INF/services/javax.xml.xpath.XPathFactory"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="jar" depends="jar-saxon8,jar-saxon8-dom,jar-saxon8-jdom,jar-saxon8-sql,jar-saxon8-xom,jar-saxon8-xpath"/>
+
+ <target name="javadoc" depends="compile">
+ <javadoc destdir="${dist}/doc/api" classpathref="lib.classpath">
+ <fileset dir="${src}"/>
+ </javadoc>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
diff --git a/dev-java/saxon/files/digest-saxon-8.4b b/dev-java/saxon/files/digest-saxon-8.4b
new file mode 100644
index 000000000000..fca13204aba8
--- /dev/null
+++ b/dev-java/saxon/files/digest-saxon-8.4b
@@ -0,0 +1 @@
+MD5 3ca4ece454bcc7980693a76870a82a3f saxonb8-4.zip 7266831
diff --git a/dev-java/saxon/files/saxon-8.4b-jikes.patch b/dev-java/saxon/files/saxon-8.4b-jikes.patch
new file mode 100644
index 000000000000..e3d3f2c38043
--- /dev/null
+++ b/dev-java/saxon/files/saxon-8.4b-jikes.patch
@@ -0,0 +1,14 @@
+diff -ru saxon/src/net/sf/saxon/expr/UserFunctionCall.java saxon-patched/src/net/sf/saxon/expr/UserFunctionCall.java
+--- saxon/src/net/sf/saxon/expr/UserFunctionCall.java 2005-03-21 13:46:38.000000000 -0500
++++ saxon-patched/src/net/sf/saxon/expr/UserFunctionCall.java 2005-06-29 20:13:47.000000000 -0400
+@@ -401,8 +401,8 @@
+ */
+
+ public Object map(Item item, XPathContext context) throws XPathException {
+- if (item instanceof FunctionCallPackage) {
+- return (((FunctionCallPackage)item).iterateResults(context));
++ if (item instanceof UserFunctionCall.FunctionCallPackage) {
++ return (((UserFunctionCall.FunctionCallPackage)item).iterateResults(context));
+ } else {
+ return item;
+ }
diff --git a/dev-java/saxon/metadata.xml b/dev-java/saxon/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/saxon/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>
diff --git a/dev-java/saxon/saxon-8.4b.ebuild b/dev-java/saxon/saxon-8.4b.ebuild
new file mode 100644
index 000000000000..9c76cba980ec
--- /dev/null
+++ b/dev-java/saxon/saxon-8.4b.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/saxon-8.4b.ebuild,v 1.1 2005/06/30 11:27:54 axxo Exp $
+
+inherit java-pkg eutils
+
+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="~x86"
+IUSE="doc jikes source"
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/gnu-jaxp-1.3
+ dev-java/xom
+ ~dev-java/jdom-1.0"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ dev-java/ant-core
+ source? ( app-arch/zip )
+ jikes? ( dev-java/jikes )
+ ${RDEPEND}"
+
+S=${WORKDIR}
+src_unpack() {
+ unpack ${A}
+
+ unzip -q source.zip || die "failed to unpack"
+ mkdir src
+ mv net src
+
+ epatch ${FILESDIR}/${P}-jikes.patch
+
+ cp ${FILESDIR}/build-${PVR}.xml build.xml
+
+ rm *.jar
+ mkdir lib && cd lib
+ java-pkg_jarfrom gnu-jaxp
+ java-pkg_jarfrom jdom-1.0
+ java-pkg_jarfrom xom
+}
+
+src_compile() {
+ local antflags="jar"
+ use jikes && antflags="-Dbuild.compiler=jikes ${antflags}"
+ use doc && antflags="${antflags} javadoc"
+
+ ant ${antflags} || die "Compilation failed"
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+
+ use doc && java-pkg_dohtml -r dist/doc/api doc/*
+ use source && java-pkg_dosrc src/*
+}