blob: e729c29e1e8351efbe03d191445d205c16f3d6eb (
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/xom/xom-1.0_beta5.ebuild,v 1.5 2005/01/21 17:24:14 luckyduck Exp $
inherit java-pkg
XOMVER="xom-1.0b5"
DESCRIPTION="XOM is a new XML object model. It is a tree-based API for processing XML with Java that strives for correctness and simplicity."
HOMEPAGE="http://cafeconleche.org/XOM/index.html"
SRC_URI="http://cafeconleche.org/XOM/${XOMVER}.zip"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc"
DEPEND=">=dev-java/ant-1.4
app-arch/unzip
>=dev-java/xerces-2.6.2-r1
dev-java/xalan
dev-java/junit
dev-java/icu4j
dev-java/tagsoup
=dev-java/servletapi-2.3*"
RDEPEND=">=virtual/jdk-1.2"
S=${WORKDIR}/XOM
src_unpack() {
unpack ${A}
cd ${S}
rm -f *.jar
cd ${S}/lib
rm -f *.jar
java-pkg_jar-from junit
java-pkg_jar-from xalan
java-pkg_jar-from xerces-2
java-pkg_jar-from servletapi-2.3 servletapi-2.3.jar servlet.jar
java-pkg_jar-from icu4j icu4j.jar normalizer.jar
java-pkg_jar-from tagsoup tagsoup.jar tagsoup-0.9.7.jar
}
src_compile() {
local antflags="jar -Ddebug=off"
ant ${antflags} || die "Failed Compiling"
}
src_install() {
mv ${WORKDIR}/XOM/build/${XOMVER}.jar xom.jar
java-pkg_dojar xom.jar
dodoc Todo.txt
if use doc ; then
dodir /usr/share/doc/${P}
cd ${WORKDIR}/XOM/
java-pkg_dohtml -r apidocs/
fi
}
|