aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/opennlp-maxent/Manifest1
-rw-r--r--sci-misc/opennlp-maxent/opennlp-maxent-3.0.0.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/sci-misc/opennlp-maxent/Manifest b/sci-misc/opennlp-maxent/Manifest
index 03e5dea9a..436d2c3de 100644
--- a/sci-misc/opennlp-maxent/Manifest
+++ b/sci-misc/opennlp-maxent/Manifest
@@ -1 +1,2 @@
DIST maxent-2.4.0.tgz 1242290 BLAKE2B 49dac8ec8af1ed46d8dc1ee349b2d7550de75719737a55c77d29ee833a73d267d9f325b7a0b80f93035428b3afbfbc36d49d1fb8d6ea3ed3a51a2f7bbb47a88b SHA512 bba7e1e546f30d15e3d2cf1fffb5e2785174533acee25ed8b3fab97999431e1e4335f228f59da95770229c0c8d115152c140b9ca0d59cdc3b1e50090d6d8a2ac
+DIST opennlp-maxent-3.0.0-src.tar.gz 892819 BLAKE2B 776c201e68643034bdcf3a96498f358e279e4bb39ac9728eaef58222e201d4b2ebf3b73c564726f7954436f415286610c096b2bfc37454ec0215f8325b88df7f SHA512 97a9ac21f4290a9f96074e52a0db0efaf44063accd40ded4011ea61299034823482cd1e8a0098c3a886bdf1757ad4e300d2f9093819e0afb91567755a3785282
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
+}