summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-04-05 21:01:00 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-04-05 21:01:00 +0000
commit7f916eb631cd0a547f2f371dc3066bac313b580b (patch)
treea90bde20014a4809753e4fc89545d8508c1bcd68 /app-text
parentJDK 1.6 should be a bare minimum here. (diff)
downloadgentoo-2-7f916eb631cd0a547f2f371dc3066bac313b580b.tar.gz
gentoo-2-7f916eb631cd0a547f2f371dc3066bac313b580b.tar.bz2
gentoo-2-7f916eb631cd0a547f2f371dc3066bac313b580b.zip
EAPI 5 bump wrt bug 543906.
Signed-off-by: monsieurp@gentoo.org (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/trang/ChangeLog10
-rw-r--r--app-text/trang/trang-20091111-r1.ebuild61
2 files changed, 68 insertions, 3 deletions
diff --git a/app-text/trang/ChangeLog b/app-text/trang/ChangeLog
index 75c3c3cf1770..f34c70187cdc 100644
--- a/app-text/trang/ChangeLog
+++ b/app-text/trang/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/trang
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.27 2010/05/24 13:20:17 caster Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.28 2015/04/05 21:01:00 monsieurp Exp $
+
+*trang-20091111-r1 (05 Apr 2015)
+
+ 05 Apr 2015; Patrice Clement <monsieurp@gentoo.org> +trang-20091111-r1.ebuild:
+ EAPI 5 bump wrt bug 543906.
24 May 2010; Vlastimil Babka <caster@gentoo.org> -files/build-r1.xml,
-trang-20030619-r3.ebuild:
@@ -107,4 +112,3 @@
13 May 2004; <mkennedy@gentoo.org> +metadata.xml, +trang-20030619.ebuild:
Initial port. Ebuild contributed by Matthew Kennedy <mkennedy@gentoo.org>
-
diff --git a/app-text/trang/trang-20091111-r1.ebuild b/app-text/trang/trang-20091111-r1.ebuild
new file mode 100644
index 000000000000..98ac87ae370c
--- /dev/null
+++ b/app-text/trang/trang-20091111-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/trang/trang-20091111-r1.ebuild,v 1.1 2015/04/05 21:01:00 monsieurp Exp $
+
+EAPI=5
+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.6
+ ${COMMON_DEP}"
+
+DEPEND="
+ app-arch/unzip
+ >=virtual/jdk-1.6
+ ${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" || die
+}
+
+EANT_GENTOO_CLASSPATH="xerces-2,xml-commons-resolver"
+
+src_test() {
+ java -jar "dist/${PN}.jar" "${FILESDIR}/test.xml" "test/test.xsd"
+ java -jar "dist/${PN}.jar" "${FILESDIR}/test.xml" "test/test.dtd"
+ java -jar "dist/${PN}.jar" "test/test.dtd" "test/test.dtd.xsd"
+
+ md5sum -c <<MD5SUMS_END || die "Failed to verify md5sum"
+4bcb454ade46c0188f809d2e8ce15315 "${FILESDIR}"/test.xml
+d096c1fb462902e10a3440a604a21664 test/test.xsd
+3fb46bdb16dc75a2a1e36e421b13e51d test/test.dtd
+fce355ca962cb063d7baa5d7fd571bcf test/test.dtd.xsd
+MD5SUMS_END
+}
+
+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}
+}