aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-03-17 16:21:32 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-03-17 16:21:32 +0000
commit76ffb781ed7a917f23b67454e9f950e5e3b83527 (patch)
tree94fa8e1ddc7cb9ef80b78ea7896a5845f074f95b /sci-misc/opennlp-maxent/opennlp-maxent-2.4.0.ebuild
parentmove stuff to root (diff)
downloadsci-76ffb781ed7a917f23b67454e9f950e5e3b83527.tar.gz
sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.tar.bz2
sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.zip
moved overlay to new directory
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@979 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-misc/opennlp-maxent/opennlp-maxent-2.4.0.ebuild')
-rw-r--r--sci-misc/opennlp-maxent/opennlp-maxent-2.4.0.ebuild53
1 files changed, 53 insertions, 0 deletions
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
+}