blob: cbe53f26a03d9d5c9d876ba849d8c33b8fedb8e5 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/xom/xom-1.0.14.ebuild,v 1.3 2003/08/05 18:54:18 vapier Exp $
inherit java-pkg
#This is ugly but portage barfs with the name set to xom-10.d14
S=${WORKDIR}/XOM
XOMVER="xom-1.0d14"
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 ppc sparc alpha"
IUSE="doc"
DEPEND=">=dev-java/ant-1.4"
RDEPEND=">=virtual/jdk-1.2"
src_compile() {
local myc
cd ${WORKDIR}/XOM
myc="${myc} -Ddebug=off"
ANT_OPTS=${myc} ant jar || die "Failed Compiling"
}
src_install() {
mv ${WORKDIR}/XOM/build/${XOMVER}.jar xom.jar
java-pkg_dojar xom.jar || die "Failed Installing"
dodoc Todo.txt
if [ -n "`use doc`" ] ; then
dodir /usr/share/doc/${P}
cd ${WORKDIR}/XOM/
dohtml -r apidocs/
fi
}
|