diff options
author | 2007-01-20 19:57:26 +0000 | |
---|---|---|
committer | 2007-01-20 19:57:26 +0000 | |
commit | a18d0bb3b79fdbaf17993d646a394cc66441c1db (patch) | |
tree | 0dccf68d7d3578652d3cc4306c010989a9be5744 /app-text/jing/jing-20030619-r3.ebuild | |
parent | Stable on ppc wrt bug 158758 (diff) | |
download | historical-a18d0bb3b79fdbaf17993d646a394cc66441c1db.tar.gz historical-a18d0bb3b79fdbaf17993d646a394cc66441c1db.tar.bz2 historical-a18d0bb3b79fdbaf17993d646a394cc66441c1db.zip |
Fixed bug #122038, made this compile with jdks >=1.5, cleaned the ebuild and added the source use flag.
Package-Manager: portage-2.1.2-r1
Diffstat (limited to 'app-text/jing/jing-20030619-r3.ebuild')
-rw-r--r-- | app-text/jing/jing-20030619-r3.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/app-text/jing/jing-20030619-r3.ebuild b/app-text/jing/jing-20030619-r3.ebuild new file mode 100644 index 000000000000..8fc1e71b64f0 --- /dev/null +++ b/app-text/jing/jing-20030619-r3.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/jing/jing-20030619-r3.ebuild,v 1.1 2007/01/20 19:57:26 betelgeuse Exp $ + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Jing: A RELAX NG validator in Java" +HOMEPAGE="http://thaiopensource.com/relaxng/jing.html" +SRC_URI="http://www.thaiopensource.com/download/${P}.zip" +LICENSE="BSD Apache-1.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc source" +COMMON_DEPEND=" + =dev-java/saxon-8* + >=dev-java/xerces-2.7 + dev-java/iso-relax + dev-java/relaxng-datatype" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEPEND}" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + dev-java/ant-core + source? ( app-arch/zip ) + ${COMMON_DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + cp ${FILESDIR}/build-r1.xml build.xml || die + + mkdir src/ + cd src/ + unpack ./../src.zip + # Has java.util.regex, xerces2 and xerces1 implementation + # We only need the first one + rm -vr com/thaiopensource/datatype/xsd/regex/{xerces,xerces2} || die + epatch ${FILESDIR}/build-patch.diff + epatch ${FILESDIR}/${P}-xerces.patch + + #remove bundled relaxng-datatype + rm -r org + + cd ../bin/ + rm -v *.jar + java-pkg_jar-from iso-relax + java-pkg_jar-from xerces-2 + java-pkg_jar-from xalan + java-pkg_jar-from saxon saxon8.jar saxon.jar + java-pkg_jar-from relaxng-datatype + java-pkg_jar-from ant-core +} + +src_compile() { + eant jar #premade javadocs +} + +src_test() { + local cp + for jar in bin/*.jar; do + cp="${cp}:${jar}" + done + # would need some test files could probably take this from the gcj version + #java -cp ${cp} com.thaiopensource.datatype.xsd.regex.test.TestDriver || die + #java -cp ${cp} com.thaiopensource.datatype.relaxng.util.TestDriver || die + #java -cp ${cp} com.thaiopensource.datatype.xsd.regex.test.CategoryTest \ + # || die +} + +src_install() { + java-pkg_dojar bin/jing.jar + java-pkg_dolauncher ${PN} --main com.thaiopensource.relaxng.util.Driver + use doc && java-pkg_dohtml -r doc/* readme.html + use source && java-pkg_dosrc src/com +} |