summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2005-12-08 05:19:47 +0000
committerJoshua Nichols <nichoj@gentoo.org>2005-12-08 05:19:47 +0000
commitfc892d69136fecbce71f711208a2a3bad0ae9d22 (patch)
treeb3f60817af60333aa6e9d41775c15b3d36b1f4bf /dev-java/werken-xpath/werken-xpath-0.9.4_beta.ebuild
parentVersion bump to fix a bunch of bugs. (diff)
downloadgentoo-2-fc892d69136fecbce71f711208a2a3bad0ae9d22.tar.gz
gentoo-2-fc892d69136fecbce71f711208a2a3bad0ae9d22.tar.bz2
gentoo-2-fc892d69136fecbce71f711208a2a3bad0ae9d22.zip
Initial commit. Needed for bug #63275.
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'dev-java/werken-xpath/werken-xpath-0.9.4_beta.ebuild')
-rw-r--r--dev-java/werken-xpath/werken-xpath-0.9.4_beta.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-java/werken-xpath/werken-xpath-0.9.4_beta.ebuild b/dev-java/werken-xpath/werken-xpath-0.9.4_beta.ebuild
new file mode 100644
index 000000000000..8f8721a90f48
--- /dev/null
+++ b/dev-java/werken-xpath/werken-xpath-0.9.4_beta.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/werken-xpath/werken-xpath-0.9.4_beta.ebuild,v 1.1 2005/12/08 05:19:47 nichoj Exp $
+
+inherit java-pkg eutils versionator
+
+MY_PN=${PN//-/.}
+MY_PV=$(replace_version_separator 3 '-')
+MY_P="${MY_PN}-${MY_PV}"
+DESCRIPTION="W3C XPath-Rec implementation for DOM4J"
+HOMEPAGE="http://sourceforge.net/projects/werken-xpath/"
+SRC_URI="mirror://gentoo/${MY_P}-src.tar.gz"
+# This tarball was acquired from jpackage's src rpm of the package by the same
+# name
+
+LICENSE="werken.xpath"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc jikes source"
+
+DEPEND=">=virtual/jdk-1.4
+ dev-java/ant-core
+ dev-java/antlr
+ jikes? ( dev-java/jikes )
+ source? ( app-arch/zip )"
+RDEPEND=">=virtual/jre-1.4
+ ~dev-java/jdom-1.0_beta9"
+
+S="${WORKDIR}/${MY_PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Courtesy of JPackages :)
+ epatch ${FILESDIR}/${P}-jpp-compile.patch
+ epatch ${FILESDIR}/${P}-jpp-jdom.patch
+ epatch ${FILESDIR}/${P}-jpp-tests.patch
+ epatch ${FILESDIR}/${P}-gentoo.patch
+
+ cd ${S}/lib
+ rm -f *.jar
+ java-pkg_jar-from jdom-1.0_beta9
+ java-pkg_jar-from antlr
+}
+
+src_compile() {
+ local antflags="package"
+ use doc && antflags="${antflags} javadoc -Dbuild.javadocs=build/api"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+
+ ant ${antflags} || die "compile failed"
+}
+
+src_install() {
+ java-pkg_dojar build/${MY_PN}.jar
+
+ dodoc README TODO LIMITATIONS
+ use doc && java-pkg_dohtml -r build/api
+ use source && java-pkg_dosrc src/*
+}