summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-09-17 09:40:23 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-09-17 09:40:23 +0000
commitf82e62afc2c2d664498a87df18f35c2e9b45f53e (patch)
tree97265518aebb2f46d6e649609140f84f11a0cb74 /dev-java/htmlparser/htmlparser-1.4.20040727.ebuild
parentMarked 1.1.7 stable on x86. (Manifest recommit) (diff)
downloadgentoo-2-f82e62afc2c2d664498a87df18f35c2e9b45f53e.tar.gz
gentoo-2-f82e62afc2c2d664498a87df18f35c2e9b45f53e.tar.bz2
gentoo-2-f82e62afc2c2d664498a87df18f35c2e9b45f53e.zip
initial import, ebuild created by me, as a dependency
Diffstat (limited to 'dev-java/htmlparser/htmlparser-1.4.20040727.ebuild')
-rw-r--r--dev-java/htmlparser/htmlparser-1.4.20040727.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-java/htmlparser/htmlparser-1.4.20040727.ebuild b/dev-java/htmlparser/htmlparser-1.4.20040727.ebuild
new file mode 100644
index 000000000000..b409bf9eca2c
--- /dev/null
+++ b/dev-java/htmlparser/htmlparser-1.4.20040727.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/htmlparser/htmlparser-1.4.20040727.ebuild,v 1.1 2004/09/17 09:40:23 axxo Exp $
+
+inherit java-pkg
+
+DESCRIPTION="HTML Parser is a Java library used to parse HTML in either a linear or nested fashion."
+
+HOMEPAGE="http://htmlparser.sourceforge.net/"
+MY_P=${P/-}
+MY_P=${MY_P//./_}
+SRC_URI="mirror://sourceforge/htmlparser/${MY_P}.zip"
+LICENSE="LGPL-2.1"
+SLOT="${PV}"
+KEYWORDS="~x86"
+IUSE="doc"
+DEPEND="virtual/jdk
+ app-arch/unzip
+ dev-java/ant"
+#RDEPEND=""
+
+S=${WORKDIR}/${MY_P%_*}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ rm -rf lib docs
+ unzip src.zip
+}
+
+src_compile() {
+ local antflags="jar"
+ use doc && antflags="${antflags} javadoc"
+ ant ${antflags} || die "failed to compile"
+}
+
+src_install() {
+ java-pkg_dojar lib/{htmllexer.jar,htmlparser.jar}
+ dodoc readme.txt
+ use doc && dohtml -r docs/
+}