diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-11-14 14:56:27 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-11-14 14:56:27 +0000 |
commit | 6ba7f19f3b43e849def862773e773a1ea790c18e (patch) | |
tree | e772377587c13565752b36d302552ebfe9bb7ef9 /app-text/jing | |
parent | initial import, ebuild submitted by Jan Brinkmann <lucky@the-luckyduck.de> (diff) | |
download | historical-6ba7f19f3b43e849def862773e773a1ea790c18e.tar.gz historical-6ba7f19f3b43e849def862773e773a1ea790c18e.tar.bz2 historical-6ba7f19f3b43e849def862773e773a1ea790c18e.zip |
build from source 63240, submitted by Jan Brinkmann <lucky@the-luckyduck.de>
Diffstat (limited to 'app-text/jing')
-rw-r--r-- | app-text/jing/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/jing/Manifest | 13 | ||||
-rw-r--r-- | app-text/jing/files/build-patch.diff | 23 | ||||
-rw-r--r-- | app-text/jing/files/build.xml | 32 | ||||
-rw-r--r-- | app-text/jing/files/digest-jing-20030619-r1 | 1 | ||||
-rw-r--r-- | app-text/jing/files/manifest.mf | 3 | ||||
-rw-r--r-- | app-text/jing/jing-20030619-r1.ebuild | 57 |
7 files changed, 132 insertions, 5 deletions
diff --git a/app-text/jing/ChangeLog b/app-text/jing/ChangeLog index fc31f11c4236..41d065eebb03 100644 --- a/app-text/jing/ChangeLog +++ b/app-text/jing/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/jing # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/jing/ChangeLog,v 1.6 2004/11/03 11:52:50 axxo Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/jing/ChangeLog,v 1.7 2004/11/14 14:56:27 axxo Exp $ + +*jing-20030619-r1 (14 Nov 2004) + + 14 Nov 2004; Thomas Matthijs <axxo@gentoo.org> +files/build-patch.diff, + +files/build.xml, +files/manifest.mf, +jing-20030619-r1.ebuild: + build from source 63240, submitted by Jan Brinkmann <lucky@the-luckyduck.de> 03 Nov 2004; Thomas Matthijs <axxo@gentoo.org> jing-20030619.ebuild: depend on app-arch/unzip diff --git a/app-text/jing/Manifest b/app-text/jing/Manifest index b41004a20510..e30a2bf48367 100644 --- a/app-text/jing/Manifest +++ b/app-text/jing/Manifest @@ -1,14 +1,19 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 118e07e53b7e3f96a5fd5286b6a599de ChangeLog 865 +MD5 528b56dcfc65237e1e254619cb3285f5 ChangeLog 1118 +MD5 3fccc2945172a1ad00446b4099907926 jing-20030619-r1.ebuild 1366 MD5 79a5dd1b805e5bca495aec6d6a73826b metadata.xml 176 MD5 af6f37a83937940ab78e7a429af53cbe jing-20030619.ebuild 778 +MD5 a2004d054506b2ec4e8add35ec84dc44 files/digest-jing-20030619-r1 63 MD5 a2004d054506b2ec4e8add35ec84dc44 files/digest-jing-20030619 63 +MD5 9ca0559020eae581281496f04c53dd7b files/build.xml 710 +MD5 60267d864fc6a05822d8b732ff12e8dd files/manifest.mf 136 +MD5 4e01494f4274dfe8fbed0b4982405537 files/build-patch.diff 1484 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) -iD8DBQFBiMaY/rLF9B432nYRAgBYAKChcFDwQ8j01XxjsCxcECAqz7gtQgCgzUZr -zF7GJB2R3phPT0oMNHuozbw= -=37tn +iD8DBQFBl3I0/rLF9B432nYRAv5nAJwP+/POfxffO+z8akVjbc7XOqOZYgCePEbd +q6WPwW9OnSb6s8K6KCwzLPo= +=xdAo -----END PGP SIGNATURE----- diff --git a/app-text/jing/files/build-patch.diff b/app-text/jing/files/build-patch.diff new file mode 100644 index 000000000000..f60d9af34110 --- /dev/null +++ b/app-text/jing/files/build-patch.diff @@ -0,0 +1,23 @@ +diff -uprN src.orig/com/thaiopensource/validate/schematron/SaxonSchemaReaderFactory.java src/com/thaiopensource/validate/schematron/SaxonSchemaReaderFactory.java +--- src.orig/com/thaiopensource/validate/schematron/SaxonSchemaReaderFactory.java 2004-11-07 02:12:02.231733296 +0100 ++++ src/com/thaiopensource/validate/schematron/SaxonSchemaReaderFactory.java 2004-11-07 02:11:40.888977888 +0100 +@@ -1,6 +1,6 @@ + package com.thaiopensource.validate.schematron; + +-import com.icl.saxon.TransformerFactoryImpl; ++import net.sf.saxon.TransformerFactoryImpl; + + import javax.xml.transform.TransformerFactory; + +diff -uprN src.orig/com/thaiopensource/validate/schematron/SchemaReaderImpl.java src/com/thaiopensource/validate/schematron/SchemaReaderImpl.java +--- src.orig/com/thaiopensource/validate/schematron/SchemaReaderImpl.java 2004-11-07 02:12:02.230733448 +0100 ++++ src/com/thaiopensource/validate/schematron/SchemaReaderImpl.java 2004-11-07 02:11:40.886978192 +0100 +@@ -85,7 +85,7 @@ class SchemaReaderImpl implements Schema + private void initTransformerFactory(TransformerFactory factory) { + String name = factory.getClass().getName(); + try { +- if (name.equals("com.icl.saxon.TransformerFactoryImpl")) ++ if (name.equals("net.sf.saxon.TransformerFactoryImpl")) + factory.setAttribute("http://icl.com/saxon/feature/linenumbering", + Boolean.TRUE); + else if (name.equals("org.apache.xalan.processor.TransformerFactoryImpl")) { diff --git a/app-text/jing/files/build.xml b/app-text/jing/files/build.xml new file mode 100644 index 000000000000..1f143474a2ad --- /dev/null +++ b/app-text/jing/files/build.xml @@ -0,0 +1,32 @@ +<?xml version="1.0"?> + +<project name="jing" default="jar"> + <!-- compiles the sources --> + <target name="compile"> + <mkdir dir="build" /> + + <javac srcdir="src" + destdir="build" + source="1.4"> + <classpath> + <pathelement path="bin/isorelax.jar:bin/saxon.jar:bin/xerces.jar" /> + </classpath> + </javac> + + <!-- we need the *.properties at the correct + position in the jar archive! --> + <copy todir="build"> + <fileset dir="src"> + <include name="**/*.properties" /> + </fileset> + </copy> + </target> + + <!-- create the jar archive --> + <target name="jar" depends="compile"> + <jar jarfile="bin/jing.jar" + basedir="build" + manifest="manifest.mf"> + </jar> + </target> +</project> diff --git a/app-text/jing/files/digest-jing-20030619-r1 b/app-text/jing/files/digest-jing-20030619-r1 new file mode 100644 index 000000000000..0527c6689212 --- /dev/null +++ b/app-text/jing/files/digest-jing-20030619-r1 @@ -0,0 +1 @@ +MD5 f9b0775d8740f16ab3df82ad3707a093 jing-20030619.zip 2523368 diff --git a/app-text/jing/files/manifest.mf b/app-text/jing/files/manifest.mf new file mode 100644 index 000000000000..bb5c9daf45a1 --- /dev/null +++ b/app-text/jing/files/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: com/thaiopensource/relaxng/util/Driver +Class-Path: xercesImpl.jar xml-apis.jar saxon.jar isorelax.jar diff --git a/app-text/jing/jing-20030619-r1.ebuild b/app-text/jing/jing-20030619-r1.ebuild new file mode 100644 index 000000000000..8aebbb1a9f60 --- /dev/null +++ b/app-text/jing/jing-20030619-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/jing/jing-20030619-r1.ebuild,v 1.1 2004/11/14 14:56:27 axxo Exp $ + +inherit java-pkg eutils + +DESCRIPTION="Jing: A RELAX NG validator in Java" +HOMEPAGE="http://thaiopensource.com/relaxng/jing.html" +SRC_URI="http://www.thaiopensource.com/download/jing-${PV}.zip" +LICENSE="BSD Apache-1.1" +SLOT="0" +KEYWORDS="~x86" +IUSE="jikes doc" +DEPEND=">=virtual/jdk-1.3 + dev-java/saxon-bin + =dev-java/xerces-1.3.1 + dev-java/iso-relax" +RDEPEND=">=virtual/jre-1.3 + dev-java/saxon-bin + =dev-java/xerces-1.3.1 + dev-java/iso-relax" + +src_unpack() { + unpack ${A} + + cd ${S} + mkdir src/ + unzip -d src/ src.zip + cd src/ + epatch ${FILESDIR}/build-patch.diff + + cd ../bin/ + rm -f *.jar + java-pkg_jar-from iso-relax + java-pkg_jar-from xerces-1.3 xerces.jar + java-pkg_jar-from saxon-bin saxon8.jar saxon.jar + + cd .. + cp ${FILESDIR}/build.xml . + cp ${FILESDIR}/manifest.mf . +} + +src_compile() { + antflags="jar" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + ant ${antflags} +} + +src_install() { + java-pkg_dojar bin/jing.jar + cat >jing <<'EOF' +#!/bin/sh +exec `java-config --java` -classpath `java-config -p xerces-1.3,saxon-bin,iso-relax` -jar `java-config -p jing` "$@" +EOF + dobin jing + use doc && java-pkg_dohtml -r doc/* readme.html +} |