summaryrefslogtreecommitdiff
blob: 837b5d1775baf3f63818fdb4b9b196d0da125be3 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jtidy/jtidy-0_pre20010801-r1.ebuild,v 1.2 2007/01/21 18:10:05 flameeyes Exp $

inherit eutils base java-pkg-2 java-ant-2

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 ~x86-fbsd"
IUSE="doc source"
DEPEND=">=virtual/jdk-1.4
	app-arch/unzip
	dev-java/ant-core"
RDEPEND=">=virtual/jre-1.4"

S=${WORKDIR}/${PN}-${MY_PV}-dev

PATCHES="${FILESDIR}/${PN}-source-1.4.patch"

src_compile() {
	eant jar # Has javadoc premade
}

src_install() {
	java-pkg_dojar build/Tidy.jar

	use doc && java-pkg_dojavadoc doc/api
	use source && java-pkg_dosrc src/org
}