summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2010-03-04 10:50:31 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2010-03-04 10:50:31 +0000
commit57c6f2255f4262d744cbeb1ab625c5dbb3702afc (patch)
tree443c5332480c89371f637d95c3387cd99d0e748f /app-text/trang
parentVersion bump www-servers/nginx to 0.8.34. (diff)
downloadgentoo-2-57c6f2255f4262d744cbeb1ab625c5dbb3702afc.tar.gz
gentoo-2-57c6f2255f4262d744cbeb1ab625c5dbb3702afc.tar.bz2
gentoo-2-57c6f2255f4262d744cbeb1ab625c5dbb3702afc.zip
Version bump. Fixes bug #258643. Thanks to Ralph Sennhauser <gentoo.sera@bluewin.ch>.
(Portage version: 2.2_rc62/cvs/Linux i686)
Diffstat (limited to 'app-text/trang')
-rw-r--r--app-text/trang/ChangeLog11
-rw-r--r--app-text/trang/files/build.xml68
-rw-r--r--app-text/trang/trang-20091111.ebuild52
3 files changed, 129 insertions, 2 deletions
diff --git a/app-text/trang/ChangeLog b/app-text/trang/ChangeLog
index b8144abf96b0..a937e0493e2f 100644
--- a/app-text/trang/ChangeLog
+++ b/app-text/trang/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/trang
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.21 2007/07/02 08:25:04 ulm Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.22 2010/03/04 10:50:30 betelgeuse Exp $
+
+*trang-20091111 (04 Mar 2010)
+
+ 04 Mar 2010; Petteri Räty <betelgeuse@gentoo.org> +trang-20091111.ebuild,
+ +files/build.xml:
+ Version bump. Fixes bug #258643. Thanks to Ralph Sennhauser
+ <gentoo.sera@bluewin.ch>.
02 Jul 2007; Ulrich Mueller <ulm@gentoo.org> metadata.xml:
Remove emacs herd from metadata.
diff --git a/app-text/trang/files/build.xml b/app-text/trang/files/build.xml
new file mode 100644
index 000000000000..861a511c8bda
--- /dev/null
+++ b/app-text/trang/files/build.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Author: Ralph Sennhauser -->
+<project name="trang" default="jar" basedir=".">
+
+ <!-- properties -->
+
+ <property name="src.dir" value="src"/>
+ <property name="build.dir" value="build"/>
+ <property name="docs.dir" value="javadoc"/>
+ <property name="dist.dir" value="dist"/>
+
+ <property name="app.name" value="trang"/>
+ <property name="package.names" value="com.* org.*"/>
+ <property name="jar.name" value="${app.name}.jar"/>
+
+ <!-- targets -->
+
+ <target name="prepare">
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${docs.dir}"/>
+ <mkdir dir="${dist.dir}"/>
+ <unzip src="${src.dir}.zip" dest="${src.dir}"/>
+ <!-- need the resource files shipped inside the jar, beed! -->
+ <unzip src="trang.jar" dest="${build.dir}">
+ <patternset>
+ <include name="**/*properties"/>
+ </patternset>
+ </unzip>
+ </target>
+
+ <target name="compile" description="Compiles source" depends="prepare">
+ <javac srcdir="${src.dir}" destdir="${build.dir}" encoding="UTF-8" classpath="${classpath}">
+<!-- <compilerarg value="-Xlint:deprecation"/> -->
+<!-- <compilerarg value="-Xlint"/> -->
+ </javac>
+ </target>
+
+ <target name="javadoc" depends="prepare" description="Create javadocs">
+ <javadoc packagenames="net.*"
+ classpath="${classpath}"
+ sourcepath="${src.dir}"
+ defaultexcludes="yes"
+ destdir="./${docs.dir}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="${app.name} API">
+ <fileset dir="${src.dir}"/>
+ </javadoc>
+ </target>
+
+ <target name="jar" description="Create the jar" depends="compile">
+ <jar destfile="${dist.dir}/${jar.name}" basedir="${build.dir}">
+ <manifest>
+ <attribute name="Main-Class" value="com.thaiopensource.relaxng.translate.Driver"/>
+ <attribute name="Class-Path" value="."/>
+ </manifest>
+ <service type="com.thaiopensource.datatype.xsd.regex.RegexEngine">
+ <provider classname="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
+ <provider classname="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
+ </service>
+ <service type="org.relaxng.datatype.DatatypeLibraryFactory">
+ <provider classname="com.thaiopensource.datatype.xsd.DatatypeLibraryFactoryImpl"/>
+ </service>
+ </jar>
+ </target>
+
+</project>
diff --git a/app-text/trang/trang-20091111.ebuild b/app-text/trang/trang-20091111.ebuild
new file mode 100644
index 000000000000..f384fd35f500
--- /dev/null
+++ b/app-text/trang/trang-20091111.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/trang/trang-20091111.ebuild,v 1.1 2010/03/04 10:50:30 betelgeuse Exp $
+
+EAPI="2"
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Multi-format schema converter based on RELAX NG"
+HOMEPAGE="http://thaiopensource.com/relaxng/trang.html"
+SRC_URI="http://jing-trang.googlecode.com/files/${P}.zip"
+LICENSE="BSD"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEP="
+ dev-java/xerces:2
+ dev-java/xml-commons-resolver:0"
+
+RDEPEND="
+ >=virtual/jre-1.5
+ ${COMMON_DEP}"
+
+DEPEND="
+ app-arch/unzip
+ >=virtual/jdk-1.5
+ ${COMMON_DEP}"
+
+java_prepare() {
+ # need resource files in jar archive so can't remove, see build.xml
+ # rm -v *.jar || die "Failed to remove jar archives"
+
+ cp "${FILESDIR}/build.xml" "${S}/build.xml"
+}
+
+src_compile() {
+ java-pkg-2_src_compile \
+ -Dclasspath="$(java-pkg_getjars xerces-2,xml-commons-resolver)"
+}
+
+src_install() {
+ java-pkg_dojar "dist/${PN}.jar"
+ java-pkg_dolauncher trang \
+ --main com.thaiopensource.relaxng.translate.Driver
+ dohtml *.html || die
+
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc src/{org,com}
+}