diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-12-01 21:19:28 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-12-01 21:20:13 +0000 |
commit | 693cbea1d2b23bc89f2c2048372bfa2b1b410d78 (patch) | |
tree | c4dfa43769c20188250146acadaca4306f0fc976 /dev-java/jtidy | |
parent | dev-java/jigsaw: Clean up old. (diff) | |
download | gentoo-693cbea1d2b23bc89f2c2048372bfa2b1b410d78.tar.gz gentoo-693cbea1d2b23bc89f2c2048372bfa2b1b410d78.tar.bz2 gentoo-693cbea1d2b23bc89f2c2048372bfa2b1b410d78.zip |
dev-java/jtidy: EAPI 5 && Version bump.
Package-Manager: portage-2.2.20.1
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/jtidy')
-rw-r--r-- | dev-java/jtidy/Manifest | 1 | ||||
-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 |
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-java/jtidy/Manifest b/dev-java/jtidy/Manifest index 5c5d3ceb49e9..9b3860f69e0f 100644 --- a/dev-java/jtidy/Manifest +++ b/dev-java/jtidy/Manifest @@ -1 +1,2 @@ DIST jtidy-04aug2000r7-dev.zip 718750 SHA256 18e9fc9bcf2d573a27a466ceee2b75772c6dd830af8e83cadb23df9d772583c6 SHA512 3e8baedd992797d7894b2b47f5e214b55189b34081d276563a152ef8603a22188c64d4a363279d1a400cafefdb24018467249bc67283c547f27da44c77cb261c WHIRLPOOL f90403fb86b9860e355710ce0b638a16979487f6aedb9cc1ee4f23d3d0bddc65689cdd989dcac2391f141bca15429f8aad24228a25dbf50df76802ec6118961c +DIST jtidy-1.0.zip 240642 SHA256 50d7d93aeb9b53f4fe3e46a685c334482f2e15da7f81c93b53aec128f1fd7aa6 SHA512 be73dfd2f65ec53a3c1a9b9014a62011f58f5f337bbd2b3939c5f8f54c225fa7718717bf84348bc07a37411c20b1e82f300ba4fc865d7019ada6b1f8d081440a WHIRLPOOL 24cd2b55bb7713c7ebdee9bab7b1ad730a13f3bc825347a6fa6e7d137770891a985811102c494155b56c15726ccbb105a9421ce720699f9ba796ab4daf1c0f24 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..089d46d9c9b1 --- /dev/null +++ b/dev-java/jtidy/jtidy-1.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_PV="r938" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Tidy is a Java port of HTML Tidy , a 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 ~ppc ~ppc64 ~x86" +IUSE="" + +CDEPEND="dev-java/ant-core:0" + +DEPEND=" + ${CDEPEND} + app-arch/unzip + >=virtual/jdk-1.6" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +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 +} |