From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/htmlcleaner/
Date: Mon, 17 Aug 2015 22:29:00 +0000 (UTC) [thread overview]
Message-ID: <1439850519.6357034e4caf72d9b29c3666a94a31f57bbddb54.chewi@gentoo> (raw)
commit: 6357034e4caf72d9b29c3666a94a31f57bbddb54
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 17 22:28:39 2015 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 22:28:39 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6357034e
dev-java/htmlcleaner: Imported and bumped from java-overlay
Closes bug #369977.
Package-Manager: portage-2.2.20.1
dev-java/htmlcleaner/Manifest | 1 +
dev-java/htmlcleaner/htmlcleaner-2.13.ebuild | 64 ++++++++++++++++++++++++++++
dev-java/htmlcleaner/metadata.xml | 6 +++
3 files changed, 71 insertions(+)
diff --git a/dev-java/htmlcleaner/Manifest b/dev-java/htmlcleaner/Manifest
new file mode 100644
index 0000000..972d136
--- /dev/null
+++ b/dev-java/htmlcleaner/Manifest
@@ -0,0 +1 @@
+DIST htmlcleaner-2.13-src.zip 346998 SHA256 e51daa50eb65b5a92467bf794a6f82b667fe7ca1d1d58ba046ae234e45d9c3a0 SHA512 bf9cc014688ebb20b0bafba82fc710f25c1db8c173dd3e9f742c31c64f127c3c89b29b151e64a3368b04d278733cce8828831f297834ca9b872a60951e0a2d47 WHIRLPOOL 2b2792607e2c4f5f3dc8d2b7d7035c3f762ac1355724811b8a743ad2a0cd0f6fecf5392be8c58632b697a8529b55f60721dc63128c647aad7faa0e191c9056ce
diff --git a/dev-java/htmlcleaner/htmlcleaner-2.13.ebuild b/dev-java/htmlcleaner/htmlcleaner-2.13.ebuild
new file mode 100644
index 0000000..fa953f2
--- /dev/null
+++ b/dev-java/htmlcleaner/htmlcleaner-2.13.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="HTML parser written in Java that can be used as a tool, library or Ant task"
+HOMEPAGE="http://htmlcleaner.sourceforge.net/"
+SRC_URI="mirror://sourceforge/htmlcleaner/files/${P}-src.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+CDEPEND="dev-java/jdom:2"
+
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5
+ app-arch/unzip
+ dev-java/ant-core:0
+ test? ( dev-java/junit:4 )"
+
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.5"
+
+JAVA_SRC_DIR="src/main/java"
+JAVA_GENTOO_CLASSPATH="jdom-2"
+
+src_prepare() {
+ # Don't require default.xml to be in the current directory.
+ sed -i "s:\"default\.xml\":\"${JAVA_PKG_SHAREPATH}/default.xml\":g" \
+ src/main/java/org/htmlcleaner/ConfigFileTagProvider.java || die
+}
+
+src_configure() {
+ JAVA_CLASSPATH_EXTRA=$(java-pkg_getjars --build-only ant-core)
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ java-pkg_register-ant-task
+ java-pkg_dolauncher ${PN} --main org.${PN}.CommandLine
+
+ insinto "${JAVA_PKG_SHAREPATH}"
+ newins example.xml default.xml
+}
+
+src_test() {
+ local DIR="src/test/java"
+ local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})"
+
+ local TESTS=$(find "${DIR}" -name "*Test.java" ! -name "Abstract*")
+ TESTS="${TESTS//src\/test\/java\/}"
+ TESTS="${TESTS//.java}"
+ TESTS="${TESTS//\//.}"
+
+ ejavac -classpath "${CP}" -d "${DIR}" $(find "${DIR}" -name "*.java")
+ ejunit4 -classpath "${CP}" ${TESTS}
+}
diff --git a/dev-java/htmlcleaner/metadata.xml b/dev-java/htmlcleaner/metadata.xml
new file mode 100644
index 0000000..580cafc
--- /dev/null
+++ b/dev-java/htmlcleaner/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>
+ <longdescription>HtmlCleaner is an open source HTML parser written in Java. HTML found on the Web is usually dirty, ill-formed and unsuitable for further processing. For any serious consumption of such documents, it is necessary to first clean up the mess and bring some order to the tags, attributes and ordinary text. For any given HTML document, HtmlCleaner reorders individual elements and produces well-formed XML. By default, it follows similar rules that the most of web browsers use in order to create the Document Object Model. However, you can provide custom tag and rule sets for tag filtering and balancing.</longdescription>
+</pkgmetadata>
next reply other threads:[~2015-08-17 22:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 22:29 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-11-01 20:50 [gentoo-commits] repo/gentoo:master commit in: dev-java/htmlcleaner/ James Le Cuirot
2016-02-16 16:55 Patrice Clement
2021-04-30 13:51 Miroslav Šulc
2021-04-30 13:51 Miroslav Šulc
2021-04-30 13:51 Miroslav Šulc
2021-10-05 7:25 Miroslav Šulc
2021-10-25 11:27 Miroslav Šulc
2021-10-27 6:35 Agostino Sarubbo
2021-10-27 6:37 Agostino Sarubbo
2022-08-02 11:52 Florian Schmaus
2022-09-01 7:55 Jakov Smolić
2022-09-01 7:55 Jakov Smolić
2022-09-02 4:22 Miroslav Šulc
2023-11-25 8:46 Miroslav Šulc
2023-12-25 15:18 Sam James
2023-12-25 19:17 Arthur Zamarin
2024-03-13 11:09 Miroslav Šulc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439850519.6357034e4caf72d9b29c3666a94a31f57bbddb54.chewi@gentoo \
--to=chewi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox