blob: d475c3fe73bedd8da692ceb7db139689b5207e75 (
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
51
52
53
54
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/xt/xt-20051206-r1.ebuild,v 1.4 2007/07/12 22:38:23 betelgeuse Exp $
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 eutils java-ant-2
DESCRIPTION="Java Implementation of XSL-Transformations"
SRC_URI="http://www.blnz.com/xt/${P}-src.zip"
HOMEPAGE="http://www.blnz.com/xt/"
LICENSE="JamesClark"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
COMMON_DEP="~dev-java/servletapi-2.4"
RDEPEND=">=virtual/jre-1.4
dev-java/xp
${COMMON_DEP}"
DEPEND="
>=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEP}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/20051206-java5.patch"
rm -v lib/*.jar || die
rm -v thirdparty/servlet/*.jar || die
rm -vr ant || die
cd lib
java-pkg_jar-from servletapi-2.4 servlet-api.jar servlets.jar
}
EANT_BUILD_TARGET="compile"
EANT_EXTRA_ARGS="-Dunzip.done=true"
src_install() {
java-pkg_newjar lib/${PN}${PV}.jar
java-pkg_dolauncher ${PN} \
--main com.jclark.xsl.sax.Driver
# loads this only on runtime
java-pkg_register-dependency xp
dodoc README.txt || die
dohtml index.html || die
use doc && java-pkg_dojavadoc docs/api
use source && java-pkg_dosrc src/xt/java/com
}
|