blob: df4561dcaec09cab9a69c0610b33c748dc20192a (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/openspml/openspml-0.5.ebuild,v 1.5 2007/08/16 00:06:52 dertobi123 Exp $
inherit java-pkg-2 java-ant-2
MY_PV=${PV/_/}
DESCRIPTION="Open source implementation of Service Provisioning Markup Language (SPML)"
HOMEPAGE="http://www.openspml.org/"
SRC_URI="http://www.openspml.org/Files/${PN}_v${PV}.zip"
LICENSE="openspml"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="doc source"
RDEPEND=">=virtual/jre-1.4"
DEPEND="${RDEPEND}
app-arch/unzip
>=virtual/jdk-1.4"
S="${WORKDIR}/${PN}"
src_unpack() {
unpack "${A}"
# Argh...
cd "${S}"
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
cp "${FILESDIR}/build.xml-${PV}" "${S}/build.xml"
}
src_compile() {
cd "${S}/lib"
cd "${S}"
eant jar
}
src_install() {
java-pkg_dojar "${S}/lib/openspml.jar"
use source && java-pkg_dosrc "${S}/src/*"
dodoc README history.txt
use doc && java-pkg_dojavadoc doc
}
|