Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jtidy/files/, dev-java/jtidy/
Date: Sat, 19 Feb 2022 10:05:14
Message-Id: 1645265097.eeba2d806730a0edf4ba46f455169ad30c3b9cdc.fordfrog@gentoo
1 commit: eeba2d806730a0edf4ba46f455169ad30c3b9cdc
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Fri Feb 18 20:39:02 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 19 10:04:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeba2d80
7
8 dev-java/jtidy: EAPI 8, min java 1.8:*
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
12 Closes: https://github.com/gentoo/gentoo/pull/24260
13 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
14
15 dev-java/jtidy/files/jtidy-1.0-build.xml.patch | 4 +-
16 dev-java/jtidy/jtidy-1.0-r1.ebuild | 54 ++++++++++++++++++++++++++
17 2 files changed, 56 insertions(+), 2 deletions(-)
18
19 diff --git a/dev-java/jtidy/files/jtidy-1.0-build.xml.patch b/dev-java/jtidy/files/jtidy-1.0-build.xml.patch
20 index fea64813365d..ba5e04a7f976 100644
21 --- a/dev-java/jtidy/files/jtidy-1.0-build.xml.patch
22 +++ b/dev-java/jtidy/files/jtidy-1.0-build.xml.patch
23 @@ -1,5 +1,5 @@
24 ---- build.xml.orig 2015-12-01 21:10:36.689000000 +0000
25 -+++ build.xml 2015-12-01 21:11:05.642000000 +0000
26 +--- a/build.xml.orig 2015-12-01 21:10:36.689000000 +0000
27 ++++ b/build.xml 2015-12-01 21:11:05.642000000 +0000
28 @@ -9,11 +9,7 @@
29 <property name="srczip" value="jtidy-${version}-sources.zip"/>
30 <property name="allzip" value="jtidy-${version}.zip"/>
31
32 diff --git a/dev-java/jtidy/jtidy-1.0-r1.ebuild b/dev-java/jtidy/jtidy-1.0-r1.ebuild
33 new file mode 100644
34 index 000000000000..e56159ea6020
35 --- /dev/null
36 +++ b/dev-java/jtidy/jtidy-1.0-r1.ebuild
37 @@ -0,0 +1,54 @@
38 +# Copyright 1999-2022 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +JAVA_PKG_IUSE="doc source"
44 +
45 +inherit java-pkg-2 java-ant-2
46 +
47 +MY_PV="r938"
48 +MY_P="${PN}-${MY_PV}"
49 +
50 +DESCRIPTION="Java port of HTML Tidy, an HTML syntax checker and pretty printer"
51 +HOMEPAGE="http://jtidy.sourceforge.net/"
52 +SRC_URI="mirror://sourceforge/project/${PN}/JTidy/${MY_PV}/${PN}-${MY_PV}-sources.zip -> ${P}.zip"
53 +LICENSE="HTML-Tidy W3C"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~ppc64 ~x86"
56 +
57 +CDEPEND="dev-java/ant-core:0"
58 +
59 +DEPEND="
60 + ${CDEPEND}
61 + >=virtual/jdk-1.8:*"
62 +
63 +RDEPEND="
64 + ${CDEPEND}
65 + >=virtual/jre-1.8:*"
66 +
67 +BDEPEND="
68 + app-arch/unzip"
69 +
70 +JAVA_ANT_ENCODING="UTF-8"
71 +JAVA_ANT_REWRITE_CLASSPATH="yes"
72 +EANT_GENTOO_CLASSPATH="ant-core"
73 +EANT_BUILD_TARGET="jar"
74 +
75 +S="${WORKDIR}"
76 +
77 +PATCHES=(
78 + "${FILESDIR}"/"${P}-build.xml.patch"
79 +)
80 +
81 +src_prepare() {
82 + default
83 +}
84 +
85 +src_install() {
86 + java-pkg_newjar "target/${MY_P}.jar"
87 + java-pkg_dolauncher "jtidy" --main org.w3c.tidy.Tidy
88 +
89 + use doc && java-pkg_dojavadoc target/javadoc/
90 + use source && java-pkg_dosrc src/main/java
91 +}