blob: 14ccf11e959836738cc5fc46796b8a11210f86ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# 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_beta2-r1.ebuild,v 1.7 2006/11/30 15:47:36 caster Exp $
inherit java-pkg eutils
DESCRIPTION="A Java XPath Engine"
HOMEPAGE="http://jaxen.org/"
SRC_URI="http://www.ibiblio.org/maven/jaxen/distributions/${PN}-1.1-beta-2-src.tar.gz"
LICENSE="jaxen"
SLOT="1.1"
KEYWORDS="amd64 ppc x86"
IUSE="doc jikes source"
RDEPEND="|| ( =virtual/jre-1.3* =virtual/jre-1.4* )
>=dev-java/xerces-2.7
=dev-java/dom4j-1*
~dev-java/jdom-1.0_beta9"
DEPEND="|| ( =virtual/jdk-1.3* =virtual/jdk-1.4* )
jikes? ( dev-java/jikes )
dev-java/ant-core
>=sys-apps/sed-4
${RDEPEND}"
S=${WORKDIR}/${PN}-1.1-beta-2
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-gentoo.diff
mkdir -p target/lib
cd target/lib
java-pkg_jar-from xerces-2
java-pkg_jar-from dom4j-1
java-pkg_jar-from jdom-1.0_beta9
cd ${S}
sed -i 's/depends="compile,test"/depends="compile"/' build.xml
}
src_compile() {
local antops="jar"
use jikes && antops="${antops} -Dbuild.compiler=jikes"
use doc && antops="${antops} javadoc"
ant ${antops} || die "compile failed"
}
src_install() {
java-pkg_newjar target/jaxen*.jar ${PN}.jar
use doc && java-pkg_dohtml -r dist/docs/*
use source && java-pkg_dosrc src/java/main/*
}
|