blob: 22853721f5ff6636c45b80ad9cf26babe9799d1b (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/saxon-6.5.5.ebuild,v 1.5 2007/06/17 15:24:26 wltjr Exp $
JAVA_PKG_IUSE="doc examples source"
inherit java-pkg-2 java-ant-2 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=""
COMMON_DEP="~dev-java/jdom-1.0"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEP}"
S="${WORKDIR}"
src_unpack() {
unpack ${A}
unzip -qq source.zip -d src || die "failed to unpack"
cp "${FILESDIR}/build-${PV}.xml" build.xml || die
rm -v *.jar || die
rm -rf doc/api || die
rm samples/java/*.class || die
mkdir lib && cd lib
java-pkg_jar-from jdom-1.0
}
src_compile() {
java-pkg_filter-compiler jikes
eant -Dproject.name=${PN} jar $(use_doc)
}
src_install() {
java-pkg_dojar dist/${PN}.jar
if use doc; then
java-pkg_dojavadoc dist/doc/api
dohtml -r doc/*
fi
use examples && java-pkg_doexamples samples
use source && java-pkg_dosrc src/*
}
|