summaryrefslogtreecommitdiff
blob: ee50c4ac56f4dab376595a457d21eec0d4318871 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/wsdl4j/wsdl4j-1.4.ebuild,v 1.9 2005/05/04 17:50:48 luckyduck Exp $

inherit java-pkg

DESCRIPTION="Web Services Description Language for Java Toolkit (WSDL4J)"
HOMEPAGE="http://www-124.ibm.com/developerworks/projects/wsdl4j"
SRC_URI="mirror://gentoo/${P}-gentoo.tar.gz"

LICENSE="CPL-1.0"
SLOT="0"
KEYWORDS="x86 amd64 ~ppc"
IUSE="doc jikes source"

DEPEND=">=virtual/jdk-1.4
	>=dev-java/ant-core-1.4
	junit? ( dev-java/junit )
	jikes? ( >=dev-java/jikes-1.21 )
	source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4"

S="${WORKDIR}/${PN}"

src_compile() {
	antflags="compile"
	use doc && antflags="${antflags} javadocs"
	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
	ant ${antflags} || die "failed to build"
}

src_install() {
	java-pkg_dojar build/lib/*.jar

	dodoc doc/fab/JSR110_final_approval_ballot.pdf doc/fab/final-questions.txt
	use doc && java-pkg_dohtml -r build/javadocs/*
	use source && java-pkg_dosrc src/*
}