diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-02-18 21:39:02 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-02-19 11:04:57 +0100 |
commit | eeba2d806730a0edf4ba46f455169ad30c3b9cdc (patch) | |
tree | 6944c4fd02bfa217ebeb9bf134882a4815f528fa /dev-java/jtidy | |
parent | sys-devel/gdb: Stabilize 11.2 sparc, #833660 (diff) | |
download | gentoo-eeba2d806730a0edf4ba46f455169ad30c3b9cdc.tar.gz gentoo-eeba2d806730a0edf4ba46f455169ad30c3b9cdc.tar.bz2 gentoo-eeba2d806730a0edf4ba46f455169ad30c3b9cdc.zip |
dev-java/jtidy: EAPI 8, min java 1.8:*
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/24260
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jtidy')
-rw-r--r-- | dev-java/jtidy/files/jtidy-1.0-build.xml.patch | 4 | ||||
-rw-r--r-- | dev-java/jtidy/jtidy-1.0-r1.ebuild | 54 |
2 files changed, 56 insertions, 2 deletions
diff --git a/dev-java/jtidy/files/jtidy-1.0-build.xml.patch b/dev-java/jtidy/files/jtidy-1.0-build.xml.patch index fea64813365d..ba5e04a7f976 100644 --- a/dev-java/jtidy/files/jtidy-1.0-build.xml.patch +++ b/dev-java/jtidy/files/jtidy-1.0-build.xml.patch @@ -1,5 +1,5 @@ ---- build.xml.orig 2015-12-01 21:10:36.689000000 +0000 -+++ build.xml 2015-12-01 21:11:05.642000000 +0000 +--- a/build.xml.orig 2015-12-01 21:10:36.689000000 +0000 ++++ b/build.xml 2015-12-01 21:11:05.642000000 +0000 @@ -9,11 +9,7 @@ <property name="srczip" value="jtidy-${version}-sources.zip"/> <property name="allzip" value="jtidy-${version}.zip"/> diff --git a/dev-java/jtidy/jtidy-1.0-r1.ebuild b/dev-java/jtidy/jtidy-1.0-r1.ebuild new file mode 100644 index 000000000000..e56159ea6020 --- /dev/null +++ b/dev-java/jtidy/jtidy-1.0-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_PV="r938" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Java port of HTML Tidy, an HTML syntax checker and pretty printer" +HOMEPAGE="http://jtidy.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/${PN}/JTidy/${MY_PV}/${PN}-${MY_PV}-sources.zip -> ${P}.zip" +LICENSE="HTML-Tidy W3C" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +CDEPEND="dev-java/ant-core:0" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.8:*" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.8:*" + +BDEPEND=" + app-arch/unzip" + +JAVA_ANT_ENCODING="UTF-8" +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_GENTOO_CLASSPATH="ant-core" +EANT_BUILD_TARGET="jar" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}"/"${P}-build.xml.patch" +) + +src_prepare() { + default +} + +src_install() { + java-pkg_newjar "target/${MY_P}.jar" + java-pkg_dolauncher "jtidy" --main org.w3c.tidy.Tidy + + use doc && java-pkg_dojavadoc target/javadoc/ + use source && java-pkg_dosrc src/main/java +} |