summaryrefslogtreecommitdiff
blob: 00f498f434320f20a49047102ced8680f4327193 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/dtdparser/dtdparser-1.21-r1.ebuild,v 1.4 2007/06/01 06:47:15 betelgeuse Exp $

JAVA_PKG_IUSE="doc source"

inherit eutils java-pkg-2 java-ant-2

DESCRIPTION="A Java DTD Parser"
HOMEPAGE="http://www.wutka.com/dtdparser.html"
SRC_URI="http://www.wutka.com/download/${P}.tgz"

LICENSE="LGPL-2.1 Apache-1.1"
SLOT="${PV}"
KEYWORDS="amd64 ~ppc x86"
IUSE=""

DEPEND=">=virtual/jdk-1.4"
RDEPEND=">=virtual/jre-1.4"

src_unpack() {
	unpack ${A}
	cd "${S}"
	rm -v *.jar || die
	rm -v classes/com/wutka/dtd/*.class || die
	epatch "${FILESDIR}/buildfile.patch"
}

EANT_BUILD_TARGET="build"
EANT_DOC_TARGET="createdoc"

src_install() {
	java-pkg_dojar dist/${PN}.jar
	dodoc CHANGES README || die

	use doc && java-pkg_dojavadoc doc
	use source && java-pkg_dosrc source/*
}