/[gentoo-x86]/dev-java/htmlparser/htmlparser-1.3.1.ebuild
Gentoo

Contents of /dev-java/htmlparser/htmlparser-1.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Feb 23 20:15:28 2012 UTC (2 years, 8 months ago) by nelchael
Branch: MAIN
Initial version of htmlparser: Implementation of the HTML5 parsing algorithm in Java.

(Portage version: 2.1.10.47/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/validation-api/validation-api-1.0.0.ebuild,v 1.3 2011/03/03 09:05:27 tomka Exp $
4
5 EAPI=4
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit java-pkg-2 java-ant-2
10
11 DESCRIPTION="Implementation of the HTML5 parsing algorithm in Java"
12 HOMEPAGE="http://about.validator.nu/htmlparser/"
13 SRC_URI="http://about.validator.nu/${PN}/${P}.zip"
14
15 LICENSE="W3C"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18
19 IUSE=""
20
21 COMMON_DEP="dev-java/icu4j:4
22 dev-java/xom
23 dev-java/jchardet"
24
25 RDEPEND=">=virtual/jre-1.5
26 ${COMMON_DEP}"
27 DEPEND=">=virtual/jdk-1.5
28 app-arch/unzip
29 ${COMMON_DEP}"
30
31 src_prepare() {
32 rm -f *.jar
33 mkdir -p "${S}/build" || die "mkdir failed"
34 mkdir -p "${S}/lib" || die "mkdir failed"
35
36 cp "${FILESDIR}/build.xml" "${S}" || die "cp failed"
37
38 java-pkg_jarfrom --into lib/ icu4j-4
39 java-pkg_jarfrom --into lib/ xom
40 java-pkg_jarfrom --into lib/ jchardet
41 }
42
43 src_install() {
44 java-pkg_dojar htmlparser.jar
45
46 use source && java-pkg_dosrc src/*
47 use doc && java-pkg_dojavadoc docs
48 }

  ViewVC Help
Powered by ViewVC 1.1.20