summaryrefslogtreecommitdiff
blob: 5637594eff231a1392a0c4b59d86deeea64ef4c8 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/xdoclet/xdoclet-1.2.0_beta1.ebuild,v 1.3 2003/02/13 10:23:47 vapier Exp $

DESCRIPTION="A code-generation engine primarily for EJB"
HOMEPAGE="http://xdoclet.sf.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV/_/-}.tgz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86"
IUSE=""

RDEPEND=">=virtual/jdk-1.3"
DEPEND="${RDEPEND}
	dev-java/jikes
	>=dev-java/ant-1.5"

S=${WORKDIR}/

src_unpack() {
	unpack ${A}
	einfo "Configuring build for Jikes"
	cp build.properties build.properties~ \
		&& sed -e 's/compiler = modern/compiler = jikes/' <build.properties~ >build.properties
}

src_compile() {
	ant || die
}

src_install() {
	dojar target/lib/*.jar
	dodoc LICENSE.txt
	cp -r target/docs target/generated-xdocs samples ${D}/usr/share/doc/${P}
}