aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-misc/nltk/nltk-0.9.ebuild')
-rw-r--r--sci-misc/nltk/nltk-0.9.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/sci-misc/nltk/nltk-0.9.ebuild b/sci-misc/nltk/nltk-0.9.ebuild
new file mode 100644
index 000000000..8252f38e8
--- /dev/null
+++ b/sci-misc/nltk/nltk-0.9.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit distutils
+
+DESCRIPTION="Natural language processing tool collection"
+HOMEPAGE="http://nltk.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ mirror://sourceforge/${PN}/${PN}-data-${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="${DEPEND}
+ dev-python/numarray
+ dev-python/numpy
+ dev-python/matplotlib
+ >=app-dicts/wordnet-2.0
+ sci-misc/pywordnet"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ distutils_src_install
+ # N.B.: if you install corpora in usr/share/nltk you do not need env. vars
+ cd ${WORKDIR}
+ dodir /usr/share/nltk
+ fperms g+r data
+ insinto /usr/share/nltk/
+ doins -r data
+}
+