summaryrefslogtreecommitdiff
blob: 2a4884fae145b34e9e4f747a096bef09c11e582e (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan/xalan-2.4-r1.ebuild,v 1.4 2003/02/13 10:23:32 vapier Exp $

IUSE="jikes"

DESCRIPTION="XSLT processor"
HOMEPAGE="http://xml.apache.org/xalan-j/index.html"
LICENSE="Apache-1.1"
DEPEND=">=virtual/jdk-1.2
	>=dev-java/ant-1.4.1
	jikes? ( >=dev-java/jikes-1.15 )"
RDEPEND="$DEPEND"
SRC_URI="http://xml.apache.org/dist/xalan-j/${PN}-j_2_4_0-src.tar.gz"
S=${WORKDIR}/${PN}-j_2_4_0
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="x86"

src_compile() {
	local myc
	
	# FIXME: Compiling with Jikes does not work properly yet.

	use jikes && \
		myc="${myc} -Dbuild.compiler=jikes" || 
		myc="${myc} -Dbuild.compiler=classic"

	ant jar docs javadocs ${myc} || die "build failed"
}

src_install () {
	dojar build/xalan.jar

	dohtml readme.html
	dohtml -r build/docs/*
}