summaryrefslogtreecommitdiff
path: root/dev-java/jtidy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/jtidy
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/jtidy')
-rw-r--r--dev-java/jtidy/Manifest6
-rw-r--r--dev-java/jtidy/files/jtidy-1.0-build.xml.patch31
-rw-r--r--dev-java/jtidy/jtidy-1.0.ebuild52
-rw-r--r--dev-java/jtidy/metadata.xml11
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-java/jtidy/Manifest b/dev-java/jtidy/Manifest
new file mode 100644
index 000000000000..938bd7feaa2d
--- /dev/null
+++ b/dev-java/jtidy/Manifest
@@ -0,0 +1,6 @@
+AUX jtidy-1.0-build.xml.patch 994 SHA256 2e2fc28e6d5a6533cd65ce2c2cf0a3b24aa4606f471c0f8e04223af2765c8d34 SHA512 62a3f995ab94d9759196ae48047d6de75146a82438c60e55e4e6fa27fea0c80685619e19224200462d54cc8c560e354cf1bf5953deddcebbe485c2b217912d30 WHIRLPOOL 1546256b1e0e668be727b5e285b4ff4ab9e1c47ec0c4b645cf4d946109a6314afcf5f5d9112f8f5b00ca923e2bfe72c508269958826be2eda290aedb2fe4dddd
+DIST jtidy-1.0.zip 240642 SHA256 50d7d93aeb9b53f4fe3e46a685c334482f2e15da7f81c93b53aec128f1fd7aa6 SHA512 be73dfd2f65ec53a3c1a9b9014a62011f58f5f337bbd2b3939c5f8f54c225fa7718717bf84348bc07a37411c20b1e82f300ba4fc865d7019ada6b1f8d081440a WHIRLPOOL 24cd2b55bb7713c7ebdee9bab7b1ad730a13f3bc825347a6fa6e7d137770891a985811102c494155b56c15726ccbb105a9421ce720699f9ba796ab4daf1c0f24
+EBUILD jtidy-1.0.ebuild 1041 SHA256 b30262dda5239d0b8900aaeb99127c43543cd8b2700e914a0929a62c39dfecfc SHA512 cb06626f07e65f7e58dca3e4629a1bfe5b9ac3cb8f720f1659c0f38e3f458d1a220ddcec5787507d5df809a880dba6d6826832ce7d0fa485642f413d03851422 WHIRLPOOL 34d380c0cb20148053015864596a93e705400db14eeb359ecb88ca17ced92e3dab2ab2a203f3eeae0f6ab09d1379601a0148edf91ea54f32110f250326e8c757
+MISC ChangeLog 3422 SHA256 090eacee949d74728d2c4f4900c4f4fe650663e6c0c9719e5e844d732b7de575 SHA512 5f93febf9a353896cb09ae76c40f252acb70f38536e5c6d4c8b3cbe396a216915917aee0e4e3b0d61e29c4b249f786d42ba154158fbab0040e7feaf19987dec6 WHIRLPOOL 2d2f6ce074d2324230c2bcb101904f75757b41a5cf72b88bdebb9a3ea5e02ae0dbb79b35912d9db8e1c43ae093257b0fc7b8d7991f45d4f5c75f35207b625c70
+MISC ChangeLog-2015 2798 SHA256 fd4e9a0a066476384cebdd0b65a31256bc1471a0d74ce1443d271edd1f8f6b0f SHA512 2ae7ac5d20c0f329046c1832e4e50770f8d75fbbce056c97b10b83e8d4198de24d0577a16cce2678ec14c77ab57a7c208680b40d7953081d98d6e25024209b59 WHIRLPOOL 446d4d30d0a72222fa85e669a6eaeeb9733a514567d67320ee28ca1a48ff7ea3f94b024f3f67ae061d8fb925701f0f09b9fdfc42082d3fac3fbcf42814c1b420
+MISC metadata.xml 311 SHA256 4ebc0f880c4870290564e11a37bfe1913a167fd6feaa0c132dbd7aee91339b94 SHA512 1852a1e51bb36399ee3211139e6e6982bbcf87805a92d6b1d677a07aefcc86f6f4fec05c91e4dc3b83cc28db1c8c7001c121f1004683b16b9be72abffdc08368 WHIRLPOOL adecb46e4b1bd3ca45658d8a45e82541f162503e249de7411c4a1c040514ae43b8e70d0cda3b1575eccd5386748f45b797f8ec4ab94351652bf0352d1fd34f4d
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>