summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/xom')
-rw-r--r--dev-java/xom/ChangeLog9
-rw-r--r--dev-java/xom/files/digest-xom-1.0-r33
-rw-r--r--dev-java/xom/xom-1.0-r3.ebuild60
3 files changed, 71 insertions, 1 deletions
diff --git a/dev-java/xom/ChangeLog b/dev-java/xom/ChangeLog
index 9e034859d707..86ddfc521d27 100644
--- a/dev-java/xom/ChangeLog
+++ b/dev-java/xom/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/xom
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/xom/ChangeLog,v 1.30 2007/05/09 14:46:55 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xom/ChangeLog,v 1.31 2007/11/13 23:29:00 betelgeuse Exp $
+
+*xom-1.0-r3 (13 Nov 2007)
+
+ 13 Nov 2007; Petteri Räty <betelgeuse@gentoo.org> +xom-1.0-r3.ebuild:
+ dev-java/servletapi is only needed to build the examples to add examples use
+ flag. Also now it does not get picked automatically from ant classpath.
+ Reported in bug #142538.
09 May 2007; Raúl Porcel <armin76@gentoo.org> xom-1.0-r2.ebuild:
Add ~ia64 wrt #160813
diff --git a/dev-java/xom/files/digest-xom-1.0-r3 b/dev-java/xom/files/digest-xom-1.0-r3
new file mode 100644
index 000000000000..27aa669027b5
--- /dev/null
+++ b/dev-java/xom/files/digest-xom-1.0-r3
@@ -0,0 +1,3 @@
+MD5 af472e90685eef0ac1e731eb84a49763 xom-1.0.tar.gz 3396586
+RMD160 9e524b87d0cce968aaabe9aff3010de210e23745 xom-1.0.tar.gz 3396586
+SHA256 d37fbb5a2e6f1dd716c1f55f2e2ce6d96f9227788c2cd73e436c1cd087925a16 xom-1.0.tar.gz 3396586
diff --git a/dev-java/xom/xom-1.0-r3.ebuild b/dev-java/xom/xom-1.0-r3.ebuild
new file mode 100644
index 000000000000..273a61982ddc
--- /dev/null
+++ b/dev-java/xom/xom-1.0-r3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xom/xom-1.0-r3.ebuild,v 1.1 2007/11/13 23:29:00 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2
+
+XOMVER="xom-${PV/_beta/b}"
+DESCRIPTION="XOM is a new XML object model. It is a tree-based API for processing XML with Java that strives for correctness and simplicity."
+HOMEPAGE="http://cafeconleche.org/XOM/index.html"
+SRC_URI="http://cafeconleche.org/XOM/${XOMVER}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/xerces-2.7
+ dev-java/xalan
+ dev-java/junit
+ =dev-java/icu4j-3.0*
+ examples? ( =dev-java/servletapi-2.4* )
+ dev-java/tagsoup"
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}"
+
+S=${WORKDIR}/XOM
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ java-ant_ignore-system-classes
+ rm -v *.jar || die
+ cd "${S}/lib"
+ rm -v *.jar || die
+ java-pkg_jar-from junit
+ java-pkg_jar-from xalan
+ java-pkg_jar-from xerces-2
+ java-pkg_jar-from icu4j icu4j.jar normalizer.jar
+ java-pkg_jar-from tagsoup
+}
+
+src_compile() {
+ eant jar -Ddebug=off -Dtagsoup.jar=lib/tagsoup.jar \
+ -Dservlet.jar="$(java-pkg_getjar servletapi-2.4 servlet-api.jar)" \
+ $(use examples && echo samples) \
+ || die "Failed Compiling"
+}
+
+src_install() {
+ java-pkg_newjar build/${XOMVER}.jar ${PN}.jar
+ use examples && java-pkg_dojar build/xom-samples.jar
+ dodoc Todo.txt || die
+
+ use doc && java-pkg_dojavadoc apidocs/
+ use source && java-pkg_dosrc src/*
+ use examples && java-pkg_doexamples --subdir nu/xom/samples src/nu/xom/samples
+}