blob: e14055d366fce6fe5d9e88ff0a5167e46e792a52 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/crimson/crimson-1.1.3.ebuild,v 1.11 2005/05/04 20:34:53 luckyduck Exp $
inherit java-pkg
DESCRIPTION="Apache Crimson XML 1.0 parser"
HOMEPAGE="http://xml.apache.org/crimson/"
SRC_URI="http://xml.apache.org/dist/crimson/${P}-src.tar.gz"
LICENSE="Apache-1.1"
SLOT="1"
KEYWORDS="x86 ppc amd64"
IUSE="doc examples jikes source"
DEPEND=">=virtual/jdk-1.3
dev-java/ant-core
jikes? ( dev-java/jikes )
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.3"
src_compile() {
local antflags="jars"
use doc && antflags="${antflags} docs"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "ant failed"
}
src_install() {
java-pkg_dojar build/${PN}.jar
dodoc build/ChangeLog
java-pkg_dohtml build/README.html
if use doc; then
java-pkg_dohtml -r build/docs
java-pkg_dohtml -r -A class,java,xml build/examples
fi
if use examples; then
dodir /usr/share/doc/${PF}/examples
cp -r examples/* ${D}/usr/share/doc/${PF}/examples
fi
use source && java-pkg_dosrc src/*
}
|