diff options
-rw-r--r-- | dev-java/saxon/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/saxon/files/build-6.5.5.xml | 69 | ||||
-rw-r--r-- | dev-java/saxon/files/digest-saxon-6.5.5 | 3 | ||||
-rw-r--r-- | dev-java/saxon/saxon-6.5.5.ebuild | 59 |
4 files changed, 140 insertions, 1 deletions
diff --git a/dev-java/saxon/ChangeLog b/dev-java/saxon/ChangeLog index 52905bba2762..08403bd2767b 100644 --- a/dev-java/saxon/ChangeLog +++ b/dev-java/saxon/ChangeLog @@ -1,6 +1,14 @@ # 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.29 2007/04/22 12:29:38 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/ChangeLog,v 1.30 2007/04/22 13:51:26 caster Exp $ + +*saxon-6.5.5 (22 Apr 2007) + + 22 Apr 2007; Vlastimil Babka <caster@gentoo.org> +files/build-6.5.5.xml, + +saxon-6.5.5.ebuild: + Version bump, bug #175544 by Jiri Tyr <jiri.tyr@e-learning.vslib.cz>. + Dropped all deps except jdom and allowed to build with >1.4 JDK because it + doesn't seem to be problem anymore. 22 Apr 2007; Vlastimil Babka <caster@gentoo.org> -saxon-6.5.2.ebuild, -saxon-8.4b.ebuild, -saxon-8.4b-r1.ebuild: 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/digest-saxon-6.5.5 b/dev-java/saxon/files/digest-saxon-6.5.5 new file mode 100644 index 000000000000..ca2e5d798b85 --- /dev/null +++ b/dev-java/saxon/files/digest-saxon-6.5.5 @@ -0,0 +1,3 @@ +MD5 e913002af9c6bbb4c4361ff41baac3af saxon6-5-5.zip 3346162 +RMD160 6d9ab0b603c4bb6b27affcbc8cad56bd3c02b96a saxon6-5-5.zip 3346162 +SHA256 a76806dda554edc844601d0ec0fb3d2a10a2f397eabf3569dfb44b628363afc4 saxon6-5-5.zip 3346162 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..66efa1463aee --- /dev/null +++ b/dev-java/saxon/saxon-6.5.5.ebuild @@ -0,0 +1,59 @@ +# 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-6.5.5.ebuild,v 1.1 2007/04/22 13:51:26 caster Exp $ + +JAVA_PKG_IUSE="doc 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" + + # TODO update patch for 6.5.2 + #epatch ${FILESDIR}/${P}-jikes.patch + + cp ${FILESDIR}/build-${PV}.xml build.xml + + rm -v *.jar + rm -rf doc/api + mkdir lib && cd lib + java-pkg_jarfrom 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 source && java-pkg_dosrc src/* +} |