blob: 7c227fdf5e9eb1f954022d81620b5b77a8927788 (
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
50
51
52
53
54
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
MY_PV="r938"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Java port of HTML Tidy, an HTML syntax checker and pretty printer"
HOMEPAGE="http://jtidy.sourceforge.net/"
SRC_URI="mirror://sourceforge/project/${PN}/JTidy/${MY_PV}/${PN}-${MY_PV}-sources.zip -> ${P}.zip"
LICENSE="HTML-Tidy W3C"
SLOT="0"
KEYWORDS="amd64 ppc64 x86"
CDEPEND="dev-java/ant-core:0"
DEPEND="
${CDEPEND}
>=virtual/jdk-1.8:*"
RDEPEND="
${CDEPEND}
>=virtual/jre-1.8:*"
BDEPEND="
app-arch/unzip"
JAVA_ANT_ENCODING="UTF-8"
JAVA_ANT_REWRITE_CLASSPATH="yes"
EANT_GENTOO_CLASSPATH="ant-core"
EANT_BUILD_TARGET="jar"
S="${WORKDIR}"
PATCHES=(
"${FILESDIR}"/"${P}-build.xml.patch"
)
src_prepare() {
default
}
src_install() {
java-pkg_newjar "target/${MY_P}.jar"
java-pkg_dolauncher "jtidy" --main org.w3c.tidy.Tidy
use doc && java-pkg_dojavadoc target/javadoc/
use source && java-pkg_dosrc src/main/java
}
|