summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2007-09-18 06:13:23 +0000
committerAlistair Bush <ali_bush@gentoo.org>2007-09-18 06:13:23 +0000
commit4cb9114b42d419c1b72f0b3a5475f292595c66e7 (patch)
tree3c7a9c748e597fae23cfe3b64305d065dbe3f255 /dev-java/jdom-jaxen/jdom-jaxen-1.0_beta10-r1.ebuild
parentold (diff)
downloadhistorical-4cb9114b42d419c1b72f0b3a5475f292595c66e7.tar.gz
historical-4cb9114b42d419c1b72f0b3a5475f292595c66e7.tar.bz2
historical-4cb9114b42d419c1b72f0b3a5475f292595c66e7.zip
Rev bump jdom-jaxen to fix my stupid SRC_URI mistake
Package-Manager: portage-2.1.3.9
Diffstat (limited to 'dev-java/jdom-jaxen/jdom-jaxen-1.0_beta10-r1.ebuild')
-rw-r--r--dev-java/jdom-jaxen/jdom-jaxen-1.0_beta10-r1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-java/jdom-jaxen/jdom-jaxen-1.0_beta10-r1.ebuild b/dev-java/jdom-jaxen/jdom-jaxen-1.0_beta10-r1.ebuild
new file mode 100644
index 000000000000..d3ddd575946b
--- /dev/null
+++ b/dev-java/jdom-jaxen/jdom-jaxen-1.0_beta10-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom-jaxen/jdom-jaxen-1.0_beta10-r1.ebuild,v 1.1 2007/09/18 06:13:22 ali_bush Exp $
+
+JAVA_PKG_IUSE=""
+
+inherit base java-pkg-2
+
+MY_PN="jdom"
+MY_PV="b10"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Jaxen binding for jdom."
+HOMEPAGE="www.jdom.org"
+SRC_URI="http://www.jdom.org/dist/source/${MY_P}.tar.gz"
+
+LICENSE="JDOM"
+SLOT="${PV}"
+KEYWORDS="~amd64"
+
+IUSE=""
+
+COMMON_DEP="~dev-java/jdom-${SLOT}
+ =dev-java/jaxen-1.1*
+ dev-java/saxpath"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ cd "${S}/src/java/org/jdom/xpath/"
+ mv JaxenXPath.java JaxenXPath.java.bak
+ sed 's/SAXPathException/Exception/g' JaxenXPath.java.bak > JaxenXPath.java
+
+ cd "${S}"
+
+ mkdir -p "${S}/build/org/jdom/xpath" || die "Unable to create dir."
+ ejavac -d "${S}/build/" \
+ -classpath $(java-config -p jdom-${SLOT},jaxen-1.1,saxpath) \
+ src/java/org/jdom/xpath/JaxenXPath.java
+
+ jar cf jdom-jaxen.jar -C build org || die "Failed to create jar."
+}
+
+src_install() {
+ java-pkg_dojar "${PN}.jar"
+}