aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-03-04 11:22:00 +0100
committerAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-03-04 11:22:00 +0100
commitda61776ce7660953c99199729afeffc2483b7eb4 (patch)
treecb5780379f06c32d6850330ea4a1a4d0f9eed723 /sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild
parentsci-misc/stanford-tagger: EAPI bump, version bump 4.2.0 (diff)
downloadsci-da61776ce7660953c99199729afeffc2483b7eb4.tar.gz
sci-da61776ce7660953c99199729afeffc2483b7eb4.tar.bz2
sci-da61776ce7660953c99199729afeffc2483b7eb4.zip
sci-misc/stanford-parser: version bump 4.2.0, EAPI bump
Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild')
-rw-r--r--sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild b/sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild
new file mode 100644
index 000000000..bb70e918f
--- /dev/null
+++ b/sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2
+
+DATE="2020-11-17"
+
+DESCRIPTION="Stanfords statistical natural language parsers"
+HOMEPAGE="https://www-nlp.stanford.edu/software/lex-parser.html"
+SRC_URI="http://www-nlp.stanford.edu/software/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+COMMON_DEP=""
+DEPEND=">=virtual/jdk-1.7
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.7
+ ${COMMON_DEP}"
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${PN}-full-${DATE}"
+
+EANT_BUILD_TARGET="compile"
+
+src_prepare() {
+ mkdir -p src || die
+ pushd src || die
+ jar xf ../${P}-sources.jar || die
+ popd || die
+ default
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ if use doc ; then
+ java-pkg_dojavadoc javadoc
+ fi
+ if use source ; then
+ java-pkg_dosrc src
+ fi
+ java-pkg_dolauncher stanford-lexparser --java_args -Xmx200m --main edu.stanford.nlp.parser.lexparser.LexicalizedParser
+ java-pkg_dolauncher stanford-lexparser-gui --java_args "-server -Xmx600m" --main edu.stanford.nlp.parser.ui.Parser
+}