1 |
commit: 5ccc77bd20a8836b6ccd33124f192e202ac7e8ad |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Mon Aug 1 16:46:50 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 2 11:52:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ccc77bd |
7 |
|
8 |
dev-java/htmlcleaner: add 2.26 |
9 |
|
10 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/26697 |
12 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
13 |
|
14 |
dev-java/htmlcleaner/Manifest | 1 + |
15 |
dev-java/htmlcleaner/htmlcleaner-2.26.ebuild | 55 ++++++++++++++++++++++++++++ |
16 |
2 files changed, 56 insertions(+) |
17 |
|
18 |
diff --git a/dev-java/htmlcleaner/Manifest b/dev-java/htmlcleaner/Manifest |
19 |
index bf12edd4b46d..4352620f3de1 100644 |
20 |
--- a/dev-java/htmlcleaner/Manifest |
21 |
+++ b/dev-java/htmlcleaner/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST htmlcleaner-2.25-src.zip 414193 BLAKE2B e840b65665b23a6c55eda49a522994208b7178ddf924e60bdca9304c58df9bde343b31bbd4b7491db7bfd4fe0930283f9019d9213450618e0d50036563cced86 SHA512 fb49f0298b05008a727e7ba97a3444c6f8c31f65a9962e42bae63e1dab76fc7302f282daa45177daffcadbb73565685735f44b57107c62819bafa0db030c5ea3 |
24 |
+DIST htmlcleaner-2.26-src.zip 414195 BLAKE2B c73533054bf7a8a66a767e53cbafecca1f174cb3be16e116ddd0e025e627603e225323e9095ea40b38a06c661ebe9f2a9e1f53736bf74fd8a2e41d909381c4fb SHA512 df1f9ccc696d538289a0addd19f8d955a3bcb0da88640208c513b2f4f0c4a3ee516b459aa3aae25d36d6ec09c4082b96484df287fb422add2eb160072668af5a |
25 |
|
26 |
diff --git a/dev-java/htmlcleaner/htmlcleaner-2.26.ebuild b/dev-java/htmlcleaner/htmlcleaner-2.26.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..2bb65af8d069 |
29 |
--- /dev/null |
30 |
+++ b/dev-java/htmlcleaner/htmlcleaner-2.26.ebuild |
31 |
@@ -0,0 +1,55 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+JAVA_PKG_IUSE="doc source test" |
38 |
+MAVEN_ID="net.sourceforge.htmlcleaner:htmlcleaner:2.26" |
39 |
+JAVA_TESTING_FRAMEWORKS="junit-4" |
40 |
+ |
41 |
+inherit java-pkg-2 java-pkg-simple |
42 |
+ |
43 |
+DESCRIPTION="HTML parser written in Java that can be used as a tool, library or Ant task" |
44 |
+HOMEPAGE="http://htmlcleaner.sourceforge.net/" |
45 |
+SRC_URI="mirror://sourceforge/project/htmlcleaner/htmlcleaner/htmlcleaner%20v${PV}/htmlcleaner-${PV}-src.zip" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+ |
51 |
+CP_DEPEND="dev-java/jdom:2" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ ${CP_DEPEND} |
55 |
+ >=virtual/jre-1.8:* |
56 |
+" |
57 |
+ |
58 |
+DEPEND=" |
59 |
+ ${CP_DEPEND} |
60 |
+ dev-java/ant-core:0 |
61 |
+ >=virtual/jdk-1.8:* |
62 |
+ test? ( dev-java/junit:4 ) |
63 |
+" |
64 |
+ |
65 |
+BDEPEND="app-arch/unzip" |
66 |
+ |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}/${PN}-2.24-fix-tests.patch" |
69 |
+) |
70 |
+ |
71 |
+JAVA_CLASSPATH_EXTRA="ant-core" |
72 |
+JAVA_SRC_DIR="src/main/java" |
73 |
+JAVA_MAIN_CLASS="org.htmlcleaner.CommandLine" |
74 |
+JAVA_TEST_GENTOO_CLASSPATH="junit-4" |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default # https://bugs.gentoo.org/780585 |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ java-pkg-simple_src_install |
82 |
+ java-pkg_register-ant-task |
83 |
+ |
84 |
+ insinto "${JAVA_PKG_SHAREPATH}" |
85 |
+ newins example.xml default.xml |
86 |
+} |