summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-11-14 16:13:18 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-11-14 16:13:18 +0000
commit92c8d88f50097940989ca2ec42d494dcb176c4c5 (patch)
tree33b9cfc80f46fcc3bcca421fac8ccec1cef3ee45 /app-text/trang
parentdon't = depend on docbook, and use evilness to find where the stylesheets are... (diff)
downloadhistorical-92c8d88f50097940989ca2ec42d494dcb176c4c5.tar.gz
historical-92c8d88f50097940989ca2ec42d494dcb176c4c5.tar.bz2
historical-92c8d88f50097940989ca2ec42d494dcb176c4c5.zip
build from source, submitted by Jan Brinkmann <lucky@the-luckyduck.de>
Diffstat (limited to 'app-text/trang')
-rw-r--r--app-text/trang/ChangeLog8
-rw-r--r--app-text/trang/Manifest11
-rw-r--r--app-text/trang/files/build.xml31
-rw-r--r--app-text/trang/files/digest-trang-20030619-r11
-rw-r--r--app-text/trang/trang-20030619-r1.ebuild48
5 files changed, 94 insertions, 5 deletions
diff --git a/app-text/trang/ChangeLog b/app-text/trang/ChangeLog
index 52a50f2e3822..063891b6545d 100644
--- a/app-text/trang/ChangeLog
+++ b/app-text/trang/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/trang
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.6 2004/11/03 11:52:54 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.7 2004/11/14 16:13:18 axxo Exp $
+
+*trang-20030619-r1 (14 Nov 2004)
+
+ 14 Nov 2004; Thomas Matthijs <axxo@gentoo.org> +files/build.xml,
+ +trang-20030619-r1.ebuild:
+ build from source, submitted by Jan Brinkmann <lucky@the-luckyduck.de>
03 Nov 2004; Thomas Matthijs <axxo@gentoo.org> trang-20030619.ebuild:
depend on app-arch/unzip
diff --git a/app-text/trang/Manifest b/app-text/trang/Manifest
index 0e037ef4ff8a..5a0825e24802 100644
--- a/app-text/trang/Manifest
+++ b/app-text/trang/Manifest
@@ -2,13 +2,16 @@
Hash: SHA1
MD5 9943fec0fec168f1a93a9d5c6814c3f7 trang-20030619.ebuild 757
-MD5 49a19df1569591f6a29cf56dabf3f926 ChangeLog 797
+MD5 9d35039743d84b2427c9133a00247352 ChangeLog 1001
MD5 79a5dd1b805e5bca495aec6d6a73826b metadata.xml 176
+MD5 55eaaab66ad44c637e9dbcc93b88bfd3 trang-20030619-r1.ebuild 1103
MD5 15d93b4d4f695718d4ab66cf366b1e42 files/digest-trang-20030619 63
+MD5 15d93b4d4f695718d4ab66cf366b1e42 files/digest-trang-20030619-r1 63
+MD5 4067ed3d01d556519f8f66f469e56374 files/build.xml 669
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
-iD8DBQFBiMac/rLF9B432nYRAtJnAKCqQlZZ/cDsZUedNU1OtsvBtWg6vgCgsPL1
-yvxZ1gzcUIBIsX+one1E/9k=
-=gARo
+iD8DBQFBl4Q8/rLF9B432nYRAnU6AKC8LyrB/Ve1oqzcMuN9bLkbxQGnwACgwso7
+jf+h5Uc22XHcZHtsZkp3yp0=
+=Yu43
-----END PGP SIGNATURE-----
diff --git a/app-text/trang/files/build.xml b/app-text/trang/files/build.xml
new file mode 100644
index 000000000000..d1e565c65a76
--- /dev/null
+++ b/app-text/trang/files/build.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<project name="trang" default="jar">
+ <!-- compiles the sources -->
+ <target name="compile">
+ <mkdir dir="../build" />
+
+ <javac srcdir="."
+ destdir="../build"
+ classpath="lib/xerces.jar">
+ </javac>
+
+ <!-- we need the *.properties at the correct
+ position in the jar archive! -->
+ <copy todir="../build">
+ <fileset dir=".">
+ <include name="**/*.properties" />
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- create the jar archive -->
+ <target name="jar" depends="compile">
+ <mkdir dir="../jar" />
+
+ <jar jarfile="../jar/trang.jar"
+ basedir="../build"
+ manifest="META-INF/MANIFEST.MF">
+ </jar>
+ </target>
+</project>
diff --git a/app-text/trang/files/digest-trang-20030619-r1 b/app-text/trang/files/digest-trang-20030619-r1
new file mode 100644
index 000000000000..efbefdef57f6
--- /dev/null
+++ b/app-text/trang/files/digest-trang-20030619-r1
@@ -0,0 +1 @@
+MD5 9611ea59fda0f62fecc4a5017a72984e trang-20030619.zip 941382
diff --git a/app-text/trang/trang-20030619-r1.ebuild b/app-text/trang/trang-20030619-r1.ebuild
new file mode 100644
index 000000000000..493e517846f3
--- /dev/null
+++ b/app-text/trang/trang-20030619-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/trang/trang-20030619-r1.ebuild,v 1.1 2004/11/14 16:13:18 axxo Exp $
+
+inherit java-pkg
+
+DESCRIPTION="Trang: Multi-format schema converter based on RELAX NG"
+HOMEPAGE="http://thaiopensource.com/relaxng/trang.html"
+SRC_URI="http://www.thaiopensource.com/download/trang-${PV}.zip"
+LICENSE="BSD Apache-1.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="jikes"
+DEPEND="dev-java/saxon-bin
+ =dev-java/xerces-1.3.1
+ >=virtual/jdk-1.4"
+RDEPEND=">=virtual/jre-1.4"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ mkdir -p src/lib
+ unzip -d src src.zip
+ cp ${FILESDIR}/build.xml src
+
+ cd src/lib
+ java-pkg_jar-from xerces-1.3 xerces.jar
+}
+
+src_compile() {
+ cd ${S}/src
+ antflags="jar"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "failed to build"
+}
+
+src_install() {
+ cd ${S}
+ java-pkg_dojar jar/trang.jar
+ cat >trang <<'EOF'
+#!/bin/sh
+exec `java-config --java` -jar `java-config -p trang` "$@"
+EOF
+ dobin trang
+ dohtml *.html
+ dodoc copying.txt
+}