summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/nekohtml')
-rw-r--r--dev-java/nekohtml/ChangeLog11
-rw-r--r--dev-java/nekohtml/files/digest-nekohtml-0.9.5-r13
-rw-r--r--dev-java/nekohtml/nekohtml-0.9.5-r1.ebuild53
3 files changed, 65 insertions, 2 deletions
diff --git a/dev-java/nekohtml/ChangeLog b/dev-java/nekohtml/ChangeLog
index 437d5b096169..c4b4ae09a008 100644
--- a/dev-java/nekohtml/ChangeLog
+++ b/dev-java/nekohtml/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/nekohtml
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/nekohtml/ChangeLog,v 1.2 2006/11/30 15:50:50 caster Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/nekohtml/ChangeLog,v 1.3 2007/03/07 20:13:05 betelgeuse Exp $
+
+*nekohtml-0.9.5-r1 (07 Mar 2007)
+
+ 07 Mar 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +nekohtml-0.9.5-r1.ebuild:
+ Add the source use flag, generate proper bytecode version and cleanup the
+ ebuild.
30 Nov 2006; Vlastimil Babka <caster@gentoo.org> nekohtml-0.9.5.ebuild:
Update xerces dep for upcoming 2.6 slotmove.
diff --git a/dev-java/nekohtml/files/digest-nekohtml-0.9.5-r1 b/dev-java/nekohtml/files/digest-nekohtml-0.9.5-r1
new file mode 100644
index 000000000000..353098e9d0dd
--- /dev/null
+++ b/dev-java/nekohtml/files/digest-nekohtml-0.9.5-r1
@@ -0,0 +1,3 @@
+MD5 a5b22b189f23d0648eabc308fcfd4542 nekohtml-0.9.5.tar.gz 395953
+RMD160 efaaf6df559de293f36e9debb16813347dc174ad nekohtml-0.9.5.tar.gz 395953
+SHA256 028de8cd1776cced829e0fb95763b68ee8d536e493935a8e9c213584dd339d5b nekohtml-0.9.5.tar.gz 395953
diff --git a/dev-java/nekohtml/nekohtml-0.9.5-r1.ebuild b/dev-java/nekohtml/nekohtml-0.9.5-r1.ebuild
new file mode 100644
index 000000000000..c507fd121433
--- /dev/null
+++ b/dev-java/nekohtml/nekohtml-0.9.5-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/nekohtml/nekohtml-0.9.5-r1.ebuild,v 1.1 2007/03/07 20:13:05 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="A simple HTML scanner and tag balancer using standard XML interfaces."
+
+HOMEPAGE="http://people.apache.org/~andyc/neko/doc/html/"
+SRC_URI="http://www.apache.org/~andyc/neko/${P}.tar.gz"
+
+COMMON_DEP="
+ >=dev-java/xerces-2.7
+ dev-java/xalan"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+LICENSE="CyberNeko-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+JAVA_PKG_BSFIX_NAME="build-html.xml"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -v lib/*.jar *.jar || die
+ # fixes compile errors due to API changes of xerces
+ # TODO report upstream and fix properly instead of throwing
+ # UnsupportedOperationException
+ epatch ${FILESDIR}/${P}-xerces.patch
+ # TODO sanify classpath for building, and submit upstream
+ java-ant_rewrite-classpath build-html.xml
+}
+
+src_compile() {
+ eant -f build-html.xml clean jar $(use_doc doc) \
+ -Dgentoo.classpath=$(java-pkg_getjars xerces-2,xalan)
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ # TODO maybe have a samples useflag and install ${PN}Samples.jar
+
+ dodoc README_html TODO_html || die
+ # has other docs than javadoc too
+ use doc && java-pkg_dohtml -r doc/html/*
+ use source && java-pkg_dosrc ./src/html/org
+}