summaryrefslogtreecommitdiff
path: root/dev-java/htmlparser
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/htmlparser
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/htmlparser')
-rw-r--r--dev-java/htmlparser/Manifest4
-rw-r--r--dev-java/htmlparser/files/build.xml19
-rw-r--r--dev-java/htmlparser/htmlparser-1.4-r1.ebuild46
-rw-r--r--dev-java/htmlparser/metadata.xml8
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-java/htmlparser/Manifest b/dev-java/htmlparser/Manifest
new file mode 100644
index 000000000000..218685411d01
--- /dev/null
+++ b/dev-java/htmlparser/Manifest
@@ -0,0 +1,4 @@
+AUX build.xml 559 BLAKE2B 55a8c70343f90c427568ecb20af3692a9370f8f2d183f6a50b9da428baa3b0ca7590380854ec7b12cd732c08fb7eb458375a20f84498dda969e3915c0313fe39 SHA512 87abca9840918f40261f87f7c157d23fabedb8141c80a097efb874e986bc6da00b319412cfadd41ed781f1d0d4b13259152347eb6d084c73c4fc867e830af65a
+DIST htmlparser-1.4.zip 1425388 BLAKE2B 6987240e5207276935f6c3dbe5dc6e69df683448d9587397913a75c2814efa88afb3cb890a40ac404fefb2be07dc5a0787710438b8d70486486e99f2eabd9cc1 SHA512 eb0587c808b287bbb18acbba11e8efe5bd0dededd96f6bf34ef59b92144227cf8368bf76474a2c1d87a5d6b635a63057faa9d18e2a1a2d7dfeacbfaa64e57700
+EBUILD htmlparser-1.4-r1.ebuild 886 BLAKE2B a9c0aafadb16ae73d416b8a2efb7cb29154dfab6c0ee7f73db61762bf3d1fcfc82a25dd456557b29c796252106747a1279f8f068ff7e6b7e94afe0baceb81ef5 SHA512 aa6f329a85cc7d0ea60417902a41e9f868f07d5bafd1910ac8aa304d41e44852c250f5ccb7792a5c45293c0f023c0cb3ec39806437866d01a8cb27f7f46db5d6
+MISC metadata.xml 236 BLAKE2B 5a64c4404c26415501f50132968e687d4f1b852738cb0e1a5aef8cc4de9e4ea623066f46068fce3d80514ff122d85304e3fd12282c4b1513a4084523ef8bef07 SHA512 1755c2590e59060f697294c5ad125b83f2d50e05a71f7091b7de75953941914cd2db3a893bd6154a2c90fa4aff5e313e75e3e174dbba1edd5c112787da5be253
diff --git a/dev-java/htmlparser/files/build.xml b/dev-java/htmlparser/files/build.xml
new file mode 100644
index 000000000000..ad0d4b0c1d09
--- /dev/null
+++ b/dev-java/htmlparser/files/build.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<project name="htmlparser" default="jar">
+ <path id="build.classpath">
+ <fileset dir="lib/">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ <target name="compile">
+ <mkdir dir="build"/>
+ <javac srcdir="src" destdir="build" classpathref="build.classpath"/>
+ </target>
+ <target name="jar" depends="compile">
+ <jar destfile="htmlparser.jar" basedir="build"/>
+ </target>
+ <target name="javadoc" depends="compile">
+ <mkdir dir="docs"/>
+ <javadoc sourcepath="src" destdir="docs" classpathref="build.classpath"/>
+ </target>
+</project>
diff --git a/dev-java/htmlparser/htmlparser-1.4-r1.ebuild b/dev-java/htmlparser/htmlparser-1.4-r1.ebuild
new file mode 100644
index 000000000000..5696277b333d
--- /dev/null
+++ b/dev-java/htmlparser/htmlparser-1.4-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 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
+
+DESCRIPTION="Implementation of the HTML5 parsing algorithm in Java"
+HOMEPAGE="https://about.validator.nu/htmlparser/"
+SRC_URI="https://about.validator.nu/${PN}/${P}.zip"
+
+LICENSE="W3C"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+CDEPEND="
+ dev-java/icu4j:52
+ dev-java/jchardet:0
+ dev-java/xom:0"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ app-arch/unzip
+ >=virtual/jdk-1.6"
+
+java_prepare() {
+ java-pkg_clean
+ mkdir -p build lib || die
+ cp "${FILESDIR}/build.xml" build.xml || die "cp failed"
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_GENTOO_CLASSPATH="icu4j-52,xom,jchardet"
+
+src_install() {
+ java-pkg_dojar "${PN}.jar"
+ use source && java-pkg_dosrc src/*
+ use doc && java-pkg_dojavadoc docs
+}
diff --git a/dev-java/htmlparser/metadata.xml b/dev-java/htmlparser/metadata.xml
new file mode 100644
index 000000000000..952a4b9b605c
--- /dev/null
+++ b/dev-java/htmlparser/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>