summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2006-09-10 21:50:12 +0000
committerVlastimil Babka <caster@gentoo.org>2006-09-10 21:50:12 +0000
commit77e046ebfe035716965bf4daf22c100f2219a370 (patch)
treeeb3f93b8457e8731875a64dac447566296eb9043 /dev-java/saxpath
parentWorks on ppc; added ~ppc. (diff)
downloadgentoo-2-77e046ebfe035716965bf4daf22c100f2219a370.tar.gz
gentoo-2-77e046ebfe035716965bf4daf22c100f2219a370.tar.bz2
gentoo-2-77e046ebfe035716965bf4daf22c100f2219a370.zip
Changed deprecated junit USEflag to test, testing is done in src_test(). Dropped unnecessary xerces and xalan dependencies.
(Portage version: 2.1.1)
Diffstat (limited to 'dev-java/saxpath')
-rw-r--r--dev-java/saxpath/ChangeLog8
-rw-r--r--dev-java/saxpath/files/digest-saxpath-1.0-r23
-rw-r--r--dev-java/saxpath/saxpath-1.0-r2.ebuild61
3 files changed, 71 insertions, 1 deletions
diff --git a/dev-java/saxpath/ChangeLog b/dev-java/saxpath/ChangeLog
index 1f2743c890a0..e5e4004f3ae3 100644
--- a/dev-java/saxpath/ChangeLog
+++ b/dev-java/saxpath/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/saxpath
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/saxpath/ChangeLog,v 1.13 2006/08/14 20:17:20 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/saxpath/ChangeLog,v 1.14 2006/09/10 21:50:12 caster Exp $
+
+*saxpath-1.0-r2 (10 Sep 2006)
+
+ 10 Sep 2006; Vlastimil Babka <caster@gentoo.org> +saxpath-1.0-r2.ebuild:
+ Changed deprecated junit USEflag to test, testing is done in src_test().
+ Dropped unnecessary xerces and xalan dependencies.
*saxpath-1.0-r1 (14 Aug 2006)
diff --git a/dev-java/saxpath/files/digest-saxpath-1.0-r2 b/dev-java/saxpath/files/digest-saxpath-1.0-r2
new file mode 100644
index 000000000000..55af3577d2a5
--- /dev/null
+++ b/dev-java/saxpath/files/digest-saxpath-1.0-r2
@@ -0,0 +1,3 @@
+MD5 cc95ecc7dfb689a29bd42323490ee702 saxpath-1.0.tar.gz 2166023
+RMD160 59520216dc54bad5b01e351fd6ae89750b84a876 saxpath-1.0.tar.gz 2166023
+SHA256 90c07abb3e3f09c398c02d84b44b651aa59d724aa6fabf45aa44a2365a6725c1 saxpath-1.0.tar.gz 2166023
diff --git a/dev-java/saxpath/saxpath-1.0-r2.ebuild b/dev-java/saxpath/saxpath-1.0-r2.ebuild
new file mode 100644
index 000000000000..f99963c383fb
--- /dev/null
+++ b/dev-java/saxpath/saxpath-1.0-r2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/saxpath/saxpath-1.0-r2.ebuild,v 1.1 2006/09/10 21:50:12 caster Exp $
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A Simple API for XPath."
+HOMEPAGE="http://saxpath.sourceforge.net/"
+SRC_URI="mirror://sourceforge/saxpath/${P}.tar.gz"
+LICENSE="saxpath"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc source test"
+
+RDEPEND=">=virtual/jre-1.4"
+# doc needs ant-trax
+# test needs ant-junit
+DEPEND=">=virtual/jdk-1.4
+ dev-java/ant-core
+ doc? ( dev-java/ant-tasks )
+ test? (
+ dev-java/junit
+ dev-java/ant-tasks
+ )
+ source? ( app-arch/zip )
+ ${RDEPEND}"
+
+S=${WORKDIR}/${P}-FCS
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -f *.jar lib/*.jar
+
+ mkdir src/conf
+ cp ${FILESDIR}/MANIFEST.MF src/conf
+
+ # add a property to pass junit's classpath to javac compile-tests
+ use test && xml-rewrite.py -f build.xml --change -e javac -a classpath \
+ -v '${gentoo.classpath}' -i 1
+}
+
+src_compile() {
+ eant package $(use_doc doc javadoc)
+}
+
+src_test() {
+ eant -Dgentoo.classpath="$(java-pkg_getjar --build-only junit junit.jar)" \
+ test
+}
+
+src_install() {
+ java-pkg_dojar build/saxpath.jar
+
+ if use doc; then
+ mv build/doc/javadoc build/doc/apidocs
+ java-pkg_dohtml -r build/doc/*
+ fi
+ use source && java-pkg_dosrc src/java/main/*
+}