commit: 022a1b5c5b2282ac158423d4798cdcd72e3b2991
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Thu Mar 4 10:47:40 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu Mar 4 10:47:40 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=022a1b5c
sci-misc/opennlp-maxent: version bump 3.0.0, EAPI bump
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
.../opennlp-maxent/opennlp-maxent-3.0.0.ebuild | 53 ++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/sci-misc/opennlp-maxent/opennlp-maxent-3.0.0.ebuild
b/sci-misc/opennlp-maxent/opennlp-maxent-3.0.0.ebuild
new file mode 100644
index 000000000..2acf4706d
--- /dev/null
+++ b/sci-misc/opennlp-maxent/opennlp-maxent-3.0.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="source examples doc"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="maxent"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Maximum entropy model implementation for opennlp"
+HOMEPAGE="http://maxent.sourceforge.net/about.html"
+SRC_URI="mirror://sourceforge/maxent/${P}-src.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+COMMON_DEP="
+ dev-java/java-getopt:1
+ dev-java/trove:0"
+DEPEND=">=virtual/jdk-1.6:*
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.6:*
+ ${COMMON_DEP}"
+
+EANT_BUILD_TARGET="compile package"
+
+src_prepare() {
+ default
+ cd "${S}"/lib || die
+ 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
+}