summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2008-11-22 16:50:31 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2008-11-22 16:50:31 +0000
commite67bfb94e5dc69a0c3be0837ff6b7822613525bb (patch)
tree419d1d7f1a548dadb4897753765d71fdb4eb4d28 /dev-java/httpunit/httpunit-1.6.2-r3.ebuild
parentfreemarker-2.3.13 needs at least jython-2.2 so fixed the dependency (diff)
downloadgentoo-2-e67bfb94e5dc69a0c3be0837ff6b7822613525bb.tar.gz
gentoo-2-e67bfb94e5dc69a0c3be0837ff6b7822613525bb.tar.bz2
gentoo-2-e67bfb94e5dc69a0c3be0837ff6b7822613525bb.zip
httpunit now depends on the latest rhino (slot 1.6)
(Portage version: 2.2_rc14/cvs/Linux 2.6.27-gentoo x86_64)
Diffstat (limited to 'dev-java/httpunit/httpunit-1.6.2-r3.ebuild')
-rw-r--r--dev-java/httpunit/httpunit-1.6.2-r3.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-java/httpunit/httpunit-1.6.2-r3.ebuild b/dev-java/httpunit/httpunit-1.6.2-r3.ebuild
new file mode 100644
index 000000000000..8cc1cb11929f
--- /dev/null
+++ b/dev-java/httpunit/httpunit-1.6.2-r3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/httpunit/httpunit-1.6.2-r3.ebuild,v 1.1 2008/11/22 16:50:31 fordfrog Exp $
+
+EAPI="2"
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="HttpUnit emulates the relevant portions of browser behavior."
+HOMEPAGE="http://httpunit.sourceforge.net/"
+# TODO what is metainf for?
+# TODO where did it come from?
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+CDEPEND="
+ >=dev-java/junit-3.8:0
+ dev-java/rhino:1.6
+ dev-java/jtidy:0
+ java-virtuals/servlet-api:2.3
+ dev-java/xerces:2"
+
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.5
+ ${CDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ find "${S}" -name "*.jar" | xargs rm -v
+ cd "${S}"
+ epatch "${FILESDIR}/rhino-fix-${PV}.diff"
+ cd "${S}/jars"
+ java-pkg_jar-from junit,rhino-1.6,xerces-2,jtidy,servlet-api-2.3
+}
+
+src_compile() {
+ java-pkg_filter-compiler jikes
+ eant clean jar $(use_doc javadocs)
+}
+
+src_install() {
+ java-pkg_dojar "lib/${PN}.jar"
+ dodoc doc/*.txt
+ if use doc; then
+ dohtml -r doc/manual doc/tutorial
+ java-pkg_dojavadoc doc/api
+ fi
+}