diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-02-23 20:15:28 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-02-23 20:15:28 +0000 |
commit | d0f006c5a595a34916d5dc9035c607572d439d72 (patch) | |
tree | d0925e1bd87dad4613276d9da602b31e13097d79 /dev-java/htmlparser | |
parent | Initial version of jchardet: Java port of Mozilla's Automatic Charset Detecti... (diff) | |
download | gentoo-2-d0f006c5a595a34916d5dc9035c607572d439d72.tar.gz gentoo-2-d0f006c5a595a34916d5dc9035c607572d439d72.tar.bz2 gentoo-2-d0f006c5a595a34916d5dc9035c607572d439d72.zip |
Initial version of htmlparser: Implementation of the HTML5 parsing algorithm in Java.
(Portage version: 2.1.10.47/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/htmlparser')
-rw-r--r-- | dev-java/htmlparser/ChangeLog | 11 | ||||
-rw-r--r-- | dev-java/htmlparser/files/build.xml | 19 | ||||
-rw-r--r-- | dev-java/htmlparser/htmlparser-1.3.1.ebuild | 48 | ||||
-rw-r--r-- | dev-java/htmlparser/metadata.xml | 8 |
4 files changed, 86 insertions, 0 deletions
diff --git a/dev-java/htmlparser/ChangeLog b/dev-java/htmlparser/ChangeLog new file mode 100644 index 000000000000..b4dd67afc142 --- /dev/null +++ b/dev-java/htmlparser/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-java/htmlparser +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/htmlparser/ChangeLog,v 1.7 2012/02/23 20:15:28 nelchael Exp $ + +*htmlparser-1.3.1 (23 Feb 2012) + + 23 Feb 2012; Krzysztof Pawlik <nelchael@gentoo.org> +htmlparser-1.3.1.ebuild, + +files/build.xml, +metadata.xml: + Initial version of htmlparser: Implementation of the HTML5 parsing algorithm + in Java. + 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.3.1.ebuild b/dev-java/htmlparser/htmlparser-1.3.1.ebuild new file mode 100644 index 000000000000..8d85e7e4c961 --- /dev/null +++ b/dev-java/htmlparser/htmlparser-1.3.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/htmlparser/htmlparser-1.3.1.ebuild,v 1.1 2012/02/23 20:15:28 nelchael Exp $ + +EAPI=4 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Implementation of the HTML5 parsing algorithm in Java" +HOMEPAGE="http://about.validator.nu/htmlparser/" +SRC_URI="http://about.validator.nu/${PN}/${P}.zip" + +LICENSE="W3C" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +COMMON_DEP="dev-java/icu4j:4 + dev-java/xom + dev-java/jchardet" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${COMMON_DEP}" + +src_prepare() { + rm -f *.jar + mkdir -p "${S}/build" || die "mkdir failed" + mkdir -p "${S}/lib" || die "mkdir failed" + + cp "${FILESDIR}/build.xml" "${S}" || die "cp failed" + + java-pkg_jarfrom --into lib/ icu4j-4 + java-pkg_jarfrom --into lib/ xom + java-pkg_jarfrom --into lib/ jchardet +} + +src_install() { + java-pkg_dojar htmlparser.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..ed8c1e2e7469 --- /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> + <herd>java</herd> + <maintainer> + <email>nelchael@gentoo.org</email> + </maintainer> +</pkgmetadata> |