blob: 2283d7ff88ca20877dac156b071f49af82c7d11c (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jtidy/jtidy-0_pre20010801.ebuild,v 1.7 2005/08/25 03:12:02 agriffis Exp $
inherit eutils java-pkg
MY_PV="04aug2000r7"
DESCRIPTION="Tidy is a Java port of HTML Tidy , a HTML syntax checker and pretty printer."
HOMEPAGE="http://jtidy.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}-dev.zip"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc x86"
IUSE="doc jikes"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
dev-java/ant-core
jikes? ( dev-java/jikes )"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}/${PN}-${MY_PV}-dev
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/jtidy-source-1.4.patch
}
src_compile() {
local antflags="jar"
use doc && antflags="${antflags} javadoc"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "compile failed"
}
src_install() {
java-pkg_dojar build/Tidy.jar
use doc && java-pkg_dohtml -r doc
}
|