summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/saxon
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/saxon')
-rw-r--r--dev-java/saxon/Manifest3
-rw-r--r--dev-java/saxon/files/9.2-build.xml72
-rw-r--r--dev-java/saxon/files/9.2-edition.properties2
-rw-r--r--dev-java/saxon/files/build-6.5.5.xml69
-rw-r--r--dev-java/saxon/files/build-8.4b.xml123
-rw-r--r--dev-java/saxon/files/saxon-8.4b-jikes.patch14
-rw-r--r--dev-java/saxon/metadata.xml8
-rw-r--r--dev-java/saxon/saxon-6.5.5.ebuild58
-rw-r--r--dev-java/saxon/saxon-8.4b-r3.ebuild66
-rw-r--r--dev-java/saxon/saxon-9.2.0.6.ebuild98
10 files changed, 513 insertions, 0 deletions
diff --git a/dev-java/saxon/Manifest b/dev-java/saxon/Manifest
new file mode 100644
index 000000000000..19b2be1f9156
--- /dev/null
+++ b/dev-java/saxon/Manifest
@@ -0,0 +1,3 @@
+DIST saxon6-5-5.zip 3346162 SHA256 a76806dda554edc844601d0ec0fb3d2a10a2f397eabf3569dfb44b628363afc4 SHA512 2d76ab6da8fc8ca8502139f6b620d4c9e94732a520083480e3936f6bd0a9f069252a7a05df53dab49aabec505764b2ec4ca1b36022bb56df568883a0491f495a WHIRLPOOL 11bd5242e2c82ac7467561946a0b3b35e53af48962906739136ce97561ca38fd950011a1f4a65cd597d2279af244c7b474707017108296c8deaee8fcecde7652
+DIST saxonb8-4.zip 7266831 SHA256 c47f0f88c765d246a3e6666228db050fba5089bc8eff426d1b23ef807d1c7ff0 SHA512 cca8681dff8c851e1be513a5d3334a6395291f1773ea452d759445100c4e97e8fafee3e2fd7a1974d234ed6404e2292e231d00830bd90740e2dab1c671fec1b5 WHIRLPOOL 0d8ec91f77d632416eb4362264081a340addece41de11dc7203de63309e6c07a92c40f087724eb161671043f90790abf97ce520e2095414bc01ab42596a4ab39
+DIST saxonhe9-2-0-6source.zip 2942625 SHA256 4f15659cf8bb537b4b20f63cf060bf56f39453ab520fa912b2e9fe87e90a972e SHA512 6c59c0cbed905cf561387acb54bb31f0a251432deb0edf498ec4f4d9955bbcc12d1765ace594090d3ccb0416e3e72349466e430bb4f799b51fd12ce8fc5a144e WHIRLPOOL ca1b5b8f2f70eb72259b8128606830adebc6f6eed8c5c6ff9f222a672556ff8f73219960758480366004b656100e017bfdebad7f4dc60afc9cb3ab6793fa9364
diff --git a/dev-java/saxon/files/9.2-build.xml b/dev-java/saxon/files/9.2-build.xml
new file mode 100644
index 000000000000..3bd9a64d4fe5
--- /dev/null
+++ b/dev-java/saxon/files/9.2-build.xml
@@ -0,0 +1,72 @@
+<!-- simple generic build file -->
+
+<project name="saxon" default="all" basedir=".">
+
+ <!-- Properties -->
+
+ <property name="name" value="saxon"/>
+ <property name="src" value="src"/>
+ <property name="build" value="build"/>
+ <property name="build.classes" value="${build}/classes"/>
+ <property name="build.doc" value="${build}/api"/>
+ <property name="build.lib" value="${build}/lib"/>
+ <property name="j2se.javadoc" value="http://java.sun.com/javase/@JDK@/docs/api"/>
+ <property name="jdom.javadoc" value="/usr/share/jdom-@JDOM@/api"/>
+
+ <!-- Targets -->
+
+ <!-- Prepare build directories -->
+ <target name="prepare">
+ <mkdir dir="${src}"/>
+ <mkdir dir="${build}"/>
+ <mkdir dir="${build.classes}"/>
+ <mkdir dir="${build.lib}"/>
+ <mkdir dir="${build.doc}"/>
+ <copy todir="${src}">
+ <fileset dir="." includes="com/**,org/**,net/**"/>
+ </copy>
+ </target>
+
+ <!-- Kill all the created directories -->
+ <target name="clean">
+ <delete dir="${build}"/>
+ <delete dir="${src}"/>
+ </target>
+
+ <!-- Build classes -->
+ <target name="classes" depends="prepare">
+ <javac srcdir="${src}" destdir="${build.classes}" encoding="ISO-8859-1"/>
+ </target>
+
+ <!-- Build jar archives -->
+
+ <target name="jar" depends="classes">
+ <jar jarfile="${build.lib}/${name}.jar"
+ basedir="${build.classes}">
+ <manifest>
+ <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <!-- Build the full JavaDocs -->
+ <target name="javadoc" depends="prepare">
+ <javadoc sourcepath="${src}"
+ destdir="${build.doc}"
+ doctitle="${name} JavaDoc"
+ windowtitle="${name} JavaDoc"
+ package="true"
+ author="true"
+ version="true"
+ packagenames="net.sf.saxon.*,org.w3c.xsl.*"
+ encoding="ISO-8859-1"
+ >
+ <link href="${j2se.javadoc}"/>
+ <link href="${jdom.javadoc}"/>
+ </javadoc>
+ </target>
+
+ <!-- Build everything -->
+ <target name="all" depends="jar,javadoc"/>
+
+</project>
diff --git a/dev-java/saxon/files/9.2-edition.properties b/dev-java/saxon/files/9.2-edition.properties
new file mode 100644
index 000000000000..bb5acee0b19c
--- /dev/null
+++ b/dev-java/saxon/files/9.2-edition.properties
@@ -0,0 +1,2 @@
+config=net.sf.saxon.Configuration
+platform=net.sf.saxon.java.JavaPlatform
diff --git a/dev-java/saxon/files/build-6.5.5.xml b/dev-java/saxon/files/build-6.5.5.xml
new file mode 100644
index 000000000000..bb866d07642a
--- /dev/null
+++ b/dev-java/saxon/files/build-6.5.5.xml
@@ -0,0 +1,69 @@
+<?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="saxon6.5"/>
+ <property name="pkg" value="${package.name}"/>
+ <property name="all.jar" value="${project.name}.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="${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">
+ <move file="${src}/META-INF" tofile="${build}/META-INF"/>
+ <manifest file="${build}/META-INF/MANIFEST.MF" mode="update">
+ <attribute name="Built-By" value="Gentoo Portage"/>
+ </manifest>
+ </target>
+
+ <target name="jar-saxon6.5" depends="compile,manifest">
+ <jar jarfile="${dist}/${all.jar}" manifest="${build}/META-INF/MANIFEST.MF">
+ <fileset dir="${build}">
+ <include name="com/**"/>
+ <include name="javax/**"/>
+ <include name="org/**"/>
+ <include name="META-INF/services/javax.xml.transform.TransformerFactory"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="jar" depends="jar-saxon6.5"/>
+
+ <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/build-8.4b.xml b/dev-java/saxon/files/build-8.4b.xml
new file mode 100644
index 000000000000..a3b6ebafbec7
--- /dev/null
+++ b/dev-java/saxon/files/build-8.4b.xml
@@ -0,0 +1,123 @@
+<?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>
+ <manifest>
+ <attribute name="Main-Class" value="net.sf.saxon.Transform" />
+ </manifest>
+ </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/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..9f1123bb2bec
--- /dev/null
+++ b/dev-java/saxon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <upstream>
+ <remote-id type="sourceforge">saxon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-java/saxon/saxon-6.5.5.ebuild b/dev-java/saxon/saxon-6.5.5.ebuild
new file mode 100644
index 000000000000..f9c7640612ff
--- /dev/null
+++ b/dev-java/saxon/saxon-6.5.5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc examples source"
+inherit java-pkg-2 java-ant-2 eutils versionator
+
+MY_P="${PN}$(replace_all_version_separators -)"
+DESCRIPTION="A collection of tools for processing XML documents: XSLT processor, XSL library, parser"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
+HOMEPAGE="http://saxon.sourceforge.net/"
+
+LICENSE="MPL-1.1"
+SLOT="6.5"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+COMMON_DEP="~dev-java/jdom-1.0"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+
+ unzip -qq source.zip -d src || die "failed to unpack"
+
+ cp "${FILESDIR}/build-${PV}.xml" build.xml || die
+
+ rm -v *.jar || die
+ rm -rf doc/api || die
+ rm samples/java/*.class || die
+ mkdir lib && cd lib
+ java-pkg_jar-from jdom-1.0
+}
+
+src_compile() {
+ java-pkg_filter-compiler jikes
+
+ eant -Dproject.name=${PN} jar $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ if use doc; then
+ java-pkg_dojavadoc dist/doc/api
+ dohtml -r doc/*
+ fi
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/*
+}
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..9dff433ad379
--- /dev/null
+++ b/dev-java/saxon/saxon-8.4b-r3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 eutils java-ant-2
+
+DESCRIPTION="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 -i "${FILESDIR}/build-${PV}.xml" build.xml || die
+
+ rm -v *.jar || die
+ rm samples/java/*.class || 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 examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/*
+}
diff --git a/dev-java/saxon/saxon-9.2.0.6.ebuild b/dev-java/saxon/saxon-9.2.0.6.ebuild
new file mode 100644
index 000000000000..f7bb106d8d08
--- /dev/null
+++ b/dev-java/saxon/saxon-9.2.0.6.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit versionator java-pkg-2 java-ant-2
+
+MY_PV="$(replace_all_version_separators -)"
+
+DESCRIPTION="A XSLT and XQuery Processor"
+HOMEPAGE="http://saxon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}he${MY_PV}source.zip"
+
+LICENSE="MPL-1.0"
+SLOT="9"
+KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd"
+
+IUSE=""
+
+# virtual/jdk slot for external javadoc
+JDK_VER="6"
+# dev-java/jdom slot for external javadoc
+JDOM_VER="1.0"
+# dev-java/dom4j slot
+DOM4J_VER="1"
+
+CDEPEND="dev-java/ant-core
+ dev-java/dom4j:${DOM4J_VER}
+ dev-java/jdom:${JDOM_VER}
+ dev-java/xom"
+RDEPEND=">=virtual/jre-1.${JDK_VER}
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.${JDK_VER}
+ app-arch/unzip
+ ${CDEPEND}"
+
+S="${WORKDIR}"
+
+# prepare eclass variables
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS="javac javadoc"
+
+src_unpack() {
+ unpack ${A}
+
+ ### fedora-inspired remove
+
+ # deadNET
+ rm -rv net/sf/saxon/dotnet
+
+ # Depends on XQJ (javax.xml.xquery)
+ rm -rv net/sf/saxon/xqj
+
+ # This requires a EE edition feature (com.saxonica.xsltextn)
+ rm -v net/sf/saxon/option/sql/SQLElementFactory.java
+}
+
+java_prepare() {
+ # <major>.<minor> version
+ local version="$(get_version_component_range 1-2)"
+
+ # generate build.xml with external javadoc links
+ sed -e "s:@JDK@:${JDK_VER}:" \
+ -e "s:@JDOM@:${JDOM_VER}:" \
+ < "${FILESDIR}/${version}-build.xml" \
+ > "${S}/build.xml" \
+ || die "build.xml generation failed!"
+
+ # prepare creates the dir for properties
+ eant prepare
+
+ # properties
+ cp -v \
+ "${FILESDIR}/${version}-edition.properties" \
+ "${S}/build/classes/edition.properties"
+}
+
+src_compile() {
+ local gcp="$(java-pkg_getjars dom4j-${DOM4J_VER},jdom-${JDOM_VER},xom)"
+ gcp="${gcp}:$(java-pkg_getjars --build-only ant-core)"
+ eant -Dgentoo.classpath="${gcp}" jar $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar build/lib/${PN}.jar
+
+ java-pkg_dolauncher ${PN}${SLOT}-transform --main net.sf.saxon.Transform
+ java-pkg_dolauncher ${PN}${SLOT}-query --main net.sf.saxon.Query
+
+ java-pkg_register-ant-task
+
+ use doc && java-pkg_dojavadoc build/api
+
+ use source && java-pkg_dosrc src
+}