diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-01-08 05:17:13 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-01-08 05:17:13 +0000 |
commit | 5856e92a7ccccb78f3d87970be9f5cbf7bfe48da (patch) | |
tree | 245fd1fdb9dfbf6b5a7a4fc153cc46b02e1b83fe /dev-java | |
parent | Add upstream patch for WMF exploit #118101 and make sure all ebuilds support ... (diff) | |
download | gentoo-2-5856e92a7ccccb78f3d87970be9f5cbf7bfe48da.tar.gz gentoo-2-5856e92a7ccccb78f3d87970be9f5cbf7bfe48da.tar.bz2 gentoo-2-5856e92a7ccccb78f3d87970be9f5cbf7bfe48da.zip |
Need an older version to build aspectj without bundled jars (bug #63293).
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/saxon/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/saxon/Manifest | 19 | ||||
-rw-r--r-- | dev-java/saxon/files/build-6.5.2.xml | 72 | ||||
-rw-r--r-- | dev-java/saxon/files/digest-saxon-6.5.2 | 1 | ||||
-rw-r--r-- | dev-java/saxon/saxon-6.5.2.ebuild | 59 |
5 files changed, 146 insertions, 15 deletions
diff --git a/dev-java/saxon/ChangeLog b/dev-java/saxon/ChangeLog index e7cf99e40c16..a46f08523521 100644 --- a/dev-java/saxon/ChangeLog +++ b/dev-java/saxon/ChangeLog @@ -1,6 +1,12 @@ # 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.11 2005/07/12 18:05:47 axxo Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/ChangeLog,v 1.12 2006/01/08 05:17:13 nichoj Exp $ + +*saxon-6.5.2 (08 Jan 2006) + + 08 Jan 2006; Joshua Nichols <nichoj@gentoo.org> +files/build-6.5.2.xml, + +saxon-6.5.2.ebuild: + Need an older version to build aspectj without bundled jars (bug #63293). 12 Jul 2005; Thomas Matthijs <axxo@gentoo.org> saxon-8.4b.ebuild: Keyword x86 diff --git a/dev-java/saxon/Manifest b/dev-java/saxon/Manifest index 6f1d96fbcd64..7b345b0e8427 100644 --- a/dev-java/saxon/Manifest +++ b/dev-java/saxon/Manifest @@ -1,16 +1,9 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 04bc225bac83acfd82d6b7328ccf75d5 saxon-8.4b.ebuild 1393 MD5 37acddb99694c47b97d376e890d7c8b1 ChangeLog 619 -MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 -MD5 7bc2c04efaafba15df5fa9c221a00a29 files/saxon-8.4b-jikes.patch 795 +MD5 d202789d6c409cdf9b7ff6598a412e6c files/build-6.5.2.xml 2394 MD5 e858aa507902d409b110be423e735339 files/build-8.4b.xml 4120 +MD5 21bfbc79426b598f49e48b0c63dc7e01 files/digest-saxon-6.5.2 60 MD5 10dc7b59a9361c2d721acb87e6882516 files/digest-saxon-8.4b 59 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFC1AaV/rLF9B432nYRApOSAJ9UlxGxeKOUvVVmFDJkYlTYNrZTOQCgnyuO -K3MH0+yNLtiOQuywvyyKz4g= -=RJ01 ------END PGP SIGNATURE----- +MD5 7bc2c04efaafba15df5fa9c221a00a29 files/saxon-8.4b-jikes.patch 795 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +MD5 02a90b79a4bd13e15a6838f51215cdf2 saxon-6.5.2.ebuild 1256 +MD5 04bc225bac83acfd82d6b7328ccf75d5 saxon-8.4b.ebuild 1393 diff --git a/dev-java/saxon/files/build-6.5.2.xml b/dev-java/saxon/files/build-6.5.2.xml new file mode 100644 index 000000000000..77e849d44e1f --- /dev/null +++ b/dev-java/saxon/files/build-6.5.2.xml @@ -0,0 +1,72 @@ +<?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="${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-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.TransformFactory"/> + <include name="META-INF/services/javax.xml.parsers.SAXParserFactory"/> + </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.2 b/dev-java/saxon/files/digest-saxon-6.5.2 new file mode 100644 index 000000000000..841bd9f62ee5 --- /dev/null +++ b/dev-java/saxon/files/digest-saxon-6.5.2 @@ -0,0 +1 @@ +MD5 6a822530943cc9ddff45ed4d77413d89 saxon6_5_2.zip 3088550 diff --git a/dev-java/saxon/saxon-6.5.2.ebuild b/dev-java/saxon/saxon-6.5.2.ebuild new file mode 100644 index 000000000000..6b00f732ddd9 --- /dev/null +++ b/dev-java/saxon/saxon-6.5.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/saxon-6.5.2.ebuild,v 1.3 2006/01/08 05:17:13 nichoj Exp $ + +inherit java-pkg 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="~ppc ~x86" + +IUSE="doc source" + +RDEPEND=">=virtual/jre-1.4 + >=dev-java/gnu-jaxp-1.3 + dev-java/xom + ~dev-java/jdom-1.0 + dev-java/fop" + +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + dev-java/ant-core + source? ( app-arch/zip ) + ${RDEPEND}" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + + unzip -qq source.zip -d src || die "failed to unpack" + + 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 + java-pkg_jarfrom fop +} + +src_compile() { + local antflags="jar -Dproject.name=${PN}" + 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/* +} |