blob: b0b8767c5f36e90128aa59bd9c3724a44f532a93 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Implementation of the HTML5 parsing algorithm in Java"
HOMEPAGE="http://about.validator.nu/htmlparser/"
SRC_URI="http://about.validator.nu/${PN}/${P}.zip"
LICENSE="W3C"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON_DEP="
dev-java/icu4j:52
dev-java/jchardet:0
dev-java/xom:0"
RDEPEND="${COMMON_DEP}
>=virtual/jre-1.5"
DEPEND="${COMMON_DEP}
>=virtual/jdk-1.5
app-arch/unzip"
java_prepare() {
find "${WORKDIR}" -name '*.jar' -delete || die
mkdir -p build lib || die
cp "${FILESDIR}/build.xml" build.xml || die "cp failed"
}
JAVA_ANT_REWRITE_CLASSPATH="yes"
EANT_GENTOO_CLASSPATH="icu4j-52,xom,jchardet"
src_install() {
java-pkg_dojar htmlparser.jar
use source && java-pkg_dosrc src/*
use doc && java-pkg_dojavadoc docs
}
|