aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-misc/opennlp-maxent')
-rw-r--r--sci-misc/opennlp-maxent/ChangeLog9
-rw-r--r--sci-misc/opennlp-maxent/Manifest4
-rw-r--r--sci-misc/opennlp-maxent/metadata.xml12
-rw-r--r--sci-misc/opennlp-maxent/opennlp-maxent-2.4.0.ebuild53
4 files changed, 78 insertions, 0 deletions
diff --git a/sci-misc/opennlp-maxent/ChangeLog b/sci-misc/opennlp-maxent/ChangeLog
new file mode 100644
index 000000000..f282f1156
--- /dev/null
+++ b/sci-misc/opennlp-maxent/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sci-misc/opennlp-maxent
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*opennlp-maxent-2.4.0 (03 Jan 2008)
+
+ 03 Jan 2008; Flammie Pirinen <flammie@gentoo.org>
+ +opennlp-maxent-2.4.0.ebuild :
+ Initial import.
diff --git a/sci-misc/opennlp-maxent/Manifest b/sci-misc/opennlp-maxent/Manifest
new file mode 100644
index 000000000..152f0bc67
--- /dev/null
+++ b/sci-misc/opennlp-maxent/Manifest
@@ -0,0 +1,4 @@
+DIST maxent-2.4.0.tgz 1242290 RMD160 ed45c33fdf41a9f898a69f95573b63042b5ab863 SHA1 695f7202491da92896527ff8257ce8d301c66f35 SHA256 9956e9bd0ed0fe4a82dd26190876c23897fab25c8035c7e0b23f7239acff4db1
+EBUILD opennlp-maxent-2.4.0.ebuild 1149 RMD160 bef7c9086cf762929483583e2b1b75c5b302e5f4 SHA1 0174f804883eb8fd634e3d99d3768d0cbcd7a7a9 SHA256 5e6f7991c57efe1f38f801e60cbf8798cb50e706aa0c8462e46813e074d0aae2
+MISC ChangeLog 264 RMD160 a04dc3df43b109936662106d0633a283a44248a2 SHA1 e0ca579b8b704fbf788dd5d2a0aee315be407e3a SHA256 4a39be200f9258ca037a39a059067feda099e82258fc60b1670ae3c276f70252
+MISC metadata.xml 360 RMD160 4412f3e5b0e7ac0b78a2a7dd814ee8e0491eede3 SHA1 c4f7424e64bb8e0b41c053cf11dfadef736f9cb1 SHA256 2b322b2838e81cbc62b93b31304fe3a2aaa007b3b064810e2664a09b3578d688
diff --git a/sci-misc/opennlp-maxent/metadata.xml b/sci-misc/opennlp-maxent/metadata.xml
new file mode 100644
index 000000000..611e5d6d8
--- /dev/null
+++ b/sci-misc/opennlp-maxent/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>flammie@gentoo.org</email>
+</maintainer>
+<longdescription>
+ Implementation of statistical classification using
+ maximum entropy models in opennlp framework.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-misc/opennlp-maxent/opennlp-maxent-2.4.0.ebuild b/sci-misc/opennlp-maxent/opennlp-maxent-2.4.0.ebuild
new file mode 100644
index 000000000..98ae32ecc
--- /dev/null
+++ b/sci-misc/opennlp-maxent/opennlp-maxent-2.4.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+JAVA_PKG_IUSE="source examples doc"
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PN="maxent"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Maximum entropy model implementation for opennlp."
+HOMEPAGE="http://maxent.sf.net/"
+SRC_URI="mirror://sourceforge/maxent/${MY_P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="${IUSE}"
+
+COMMON_DEP="dev-java/java-getopt
+ dev-java/trove"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+EANT_BUILD_TARGET="compile package"
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"/lib
+ rm -v *.jar || die "failed to rm jars"
+ java-pkg_jarfrom java-getopt-1 gnu.getopt.jar java-getopt.jar
+ java-pkg_jarfrom trove
+}
+
+src_install() {
+ java-pkg_newjar output/${MY_P}.jar
+ java-pkg_dohtml docs/*html docs/*css docs/*jpg
+ if use doc ; then
+ java-pkg_dojavadoc docs/api
+ fi
+ if use source ; then
+ java-pkg_dosrc src/java/opennlp
+ fi
+ if use examples ; then
+ java-pkg_doexamples samples
+ fi
+ dodoc AUTHORS CHANGES COMMANDLINE README
+ # java-pkg_dolauncher
+}