blob: 3b29f4262ce7ad1f93cafc0e8363ec1724472a0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit eutils java-pkg-2 java-ant-2
MY_PV=2007-08-19
MY_P=${PN}-${MY_PV}
DESCRIPTION="Stanfords statistical natural language parsers"
HOMEPAGE="http://www-nlp.stanford.edu/software/"
SRC_URI="http://www-nlp.stanford.edu/software/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="${IUSE}"
COMMON_DEP=""
DEPEND=">=virtual/jdk-1.5
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEP}"
S="${WORKDIR}/${MY_P}"
EANT_BUILD_TARGET="compile"
src_install() {
java-pkg_dojar stanford-parser.jar
if use doc ; then
java-pkg_dojavadoc javadoc
fi
if use source ; then
java-pkg_dosrc src
fi
dodoc README.txt README_dependencies.txt cedict_readme.txt
insinto /usr/share/${PN}
doins *ser.gz
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
}
|