summaryrefslogtreecommitdiff
blob: 01d43db86505c28fccd4a26a33e36321eecef003 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/avalon-phoenix/avalon-phoenix-4.0.4.ebuild,v 1.9 2004/06/24 22:17:31 agriffis Exp $

MY_P=phoenix-${PV}
DESCRIPTION="Avalon Phoenix is a API for java-based servers"
HOMEPAGE="http://avalon.apache.org"
SRC_URI="mirror://apache/avalon/phoenix/v${PV}/${MY_P}-src.tar.gz"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="x86 ~sparc"
DEPEND=">=virtual/jdk-1.4
	>=dev-java/ant-1.5.2"
RDEPEND=">=virtual/jre-1.3"
IUSE="jikes debug"

S=${WORKDIR}/${MY_P}

src_compile() {

	if use jikes
	then
		echo "build.compiler=jikes\n" > ${S}/.ant.properties
	fi
	if use debug
	then
		echo "build.debug=on\n" >> ${S}/.ant.properties
	else
		echo "build.debug=off\n" >> ${S}/.ant.properties
	fi
	echo "build.deprecation=off\nbuild.optimize=on" >> ${S}/.ant.properties
	echo 'tools.jar=${java.home}/../j2sdk1.3/lib/tools.jar' >> ${S}/.ant.properties
	echo "phoenix.home=phoenix-home" >> ${S}/.ant.properties
	echo "base.path=/opt" >> ${S}/.ant.properties 	#Is this really needed?

	ant get-mx4j main

}

src_install() {

	dojar dist/bin/lib/*.jar
	dojar dist/bin/phoenix-loader.jar
	dodoc README.txt LICENSE.txt
	dodir /usr/share/doc/
	dohtml -A .css .jpg .gif -r docs

}