blob: d79d3fd91f25aef05c7777c6b52c08dc3872926e (
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
55
56
57
58
59
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/saxon-6.5.2.ebuild,v 1.5 2006/02/09 02:34:00 nichoj Exp $
inherit java-pkg eutils versionator
MY_P="${PN}$(replace_all_version_separators _)"
DESCRIPTION="A collection of tools for processing XML documents: XSLT processor, XSL library, parser."
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
HOMEPAGE="http://saxon.sourceforge.net/"
LICENSE="MPL-1.1"
SLOT="6.5"
KEYWORDS="~amd64 ~ppc x86"
IUSE="doc source"
RDEPEND=">=virtual/jre-1.4
>=dev-java/gnu-jaxp-1.3
dev-java/xom
~dev-java/jdom-1.0
dev-java/fop"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
dev-java/ant-core
source? ( app-arch/zip )
${RDEPEND}"
S=${WORKDIR}
src_unpack() {
unpack ${A}
unzip -qq source.zip -d src || die "failed to unpack"
cp ${FILESDIR}/build-${PVR}.xml build.xml
rm *.jar
mkdir lib && cd lib
java-pkg_jarfrom gnu-jaxp
java-pkg_jarfrom jdom-1.0
java-pkg_jarfrom xom
java-pkg_jarfrom fop
}
src_compile() {
local antflags="jar -Dproject.name=${PN}"
use doc && antflags="${antflags} javadoc"
ant ${antflags} || die "Compilation failed"
}
src_install() {
java-pkg_dojar dist/*.jar
use doc && java-pkg_dohtml -r dist/doc/api doc/*
use source && java-pkg_dosrc src/*
}
|