blob: b3c936e5f92d5f09de7fc9ca6b44be4824570096 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/velocity-1.3.ebuild,v 1.2 2003/04/06 08:34:42 absinthe Exp $
DESCRIPTION="A Java-based template engine that allows easy creation/rendering of documents that format and present data."
HOMEPAGE="http://jakarta.apache.org/velocity/"
SRC_URI="http://jakarta.apache.org/builds/jakarta-${PN}/release/v${PV}/${PN}-${PV}.tar.gz"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="x86 ppc sparc"
IUSE="jikes doc"
DEPEND=">=dev-java/sun-jdk-1.3.1"
RDEPEND=">=dev-java/sun-jdk-1.3.1
>=dev-java/ant-1.5.1
>=dev-java/avalon-logkit-1.2
>=dev-java/oro-2.0.6
j2ee? ( =dev-java/sun-j2ee-1.3.1 )
jikes? ( >=dev-java/jikes-1.17 )"
src_compile () {
cd ${S}/build
local myc
if [ -n "`use jikes`" ] ; then
myc="${myc} -Dbuild.compiler=jikes"
fi
if [ -n "`use j2ee`" ] ; then
cp /opt/sun-j2ee-1.3.1/lib/j2ee.jar ${S}/build/lib
ANT_OPTS=${myc} ant jar-J2EE || die "Java compile failed."
else
ANT_OPTS=${myc} ant jar || die "Java compile failed"
fi
if [ -n "`use doc`" ] ; then
ant javadocs || die "Document compile failed"
fi
}
src_install () {
cd ${S}
if [ -n "`use j2ee`" ] ; then
dojar bin/${PN}-J2EE-${PV}.jar
else
dojar bin/${PN}-${PV}.jar
fi
dodoc LICENSE.txt README.txt
use doc && dohtml -r docs/*
}
|