diff options
Diffstat (limited to 'sci-misc/stanford-parser')
-rw-r--r-- | sci-misc/stanford-parser/Manifest | 2 | ||||
-rw-r--r-- | sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild (renamed from sci-misc/stanford-parser/stanford-parser-1.6.ebuild) | 37 |
2 files changed, 22 insertions, 17 deletions
diff --git a/sci-misc/stanford-parser/Manifest b/sci-misc/stanford-parser/Manifest index 259d4e9b1..27d5a0eae 100644 --- a/sci-misc/stanford-parser/Manifest +++ b/sci-misc/stanford-parser/Manifest @@ -1 +1 @@ -DIST stanford-parser-2007-08-19.tar.gz 60783166 BLAKE2B c35d9f501bd5e204bb58d55eeaaef08d4a6f53513e6103ce8a31f7ff66b870493916058dac72cbe495d73828b74d05d0178796ea9b0e59e14555e8e6e0c2c8d4 SHA512 d22812d9786cc68315969b2a19efbb0ac2a48b24f0a25635a02c87e441f2e605146ec86625e0282a28bab4336918cf249ee1d9a793dc0bfe0268eda0c88b5470 +DIST stanford-parser-4.2.0.zip 182285548 BLAKE2B d9838011b43b849d5ed247d8e0a58fad047a173d5c2ccadf7e18ab45a8f1365302130541802de9790274057d3180644db5e29cb386cb8aae6c58a67cfd6cd9b7 SHA512 9ab4a510ad7b69c23886cc5f865c6020a23888460b0dcced8c0c22870eb246f04bd866777e47ff07d37556a51ff6b14e61aacfd3fe0555aca5e87b67c0140a94 diff --git a/sci-misc/stanford-parser/stanford-parser-1.6.ebuild b/sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild index 81b297db0..bb70e918f 100644 --- a/sci-misc/stanford-parser/stanford-parser-1.6.ebuild +++ b/sci-misc/stanford-parser/stanford-parser-4.2.0.ebuild @@ -1,44 +1,49 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 JAVA_PKG_IUSE="doc source" -inherit eutils java-pkg-2 java-ant-2 -MY_PV=2007-08-19 -MY_P=${PN}-${MY_PV} +inherit java-pkg-2 + +DATE="2020-11-17" 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" +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="~x86" -IUSE="${IUSE}" +KEYWORDS="~amd64 ~x86" COMMON_DEP="" -DEPEND=">=virtual/jdk-1.5 +DEPEND=">=virtual/jdk-1.7 ${COMMON_DEP}" -RDEPEND=">=virtual/jre-1.5 +RDEPEND=">=virtual/jre-1.7 ${COMMON_DEP}" +BDEPEND="app-arch/unzip" -S="${WORKDIR}/${MY_P}" +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 stanford-parser.jar + java-pkg_dojar ${PN}.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 } |