diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2005-06-30 11:27:54 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2005-06-30 11:27:54 +0000 |
commit | c77706e269c72eb32ec184b840f559120c2bfa3e (patch) | |
tree | c4c2bd6f027253c6d11358e22b5d5f98e88b83bd /dev-java/saxon | |
parent | Fix typo in amd64 auto* stuff. Reorder them properly. (diff) | |
download | historical-c77706e269c72eb32ec184b840f559120c2bfa3e.tar.gz historical-c77706e269c72eb32ec184b840f559120c2bfa3e.tar.bz2 historical-c77706e269c72eb32ec184b840f559120c2bfa3e.zip |
no longer uses packed jars, ebuild by Josh Nichols <nichoj@alum.rpi.edu> in 97431
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'dev-java/saxon')
-rw-r--r-- | dev-java/saxon/ChangeLog | 11 | ||||
-rw-r--r-- | dev-java/saxon/Manifest | 16 | ||||
-rw-r--r-- | dev-java/saxon/files/build-8.4b.xml | 120 | ||||
-rw-r--r-- | dev-java/saxon/files/digest-saxon-8.4b | 1 | ||||
-rw-r--r-- | dev-java/saxon/files/saxon-8.4b-jikes.patch | 14 | ||||
-rw-r--r-- | dev-java/saxon/metadata.xml | 5 | ||||
-rw-r--r-- | dev-java/saxon/saxon-8.4b.ebuild | 61 |
7 files changed, 228 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..abf770c88ac7 --- /dev/null +++ b/dev-java/saxon/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 173293655c9510fe23452c1c13e39255 saxon-8.4b.ebuild 1388 +MD5 e6acd9b510f844495da6ac4339c53020 ChangeLog 453 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +MD5 7bc2c04efaafba15df5fa9c221a00a29 files/saxon-8.4b-jikes.patch 795 +MD5 e858aa507902d409b110be423e735339 files/build-8.4b.xml 4120 +MD5 10dc7b59a9361c2d721acb87e6882516 files/digest-saxon-8.4b 59 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.1 (GNU/Linux) + +iD8DBQFCw9dP/rLF9B432nYRArWIAJwOeSmNqPyo+LFN8cyD8k3CecNVJwCeLrOg +l4PLjbNYyDkfnSDr4cMcJuk= +=sdaA +-----END PGP SIGNATURE----- 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/* +} |