diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-02-23 20:11:47 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-02-23 20:11:47 +0000 |
commit | 813a5b6dd66e001984db68cd55c06276b5da11da (patch) | |
tree | 084217861342349e00fe63c3c04f9966ee5c82b8 /dev-java/jchardet | |
parent | [bump] dev-perl/B-Hooks-EndOfScope-0.110.0 (diff) | |
download | gentoo-2-813a5b6dd66e001984db68cd55c06276b5da11da.tar.gz gentoo-2-813a5b6dd66e001984db68cd55c06276b5da11da.tar.bz2 gentoo-2-813a5b6dd66e001984db68cd55c06276b5da11da.zip |
Initial version of jchardet: Java port of Mozilla's Automatic Charset Detection algorithm.
(Portage version: 2.1.10.47/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jchardet')
-rw-r--r-- | dev-java/jchardet/ChangeLog | 11 | ||||
-rw-r--r-- | dev-java/jchardet/files/build.xml | 19 | ||||
-rw-r--r-- | dev-java/jchardet/jchardet-1.1.ebuild | 38 | ||||
-rw-r--r-- | dev-java/jchardet/metadata.xml | 8 |
4 files changed, 76 insertions, 0 deletions
diff --git a/dev-java/jchardet/ChangeLog b/dev-java/jchardet/ChangeLog new file mode 100644 index 000000000000..dbed7bf7d8a0 --- /dev/null +++ b/dev-java/jchardet/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-java/jchardet +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jchardet/ChangeLog,v 1.1 2012/02/23 20:11:47 nelchael Exp $ + +*jchardet-1.1 (23 Feb 2012) + + 23 Feb 2012; Krzysztof Pawlik <nelchael@gentoo.org> +jchardet-1.1.ebuild, + +files/build.xml, +metadata.xml: + Initial version of jchardet: Java port of Mozilla's Automatic Charset + Detection algorithm. + diff --git a/dev-java/jchardet/files/build.xml b/dev-java/jchardet/files/build.xml new file mode 100644 index 000000000000..ad0d4b0c1d09 --- /dev/null +++ b/dev-java/jchardet/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/jchardet/jchardet-1.1.ebuild b/dev-java/jchardet/jchardet-1.1.ebuild new file mode 100644 index 000000000000..aaf6f22838ab --- /dev/null +++ b/dev-java/jchardet/jchardet-1.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jchardet/jchardet-1.1.ebuild,v 1.1 2012/02/23 20:11:47 nelchael Exp $ + +EAPI=4 + +JAVA_PKG_IUSE="source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java port of Mozilla's Automatic Charset Detection algorithm" +HOMEPAGE="http://jchardet.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}.zip" + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND=">=virtual/jre-1.5" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip" + +EANT_BUILD_TARGET="dist" + +src_prepare() { + rm -f dist/lib/chardet.jar + + mkdir -p src/org/mozilla/intl/chardet/ || die + mv src/*.java src/org/mozilla/intl/chardet || die +} + +src_install() { + java-pkg_dojar dist/lib/chardet.jar + + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/jchardet/metadata.xml b/dev-java/jchardet/metadata.xml new file mode 100644 index 000000000000..ed8c1e2e7469 --- /dev/null +++ b/dev-java/jchardet/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> |