summaryrefslogtreecommitdiff
blob: 1cf44d810a37a6b38913fd9dadb765b91761dab9 (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
58
59
60
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/openspml2/openspml2-1.0_rc2.ebuild,v 1.2 2007/04/26 20:24:03 betelgeuse 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/openspml_v2-${MY_PV}.tgz"

LICENSE="CDDL-Schily"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc source"

COMMON_DEP="
	=dev-java/servletapi-2.4*
	dev-java/openspml"
RDEPEND=">=virtual/jre-1.4
	${COMMON_DEP}"
DEPEND="${COMMON_DEP}
	>=virtual/jdk-1.4"

S="${WORKDIR}"

src_unpack() {

	unpack "${A}"
	cp "${FILESDIR}/build.xml-${PV}" "${S}/build.xml" || die "cp failed"

	rm -f "${S}/lib/*"

}

src_compile() {

	cd "${S}/lib"
	rm -f *.jar
	java-pkg_jar-from servletapi-2.4
	java-pkg_jar-from openspml

	cd "${S}"
	eant jar

}

src_install() {

	java-pkg_dojar "${S}/openspml2.jar"

	use source && java-pkg_dosrc "${S}/src/java/*"
	use doc && {
		java-pkg_dohtml -r docs/api
		dodoc docs/ToolkitOverview.html
		dodoc docs/DSML_2.0_Profile_Overview.txt
	}

}