summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Schmitz <ercpe@gentoo.org>2014-07-11 17:54:09 +0000
committerJohann Schmitz <ercpe@gentoo.org>2014-07-11 17:54:09 +0000
commitf2de3eb31852629b677e8c20a05fd9d54340f83c (patch)
tree44e91c8c3eb8e2b546d874c0ddbbcdfa71e18536 /dev-java/htmlparser-org
parentVersion bump. (diff)
downloadgentoo-2-f2de3eb31852629b677e8c20a05fd9d54340f83c.tar.gz
gentoo-2-f2de3eb31852629b677e8c20a05fd9d54340f83c.tar.bz2
gentoo-2-f2de3eb31852629b677e8c20a05fd9d54340f83c.zip
New ebuild for htmlparser.
Note: this is a different one as dev-java/htmlparser! (the one from htmlparser.org) (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 77C501ED)
Diffstat (limited to 'dev-java/htmlparser-org')
-rw-r--r--dev-java/htmlparser-org/ChangeLog10
-rw-r--r--dev-java/htmlparser-org/Manifest3
-rw-r--r--dev-java/htmlparser-org/htmlparser-org-1.6.ebuild49
-rw-r--r--dev-java/htmlparser-org/metadata.xml6
4 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/htmlparser-org/ChangeLog b/dev-java/htmlparser-org/ChangeLog
new file mode 100644
index 000000000000..087b4746d213
--- /dev/null
+++ b/dev-java/htmlparser-org/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/htmlparser-org
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/htmlparser-org/ChangeLog,v 1.1 2014/07/11 17:54:09 ercpe Exp $
+
+*htmlparser-org-1.6 (11 Jul 2014)
+
+ 11 Jul 2014; Johann Schmitz <ercpe@gentoo.org> +htmlparser-org-1.6.ebuild,
+ +metadata.xml:
+ New ebuild for htmlparser. Note: this is a different one as dev-
+ java/htmlparser! (the one from htmlparser.org)
diff --git a/dev-java/htmlparser-org/Manifest b/dev-java/htmlparser-org/Manifest
new file mode 100644
index 000000000000..4766b919b38a
--- /dev/null
+++ b/dev-java/htmlparser-org/Manifest
@@ -0,0 +1,3 @@
+DIST htmlparser1_6_20060610.zip 4346070 SHA256 e4f1ff4be7501572fec5a17740c817b711a7dbf68f0ee97ec7f4921625981915 SHA512 f23d08d9330dc45133a227b8e1a80a515d01298027ccb0ca0863d1b4fab829f52950e3a3ccad057718fd57b05f8c0176786583af8625c70a38a940d3e878cd5f WHIRLPOOL 17376507ce22c08634455d60f3cf822e98dcd55cd8372508a78395d88ed93e64f0dad60427d9c85a2cf8cba6ed752a87f15962314e545fb46481196cb108f148
+EBUILD htmlparser-org-1.6.ebuild 1234 SHA256 d438315295fce65325e347c068d89020c569bb82d5daa1b1c24a61345ed52ec9 SHA512 056e96107d38227f025751fbcab64acaf1b2a07d9db088beb9b4d29d2e6fb75217571763e4ead659b434484266e7260d3457ab4d1b93bb8f67d0b2c4ee3d97b5 WHIRLPOOL 8347713ca5fd48af52b56e8d379868187cf068ebedc8c1b10766c5ca9ca1875da8c549228d8f66610558660aab5993580ba5ef039eda3880106ef3abe24bd3d7
+MISC metadata.xml 159 SHA256 1c070a909e96d9d193f84ad9304d196febbe33b60a724cc4b0d20634bb82255b SHA512 269cf19c37f2d136b926f546ec83ffdbc1374b2b6e26f8a31f21854143380386c31bfc7b2a0b9c47fb1f7c02607ddbdd43e517cb5c3270515e465c4dd7788843 WHIRLPOOL afb402fec04cddb3184b69eb8a8d36b404edd2870fd06c8f5e99be39c341ea6fa7542e0b680fac05529522ed33838e8279381d7a6de9dbc58fe55841229d8a51
diff --git a/dev-java/htmlparser-org/htmlparser-org-1.6.ebuild b/dev-java/htmlparser-org/htmlparser-org-1.6.ebuild
new file mode 100644
index 000000000000..6c295e6ce829
--- /dev/null
+++ b/dev-java/htmlparser-org/htmlparser-org-1.6.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/htmlparser-org/htmlparser-org-1.6.ebuild,v 1.1 2014/07/11 17:54:09 ercpe Exp $
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-pkg-simple
+
+MY_PN=${PN/-org/}
+MY_PV=$(replace_all_version_separators _)
+SRC_VER="20060610"
+
+DESCRIPTION="Java library used to parse HTML (from htmlparser.org)"
+HOMEPAGE="http://htmlparser.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}${MY_PV}_${SRC_VER}.zip"
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}${MY_PV}"
+
+DEPEND="app-arch/unzip
+ >=virtual/jdk-1.6
+ test? ( dev-java/junit:0 )"
+RDEPEND=">=virtual/jre-1.6"
+
+JAVA_SRC_DIR="src"
+
+java_prepare() {
+ unzip src.zip || die
+ rm build.xml lib/* || die
+ mkdir -p src-test/org/htmlparser/tests || die
+ mv src/org/htmlparser/tests/* src-test/org/htmlparser/tests || die
+}
+
+src_test() {
+ mkdir target/tests || die
+ testcp="$(java-pkg_getjars junit):target/tests:${PN}.jar:${JAVA_HOME}/lib/tools.jar"
+ ejavac -cp "${testcp}" -d target/tests $(find src-test/ -name "*.java")
+ tests=$(find target/tests -name "*Test.class" \
+ | sed -e 's/target\/tests\///g' -e "s/\.class//" -e "s/\//./g" \
+ | grep -vP '\$');
+ ejunit -cp "${testcp}" ${tests}
+}
diff --git a/dev-java/htmlparser-org/metadata.xml b/dev-java/htmlparser-org/metadata.xml
new file mode 100644
index 000000000000..604e0a4238bb
--- /dev/null
+++ b/dev-java/htmlparser-org/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>
+