blob: d5d5b103d4d434c70a31151b2db065942c25d930 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom-jaxen/jdom-jaxen-1.0_beta10-r1.ebuild,v 1.5 2008/01/05 23:20:08 betelgeuse Exp $
JAVA_PKG_IUSE=""
inherit base java-pkg-2
MY_PN="jdom"
MY_PV="b10"
MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="Jaxen binding for jdom."
HOMEPAGE="http://www.jdom.org"
SRC_URI="http://www.jdom.org/dist/source/${MY_P}.tar.gz"
LICENSE="JDOM"
SLOT="${PV}"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""
COMMON_DEP="~dev-java/jdom-${SLOT}
=dev-java/jaxen-1.1*
dev-java/saxpath"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEP}"
S="${WORKDIR}/${MY_P}"
src_compile() {
cd "${S}/src/java/org/jdom/xpath/"
mv JaxenXPath.java JaxenXPath.java.bak
sed 's/SAXPathException/Exception/g' JaxenXPath.java.bak > JaxenXPath.java
cd "${S}"
mkdir -p "${S}/build/org/jdom/xpath" || die "Unable to create dir."
ejavac -d "${S}/build/" \
-classpath $(java-config -p jdom-${SLOT},jaxen-1.1,saxpath) \
src/java/org/jdom/xpath/JaxenXPath.java
jar cf jdom-jaxen.jar -C build org || die "Failed to create jar."
}
src_install() {
java-pkg_dojar "${PN}.jar"
}
|