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/nekohtml | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/nekohtml')
-rw-r--r-- | dev-java/nekohtml/Manifest | 4 | ||||
-rw-r--r-- | dev-java/nekohtml/files/nekohtml-1.9.18-remove-obsolete-xerces-bridges.patch | 12 | ||||
-rw-r--r-- | dev-java/nekohtml/metadata.xml | 11 | ||||
-rw-r--r-- | dev-java/nekohtml/nekohtml-1.9.18-r1.ebuild | 57 |
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-java/nekohtml/Manifest b/dev-java/nekohtml/Manifest new file mode 100644 index 000000000000..32a1163d7a55 --- /dev/null +++ b/dev-java/nekohtml/Manifest @@ -0,0 +1,4 @@ +AUX nekohtml-1.9.18-remove-obsolete-xerces-bridges.patch 533 BLAKE2B 891239b5b4586ccf542394da265036d29b8e4850258e697f6289f42e1bf2aeb924be92f912f064431165632e5fd8c7f027d36b7553320b4591f478fbe5138fa1 SHA512 21c077f13c5157928f6cdc1be45f729e05b42d5b33cae7394d0d8c1167045f27e8baab89a5aefe33b907d1c3e2146030ee54a48da6d1a3bdde6c75f729dc7937 +DIST nekohtml-1.9.18.tar.gz 10471968 BLAKE2B b033158c2ae6742c615d6bcc58ef05eb18f2395cab5052de20a485adb573b924202ed04dfbcf39bfefb4eec524aa0d5d9216fdd151c4a8722b5277c2808cc878 SHA512 f7321ad853eb63e327ef8bada52892caf58372f11136df72f46d8a7cd6918492cc66243002955525ac05fd669b3c4389e9067421f749f99f928629cc7f88e0eb +EBUILD nekohtml-1.9.18-r1.ebuild 1226 BLAKE2B 7de840c88baa799596cb3fae642263bbb65be17eb28f8ac5ac7eabe0de5c7646826235bd414196fa4653827efccf1a32c7fa19384fc69192fa54c20372abc0e9 SHA512 650cebaba5acba5ce87885c3589fe9e3f8efe4ca21e5aa96ced484667399643e6609e155cfb0adbbb59128b41cafbfd6e912d1aed6f7f56dc6d7b73d609dffe5 +MISC metadata.xml 314 BLAKE2B 073d261d268fe26737f695f2c376829add4b29affddea58a4ad61764facd3bcf32eb5f5f7a80b26f989c8722da1cff4247672b2fecf535b59afd9e21235b1b55 SHA512 a8b454129fe31dd7b221ea1094a331ad78feb7cbf558e256fad7a49a28c7ceb99874504c4430c1fad04e854b25a5e1005005f3c2320eafe985ee934c758351f6 diff --git a/dev-java/nekohtml/files/nekohtml-1.9.18-remove-obsolete-xerces-bridges.patch b/dev-java/nekohtml/files/nekohtml-1.9.18-remove-obsolete-xerces-bridges.patch new file mode 100644 index 000000000000..2f4a6c655cac --- /dev/null +++ b/dev-java/nekohtml/files/nekohtml-1.9.18-remove-obsolete-xerces-bridges.patch @@ -0,0 +1,12 @@ +diff -Nru /tmp/nekohtml-1.9.16.orig/build.xml ./build.xml +--- /tmp/nekohtml-1.9.16.orig/build.xml 2012-07-31 18:12:48.559950104 +0300 ++++ ./build.xml 2012-07-31 18:12:53.887883123 +0300 +@@ -103,8 +103,6 @@ + unless="compile.skip"> + <mkdir dir="${build.classes.dir}"/> + +- <compileWith xercesVersion="2.0.2" bridge="2_0"/> +- <compileWith xercesVersion="2.1.0" bridge="2_1"/> + <compileWith xercesVersion="2.2.1" bridge="2_2"/> + <compileWith xercesVersion="2.3.0" bridge="2_3"/> + <compileWith xercesVersion="2.8.1" bridge="2_3"/> diff --git a/dev-java/nekohtml/metadata.xml b/dev-java/nekohtml/metadata.xml new file mode 100644 index 000000000000..7b1fb1901602 --- /dev/null +++ b/dev-java/nekohtml/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">nekohtml</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/nekohtml/nekohtml-1.9.18-r1.ebuild b/dev-java/nekohtml/nekohtml-1.9.18-r1.ebuild new file mode 100644 index 000000000000..fd1401c96ca6 --- /dev/null +++ b/dev-java/nekohtml/nekohtml-1.9.18-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source test" + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION="A simple HTML scanner and tag balancer using standard XML interfaces" + +HOMEPAGE="http://nekohtml.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="Apache-2.0" + +SLOT="0" +KEYWORDS="amd64 x86" + +COMMON_DEP=">=dev-java/xerces-2.7" +DEPEND=">=virtual/jdk-1.4 + test? ( + dev-java/junit:0 + dev-java/ant-junit:0 + ) + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" + +JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} taskdef" +JAVA_ANT_REWRITE_CLASSPATH="yes" + +EANT_GENTOO_CLASSPATH="xerces-2" +EANT_TEST_GENTOO_CLASSPATH="ant-junit,junit,xerces-2" + +# Do not generate docs, use bundled. +EANT_DOC_TARGET="" + +java_prepare() { + find . -iname '*.jar' -delete || die + epatch "${FILESDIR}"/${P}-remove-obsolete-xerces-bridges.patch +} + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar build/lib/${PN}.jar + + if use doc; then + java-pkg_dojavadoc doc/javadoc + java-pkg_dohtml -r doc/* + fi + + use source && java-pkg_dosrc src/org + use examples && java-pkg_doexamples src/sample +} |