diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/jtidy/jtidy-1.0.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/jtidy/jtidy-1.0.ebuild')
-rw-r--r-- | dev-java/jtidy/jtidy-1.0.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
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 +} |