summaryrefslogtreecommitdiff
blob: ef43c787e49718ab7ab0884e44126e2e1132e2ef (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-2007 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-r1.ebuild,v 1.6 2007/05/03 11:49:14 caster Exp $

JAVA_PKG_IUSE="doc examples source"

inherit java-pkg-2 java-ant-2

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="amd64 ppc ~ppc64 ~x86"
IUSE=""

DEPEND="|| ( =virtual/jdk-1.4* =virtual/jdk-1.3* )"
RDEPEND=">=virtual/jre-1.3"

src_compile() {
	eant jars $(use_doc docs)
}

src_install() {
	java-pkg_dojar build/${PN}.jar

	dodoc ChangeLog || die
	dohtml docs/README.html || die
	if use doc; then
		java-pkg_dojavadoc build/docs/api
		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/javax src/org
}