summaryrefslogtreecommitdiff
blob: 891d388982d05af259901e5de6d17565e5dd94cd (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/xt/xt-20020426a-r1.ebuild,v 1.2 2005/07/13 10:32:08 axxo Exp $

inherit java-pkg

MY_P="${P}-src"

DESCRIPTION="Java Implementation of XSL-Transformations"
SRC_URI="http://www.blnz.com/xt/${MY_P}.tgz"
HOMEPAGE="http://www.blnz.com/xt/"
LICENSE="JamesClark"
SLOT="0"
KEYWORDS="x86 amd64 ~ppc"
IUSE="doc jikes"

RDEPEND=">=virtual/jre-1.4
	>=dev-java/xp-0.5
	~dev-java/servletapi-2.3
	dev-java/xml-commons"
DEPEND=">=virtual/jdk-1.4
	${RDEPEND}
	dev-java/ant-core
	jikes? ( dev-java/jikes )"

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

src_unpack() {
	unpack ${A}
	cd ${S}
	rm -f xt.jar lib/*.jar
	cd lib
	java-pkg_jar-from xml-commons xml-apis.jar
	java-pkg_jar-from xp
	java-pkg_jar-from servletapi-2.3 servlet.jar servlets.jar
}

src_compile() {
	cd src
	emake || die "compile failed"
}

src_install() {
	java-pkg_dojar xt.jar
	if use doc; then
		java-pkg_dohtml -r docs/* index.html
		dodoc README
	fi
}