blob: 297bfe8eba8c26d182ab417c75e31c53d18cf938 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/nekohtml/nekohtml-1.9.6.ebuild,v 1.5 2008/07/27 07:34:58 nixnut Exp $
JAVA_PKG_IUSE="doc examples source"
inherit java-pkg-2 java-ant-2 eutils
DESCRIPTION="A simple HTML scanner and tag balancer using standard XML interfaces."
HOMEPAGE="http://nekohtml.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ppc x86"
COMMON_DEP=">=dev-java/xerces-2.7"
DEPEND=">=virtual/jdk-1.4
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
src_unpack() {
unpack ${A}
cd "${S}"
java-ant_rewrite-classpath
rm -v lib/*.jar *.jar || die
java-pkg_jar-from --into lib xerces-2
}
EANT_DOC_TARGET=""
src_test() {
EANT_GENTOO_CLASSPATH="ant-core,xerces-2" eant test \
-Djava.class.path="$(java-pkg_getjars xerces-2)"
}
src_install() {
java-pkg_dojar build/lib/${PN}.jar
if use doc; then
java-pkg_dojavadoc --symlink javadoc doc/javadoc
dohtml doc/*
fi
use source && java-pkg_dosrc ./src/org
use examples && java-pkg_doexamples src/sample
}
|