summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2006-07-22 21:22:35 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2006-07-22 21:22:35 +0000
commit74371eec11ce90bdcdab10679182579ac6a379e9 (patch)
treeb0ff8594466d3c02e64ea67c230b9e74e2f6922e /dev-java/jaxen
parentant_src_unpack -> src_unpack (diff)
downloadgentoo-2-74371eec11ce90bdcdab10679182579ac6a379e9.tar.gz
gentoo-2-74371eec11ce90bdcdab10679182579ac6a379e9.tar.bz2
gentoo-2-74371eec11ce90bdcdab10679182579ac6a379e9.zip
ant_src_unpack -> src_unpack
(Portage version: 2.1.1_pre3-r3)
Diffstat (limited to 'dev-java/jaxen')
-rw-r--r--dev-java/jaxen/ChangeLog8
-rw-r--r--dev-java/jaxen/files/digest-jaxen-1.1_beta7-r23
-rw-r--r--dev-java/jaxen/jaxen-1.1_beta7-r2.ebuild66
3 files changed, 76 insertions, 1 deletions
diff --git a/dev-java/jaxen/ChangeLog b/dev-java/jaxen/ChangeLog
index 69ed8b4fed9d..4d8b4184fd50 100644
--- a/dev-java/jaxen/ChangeLog
+++ b/dev-java/jaxen/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jaxen
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jaxen/ChangeLog,v 1.22 2006/07/04 18:40:50 nichoj Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jaxen/ChangeLog,v 1.23 2006/07/22 21:22:35 nelchael Exp $
+
+*jaxen-1.1_beta7-r2 (22 Jul 2006)
+
+ 22 Jul 2006; Krzysiek Pawlik <nelchael@gentoo.org>
+ -jaxen-1.1_beta7-r1.ebuild, +jaxen-1.1_beta7-r2.ebuild:
+ ant_src_unpack -> src_unpack
*jaxen-1.1_beta7-r1 (04 Jul 2006)
diff --git a/dev-java/jaxen/files/digest-jaxen-1.1_beta7-r2 b/dev-java/jaxen/files/digest-jaxen-1.1_beta7-r2
new file mode 100644
index 000000000000..a562287121e5
--- /dev/null
+++ b/dev-java/jaxen/files/digest-jaxen-1.1_beta7-r2
@@ -0,0 +1,3 @@
+MD5 2e90bb426e52984f4dc942427015a757 jaxen-1.1-beta-7-src.tar.gz 274435
+RMD160 269b2503d0ea243e578b49ec64ae1b73e004ea60 jaxen-1.1-beta-7-src.tar.gz 274435
+SHA256 df6ea55b4dc0ce009c6465e52cd762ba3fdc7a36d861ed78a86ea2db0386e3b5 jaxen-1.1-beta-7-src.tar.gz 274435
diff --git a/dev-java/jaxen/jaxen-1.1_beta7-r2.ebuild b/dev-java/jaxen/jaxen-1.1_beta7-r2.ebuild
new file mode 100644
index 000000000000..5f5a14202339
--- /dev/null
+++ b/dev-java/jaxen/jaxen-1.1_beta7-r2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jaxen/jaxen-1.1_beta7-r2.ebuild,v 1.1 2006/07/22 21:22:35 nelchael Exp $
+
+inherit java-pkg-2 eutils java-ant-2
+
+MY_P=${P/_beta/-beta-}
+DESCRIPTION="A Java XPath Engine"
+HOMEPAGE="http://jaxen.org/"
+SRC_URI="http://dist.codehaus.org/${PN}/distributions/${MY_P}-src.tar.gz"
+
+LICENSE="jaxen"
+SLOT="1.1"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="doc source test"
+
+RDEPEND="|| ( =virtual/jre-1.3* =virtual/jre-1.4* )
+ ~dev-java/jdom-1.0
+ =dev-java/dom4j-1*
+ >=dev-java/xerces-2.6
+ dev-java/xom"
+
+DEPEND="|| ( =virtual/jdk-1.3* =virtual/jdk-1.4* )
+ dev-java/ant-core
+ test? ( dev-java/ant-tasks )
+ source? ( app-arch/zip )
+ ${RDEPEND}"
+
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ mkdir -p ${S}/target/lib
+ cd ${S}/target/lib
+ java-pkg_jar-from xerces-2
+ java-pkg_jar-from dom4j-1
+ java-pkg_jar-from jdom-1.0
+ java-pkg_jar-from xom
+
+ cd ${S}
+ # Make tests non-compuslatory
+ sed -i 's/depends="compile,test"/depends="compile"/' build.xml
+}
+
+src_compile() {
+ eant jar -Dnoget=1 $(use_doc)
+}
+
+src_install() {
+ java-pkg_newjar target/${MY_P}-SNAPSHOT.jar ${PN}.jar
+
+ use doc && java-pkg_dohtml -r dist/docs/*
+ use source && java-pkg_dosrc src/java/main/*
+}
+
+src_test() {
+ if ! use test; then
+ ewarn "You must be using the 'test' USE flag in order to"
+ ewarn "get the dependencies to run tests."
+ ewarn "Skipping tests..."
+ else
+ eant test -Dnoget=true
+ fi
+}