summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-01-14 16:38:28 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-01-14 16:38:28 +0000
commit319b67987dfa4d18f399b0f8ddaf614470e33d9b (patch)
tree2348a3b851c849be73b9cb955c76a3a2b779c935 /dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild
parentMarking twisted-conch-0.8.0 ~ppc64 for bug 144202 (diff)
downloadgentoo-2-319b67987dfa4d18f399b0f8ddaf614470e33d9b.tar.gz
gentoo-2-319b67987dfa4d18f399b0f8ddaf614470e33d9b.tar.bz2
gentoo-2-319b67987dfa4d18f399b0f8ddaf614470e33d9b.zip
Make this installable with sun-jdk-1.6.
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild')
-rw-r--r--dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild b/dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild
new file mode 100644
index 000000000000..15fa4a9882f9
--- /dev/null
+++ b/dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild,v 1.1 2007/01/14 16:38:28 betelgeuse Exp $
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="NanoXML is a small non-validating parser for Java. "
+
+HOMEPAGE="http://nanoxml.sourceforge.net/"
+MY_P=NanoXML-${PV}
+SRC_URI="http://nanoxml.cyberelf.be/downloads/${MY_P}.tar.gz"
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc source"
+DEPEND="
+ !doc? ( >=virtual/jdk-1.4 )
+ doc? ( || ( =virtual/jdk-1.4* =virtual/jdk-1.5* ) )
+ ${RDEPEND}"
+RDEPEND=">=virtual/jre-1.4
+ dev-java/sax"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/ThirdParty/SAX
+ java-pkg_jar-from sax
+ cd ${S}
+
+ local docsed
+ if use doc; then
+ docsed="javadoc -source $(java-pkg_get-source)"
+ else
+ docsed="true"
+ fi
+
+ # Use the right arguments for javac/javadoc
+ sed -e "s:/tmp/:${T}/:g" \
+ -e "s/javac/javac $(java-pkg_javac-args)/" \
+ -e "s/-target 1.1//" \
+ -e "s/javadoc/${docsed}/" \
+ -i build.sh || die "failed to sed"
+}
+
+src_compile() {
+ ./build.sh || die "failed to build"
+}
+
+src_install() {
+ java-pkg_dojar Output/*.jar
+
+ dohtml -r Documentation/NanoXML-*
+ use doc && java-pkg_dojavadoc Documentation/JavaDoc
+}