diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-11-14 16:13:18 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-11-14 16:13:18 +0000 |
commit | cb969eb7d9ce7a3b4ad91180e34adff04619db22 (patch) | |
tree | 049badf0dc523a99ba6a22b2162b285050d0c25f /app-text | |
parent | don't = depend on docbook, and use evilness to find where the stylesheets are... (diff) | |
download | gentoo-2-cb969eb7d9ce7a3b4ad91180e34adff04619db22.tar.gz gentoo-2-cb969eb7d9ce7a3b4ad91180e34adff04619db22.tar.bz2 gentoo-2-cb969eb7d9ce7a3b4ad91180e34adff04619db22.zip |
build from source, submitted by Jan Brinkmann <lucky@the-luckyduck.de>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/trang/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/trang/Manifest | 13 | ||||
-rw-r--r-- | app-text/trang/files/build.xml | 31 | ||||
-rw-r--r-- | app-text/trang/files/digest-trang-20030619-r1 | 1 | ||||
-rw-r--r-- | app-text/trang/trang-20030619-r1.ebuild | 48 |
5 files changed, 90 insertions, 11 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..78c1e20504aa 100644 --- a/app-text/trang/Manifest +++ b/app-text/trang/Manifest @@ -1,14 +1,7 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 9943fec0fec168f1a93a9d5c6814c3f7 trang-20030619.ebuild 757 MD5 49a19df1569591f6a29cf56dabf3f926 ChangeLog 797 MD5 79a5dd1b805e5bca495aec6d6a73826b metadata.xml 176 +MD5 5d522e75c5e8b544b0d5b530d8615dbb trang-20030619-r1.ebuild 1003 MD5 15d93b4d4f695718d4ab66cf366b1e42 files/digest-trang-20030619 63 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.6 (GNU/Linux) - -iD8DBQFBiMac/rLF9B432nYRAtJnAKCqQlZZ/cDsZUedNU1OtsvBtWg6vgCgsPL1 -yvxZ1gzcUIBIsX+one1E/9k= -=gARo ------END PGP SIGNATURE----- +MD5 15d93b4d4f695718d4ab66cf366b1e42 files/digest-trang-20030619-r1 63 +MD5 4067ed3d01d556519f8f66f469e56374 files/build.xml 669 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 +} |