summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2006-11-25 18:52:55 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2006-11-25 18:52:55 +0000
commit1283f05cd75442a8e3f0411a181b5a2d3cbc75ec (patch)
tree375d20026ce4d31ec5400427125766fdc49dd5cb /app-text
parentAlpha + ~ia64 keywords. (diff)
downloadgentoo-2-1283f05cd75442a8e3f0411a181b5a2d3cbc75ec.tar.gz
gentoo-2-1283f05cd75442a8e3f0411a181b5a2d3cbc75ec.tar.bz2
gentoo-2-1283f05cd75442a8e3f0411a181b5a2d3cbc75ec.zip
Added doc and source use flags and fixed compile to properly use both 1.3 and 2 slots of xerces.
(Portage version: 2.1.2_rc2-r1)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/trang/ChangeLog9
-rw-r--r--app-text/trang/files/build-r1.xml86
-rw-r--r--app-text/trang/files/digest-trang-20030619-r33
-rw-r--r--app-text/trang/trang-20030619-r3.ebuild59
4 files changed, 156 insertions, 1 deletions
diff --git a/app-text/trang/ChangeLog b/app-text/trang/ChangeLog
index b5e9264f0b35..667a57613707 100644
--- a/app-text/trang/ChangeLog
+++ b/app-text/trang/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/trang
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.13 2006/11/24 18:56:29 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.14 2006/11/25 18:52:55 betelgeuse Exp $
+
+*trang-20030619-r3 (25 Nov 2006)
+
+ 25 Nov 2006; Petteri Räty <betelgeuse@gentoo.org> +files/build-r1.xml,
+ +trang-20030619-r3.ebuild:
+ Added doc and source use flags and fixed compile to properly use both 1.3
+ and 2 slots of xerces.
*trang-20030619-r2 (24 Nov 2006)
diff --git a/app-text/trang/files/build-r1.xml b/app-text/trang/files/build-r1.xml
new file mode 100644
index 000000000000..dcb2f072bdfd
--- /dev/null
+++ b/app-text/trang/files/build-r1.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!---
+ @author: Saleem Abdulrasool <compnerd@gentoo.org>
+ @date: 5/9/2005
+ @modified: 10/23/2005
+ @revision: 1.0_alpha
+
+ @notes:
+ Call using the following:
+ ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name}
+
+ It will create a jar called ${project.name} and will try to generate javadoc
+ for the comma delimited list ${package.name} (fex org.gentoo.*,org.compnerd.*)
+
+ Define classpath.broken (-Dclasspath.broken=1) if you need a top level Manifest.
+
+ All paths can be overridden by defining the values in build.properties in the
+ same directory as this build file.
+-->
+
+<project name="Gentoo_Builder" default="jar" basedir=".">
+ <property name="src" value="src"/>
+ <property name="build" value="build"/>
+ <property name="dist" value="dist"/>
+ <property name="lib" value="lib"/>
+
+ <property name="pkg" value="${package.name}"/>
+ <property name="jar" value="${project.name}.jar"/>
+
+ <!-- Override any defined properties -->
+ <property file="build.properties"/>
+
+ <available file="${lib}" type="dir" property="libdir.exists"/>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${build}"/>
+ <mkdir dir="${dist}"/>
+ <mkdir dir="${dist}/doc"/>
+
+ <!-- Check if we need to modify the classpath -->
+ <antcall target="if-libdir"/>
+ </target>
+
+ <!-- If the directory exists, append to classpath -->
+ <target name="if-libdir" if="libdir.exists">
+ <property name="classpath" value="${classpath}:${lib}"/>
+ <classpath>
+ <pathelement path="${classpath}"/>
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </classpath>
+ </target>
+
+ <target name="compile" depends="init">
+ <javac srcdir="${src}" destdir="${build}" classpath="${classpath}"/>
+ </target>
+
+ <target name="manifest" depends="init">
+ <manifest file="${build}/MANIFEST.MF" mode="update">
+ <attribute name="Built-By" value="Gentoo Portage"/>
+ </manifest>
+ </target>
+
+ <target name="jar" depends="compile,manifest">
+ <jar destfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF">
+ <fileset dir="${build}">
+ <exclude name="MANIFEST.MF" unless="classloader.broken"/>
+ </fileset>
+ <fileset dir="${src}" includes="**/*.properties" />
+ <metainf dir="${src}/META-INF" />
+ </jar>
+ </target>
+
+ <target name="javadoc" depends="compile">
+ <javadoc sourcepath="${src}" destdir="${dist}/doc" packagenames="${pkg}">
+ <classpath path="${classpath}"/>
+ </javadoc>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
diff --git a/app-text/trang/files/digest-trang-20030619-r3 b/app-text/trang/files/digest-trang-20030619-r3
new file mode 100644
index 000000000000..e7b29322316c
--- /dev/null
+++ b/app-text/trang/files/digest-trang-20030619-r3
@@ -0,0 +1,3 @@
+MD5 9611ea59fda0f62fecc4a5017a72984e trang-20030619.zip 941382
+RMD160 f7dea9e4aae3e753fad2faae1304d865e30a5f6e trang-20030619.zip 941382
+SHA256 049ede1c5524fdc2958b47fe49bcf11620e36c4c6ede08f9df530eae12243343 trang-20030619.zip 941382
diff --git a/app-text/trang/trang-20030619-r3.ebuild b/app-text/trang/trang-20030619-r3.ebuild
new file mode 100644
index 000000000000..c60b218b5346
--- /dev/null
+++ b/app-text/trang/trang-20030619-r3.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/app-text/trang/trang-20030619-r3.ebuild,v 1.1 2006/11/25 18:52:55 betelgeuse Exp $
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Trang: Multi-format schema converter based on RELAX NG"
+HOMEPAGE="http://thaiopensource.com/relaxng/trang.html"
+SRC_URI="http://www.thaiopensource.com/download/${P}.zip"
+LICENSE="BSD Apache-1.1"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc source"
+
+COMMON_DEP="
+ =dev-java/xerces-1.3*
+ =dev-java/xerces-2*"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+# javadoc does not build correctly with 1.6
+# Can't use doc? ( ) !doc? ( ) either
+# http://bugs.gentoo.org/show_bug.cgi?id=156228
+# so forcing 1.4 || 1.5
+
+DEPEND="
+ || ( =virtual/jdk-1.4* =virtual/jdk-1.5* )
+ ${COMMON_DEP}
+ dev-java/ant-core
+ app-arch/unzip"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ #rm -v *.jar
+ cp ${FILESDIR}/build-r1.xml "${S}/build.xml"
+
+ mkdir -p "${S}/src/"
+ cd "${S}/src"
+ unpack ./../src.zip
+}
+
+src_compile() {
+ eant jar $(use_doc) -Dproject.name=${PN} -Dpackage.name=${PN} \
+ -Dclasspath="$(java-pkg_getjars xerces-2,xerces-1.3)" \
+ -Dpkg="*"
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+ java-pkg_dolauncher trang \
+ --main com.thaiopensource.relaxng.translate.Driver
+ java-pkg_dohtml *.html
+
+ use doc && java-pkg_dojavadoc dist/doc
+ use source && java-pkg_dosrc src/{org,com}
+}