diff options
author | Flammie <Flammie@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-09-10 23:33:38 +0000 |
---|---|---|
committer | Flammie <Flammie@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-09-10 23:33:38 +0000 |
commit | 7aa47dbc0562142ba0a48a97cba2805f39ed5468 (patch) | |
tree | babeee25c770d775dc82cce25733ec2fded3a5d5 /sci-misc/nltk/nltk-0.9.4.ebuild | |
parent | manifest update (diff) | |
download | sci-7aa47dbc0562142ba0a48a97cba2805f39ed5468.tar.gz sci-7aa47dbc0562142ba0a48a97cba2805f39ed5468.tar.bz2 sci-7aa47dbc0562142ba0a48a97cba2805f39ed5468.zip |
Version bump; ensure python has tkinter
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1291 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-misc/nltk/nltk-0.9.4.ebuild')
-rw-r--r-- | sci-misc/nltk/nltk-0.9.4.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sci-misc/nltk/nltk-0.9.4.ebuild b/sci-misc/nltk/nltk-0.9.4.ebuild new file mode 100644 index 000000000..9e1368373 --- /dev/null +++ b/sci-misc/nltk/nltk-0.9.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils 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="~amd64" +IUSE="" + +DEPEND="${DEPEND} + dev-python/numarray + dev-python/numpy + dev-python/matplotlib + >=app-dicts/wordnet-2.0 + sci-misc/pywordnet" +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! built_with_use dev-lang/python tk ; then + die "NLTK needs python built with USE=tk" + fi + export NLTK_DATA="${WORKDIR}/data/" +} + +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 +} + |