summaryrefslogtreecommitdiff
blob: b97cabc4f7c687208c9f5c23369c15038d25283b (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
61
62
63
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr181/jsr181-0.7.ebuild,v 1.1 2006/09/11 11:43:53 nelchael Exp $

inherit java-pkg-2 java-ant-2

DESCRIPTION="JSR 181 Web Services Metadata"
HOMEPAGE="http://jcp.org/aboutJava/communityprocess/edr/jsr181/index.html"
SRC_URI="web_svcs_md-0_7-erd-spec.zip"

LICENSE="bea.jsr181"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE="doc source"
RESTRICT="fetch nostrip"

DEPEND=">=virtual/jdk-1.5"
RDEPEND=">=virtual/jre-1.5"

S="${WORKDIR}"

pkg_nofetch() {

	einfo "Please go to following URL:"
	einfo " ${HOMEPAGE}"
	einfo "download file named web_svcs_md-0_7-erd-spec.zip and place it in:"
	einfo " ${DISTDIR}"

}

src_unpack() {

	unpack "${A}"
	cd "${S}"
	unzip -qq jsr181-src.jar || die "unzip failed"
	mkdir src lib
	mv javax src

	cp "${FILESDIR}/build.xml" "${S}/"

}

src_compile() {

	cd "${S}"
	local antflags="jar"
	use doc && antflags="${antflags} doc"
	eant ${antflags}

}

src_install() {

	cd "${S}"
	java-pkg_dojar jsr181.jar

	use doc && {
		java-pkg_dohtml -r api
		dodoc JSR181-ERD4.pdf
	}
	use source && java-pkg_dosrc "src/*"

}