diff options
author | 2006-11-25 18:52:55 +0000 | |
---|---|---|
committer | 2006-11-25 18:52:55 +0000 | |
commit | 1283f05cd75442a8e3f0411a181b5a2d3cbc75ec (patch) | |
tree | 375d20026ce4d31ec5400427125766fdc49dd5cb /app-text/trang/trang-20030619-r3.ebuild | |
parent | Alpha + ~ia64 keywords. (diff) | |
download | gentoo-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/trang/trang-20030619-r3.ebuild')
-rw-r--r-- | app-text/trang/trang-20030619-r3.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
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} +} |