/[gentoo-x86]/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r1.ebuild
Gentoo

Contents of /dev-java/werken-xpath/werken-xpath-0.9.4_beta-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Feb 18 22:02:28 2012 UTC (2 years, 10 months ago) by caster
Branch: MAIN
Changes since 1.9: +3 -2 lines
Use ant-antlr task to fix compilation with Ant 1.8.2.

(Portage version: 2.2.0_alpha85/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r1.ebuild,v 1.9 2009/03/29 16:58:34 betelgeuse Exp $
4
5 EAPI="2"
6 JAVA_PKG_IUSE="doc source"
7 WANT_ANT_TASKS="ant-antlr"
8
9 inherit java-pkg-2 java-ant-2 eutils versionator
10
11 MY_PN=${PN//-/.}
12 MY_PV=$(replace_version_separator 3 '-')
13 MY_P="${MY_PN}-${MY_PV}"
14 DESCRIPTION="W3C XPath-Rec implementation for DOM4J"
15 HOMEPAGE="http://sourceforge.net/projects/werken-xpath/"
16 SRC_URI="mirror://gentoo/${MY_P}-src.tar.gz"
17 # This tarball was acquired from jpackage's src rpm of the package by the same
18 # name
19
20 LICENSE="werken.xpath"
21 SLOT="0"
22 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
23
24 IUSE=""
25
26 # need the versioned atom to get keep ensure dep happy
27 COMMON_DEP="
28 ~dev-java/jdom-1.0_beta9:1.0_beta9
29 >=dev-java/antlr-2.7.7:0[java]"
30 DEPEND=">=virtual/jdk-1.4
31 ${COMMON_DEP}"
32 RDEPEND=">=virtual/jre-1.4
33 ${COMMON_DEP}"
34
35 S="${WORKDIR}/${MY_PN}"
36
37 java_prepare() {
38 # Courtesy of JPackages :)
39 epatch "${FILESDIR}/${P}-jpp-compile.patch"
40 epatch "${FILESDIR}/${P}-jpp-jdom.patch"
41 epatch "${FILESDIR}/${P}-jpp-tests.patch"
42 epatch "${FILESDIR}/${P}-gentoo.patch"
43
44 cd "${S}/lib"
45 # In here we have ant starter scripts
46 rm -fr bin
47 rm -f *.jar
48
49 # compile target needs these
50 java-pkg_jar-from jdom-1.0_beta9
51 java-pkg_jar-from antlr
52 }
53
54 src_compile() {
55 local antflags="package"
56
57 # java.class.path is used by the prepare.grammars target that
58 # runs antlr
59 local jdomjars="$(java-pkg_getjars jdom-1.0_beta9)"
60 local antlrjars="$(java-pkg_getjars antlr)"
61 local antflags="${antflags} -Djava.class.path=${jdomjars}:${antlrjars}"
62
63 use doc && antflags="${antflags} javadoc -Dbuild.javadocs=build/api"
64
65 eant ${antflags} || die "compile failed"
66 }
67
68 src_install() {
69 java-pkg_dojar build/${MY_PN}.jar
70
71 dodoc README TODO LIMITATIONS || die
72 use doc && java-pkg_dojavadoc build/api
73 use source && java-pkg_dosrc src/*
74 }

  ViewVC Help
Powered by ViewVC 1.1.20