summaryrefslogtreecommitdiff
blob: 5696277b333dc6c7d14c4e9f3c537032d9f9ec43 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

JAVA_PKG_IUSE="doc source"

inherit java-pkg-2 java-ant-2

DESCRIPTION="Implementation of the HTML5 parsing algorithm in Java"
HOMEPAGE="https://about.validator.nu/htmlparser/"
SRC_URI="https://about.validator.nu/${PN}/${P}.zip"

LICENSE="W3C"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

CDEPEND="
	dev-java/icu4j:52
	dev-java/jchardet:0
	dev-java/xom:0"

RDEPEND="
	${CDEPEND}
	>=virtual/jre-1.6"

DEPEND="
	${CDEPEND}
	app-arch/unzip
	>=virtual/jdk-1.6"

java_prepare() {
	java-pkg_clean
	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 "${PN}.jar"
	use source && java-pkg_dosrc src/*
	use doc && java-pkg_dojavadoc docs
}