diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/jtidy | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/jtidy')
-rw-r--r-- | dev-java/jtidy/Manifest | 4 | ||||
-rw-r--r-- | dev-java/jtidy/files/jtidy-1.0-build.xml.patch | 31 | ||||
-rw-r--r-- | dev-java/jtidy/jtidy-1.0.ebuild | 52 | ||||
-rw-r--r-- | dev-java/jtidy/metadata.xml | 11 |
4 files changed, 98 insertions, 0 deletions
diff --git a/dev-java/jtidy/Manifest b/dev-java/jtidy/Manifest new file mode 100644 index 000000000000..5a3877d4ccbf --- /dev/null +++ b/dev-java/jtidy/Manifest @@ -0,0 +1,4 @@ +AUX jtidy-1.0-build.xml.patch 994 BLAKE2B 502f0ee95fefbdc9e73f93bc551c029a8fdaf4436b4cc9ea5ae153931ce8915988f2d971eace574b5c4b57acd61957df3251530a24b17f23c2edfc076df48261 SHA512 62a3f995ab94d9759196ae48047d6de75146a82438c60e55e4e6fa27fea0c80685619e19224200462d54cc8c560e354cf1bf5953deddcebbe485c2b217912d30 +DIST jtidy-1.0.zip 240642 BLAKE2B 96e312f2b938f75124a966ad6ecbae39a6822a0d362e98265226409b6c407cfbd1cf1eac2adac522cb02174159392c25bab3abb18c6dce591a0d398cef367306 SHA512 be73dfd2f65ec53a3c1a9b9014a62011f58f5f337bbd2b3939c5f8f54c225fa7718717bf84348bc07a37411c20b1e82f300ba4fc865d7019ada6b1f8d081440a +EBUILD jtidy-1.0.ebuild 1041 BLAKE2B f08794ec51cb9effef5e426632e4096cb3f2f09ab41d9d858623794d849c212a72185593562dad437b5c517b35bc289f2f33d93daa14e67f3d4fc8b02fda6cfc SHA512 cb06626f07e65f7e58dca3e4629a1bfe5b9ac3cb8f720f1659c0f38e3f458d1a220ddcec5787507d5df809a880dba6d6826832ce7d0fa485642f413d03851422 +MISC metadata.xml 311 BLAKE2B 0d8fbf35c072fc713578fa67ffa7484cc54ec1f20ea3fb9acf5d3a9067779c7682bd0280f3c6eee33b3b5591d34235ada0a6b9a3c007c9662e7361381c1eebe3 SHA512 1852a1e51bb36399ee3211139e6e6982bbcf87805a92d6b1d677a07aefcc86f6f4fec05c91e4dc3b83cc28db1c8c7001c121f1004683b16b9be72abffdc08368 diff --git a/dev-java/jtidy/files/jtidy-1.0-build.xml.patch b/dev-java/jtidy/files/jtidy-1.0-build.xml.patch new file mode 100644 index 000000000000..fea64813365d --- /dev/null +++ b/dev-java/jtidy/files/jtidy-1.0-build.xml.patch @@ -0,0 +1,31 @@ +--- build.xml.orig 2015-12-01 21:10:36.689000000 +0000 ++++ 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"/> + +- <target name="clean"> +- <delete dir="${target}"/> +- </target> +- +- <target name="jar" depends="clean"> ++ <target name="jar"> + <mkdir dir="${target}"/> + <mkdir dir="${bin}"/> + <javac srcdir="${src}" destdir="${bin}" source="1.4" target="1.4"/> +@@ -30,13 +26,13 @@ + </jar> + </target> + +- <target name="javadoc" depends="clean"> ++ <target name="javadoc"> + <javadoc sourcepath="${src}" destdir="${target}/${doc}" windowtitle=" JTidy ${version} " doctitle="JTidy ${version} API documentation"> + <tag name="todo" scope="all" description="To do:"/> + </javadoc> + </target> + +- <target name="src" depends="clean"> ++ <target name="src"> + <zip destfile="${target}/${srczip}"> + <fileset dir="."> + <include name="${src}/**"/> diff --git a/dev-java/jtidy/jtidy-1.0.ebuild b/dev-java/jtidy/jtidy-1.0.ebuild new file mode 100644 index 000000000000..f91781cedec6 --- /dev/null +++ b/dev-java/jtidy/jtidy-1.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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/${PN}/${PN}-${MY_PV}-sources.zip -> ${P}.zip" +LICENSE="HTML-Tidy W3C" +SLOT="0" +KEYWORDS="amd64 ppc64 x86" + +CDEPEND="dev-java/ant-core:0" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6 + source? ( app-arch/zip )" + +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" +) + +java_prepare() { + epatch "${PATCHES[@]}" +} + +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 +} diff --git a/dev-java/jtidy/metadata.xml b/dev-java/jtidy/metadata.xml new file mode 100644 index 000000000000..48c119643336 --- /dev/null +++ b/dev-java/jtidy/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">jtidy</remote-id> + </upstream> +</pkgmetadata> |