1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
11 MY_P="${MY_PN}-${MY_PV}"
13 DESCRIPTION="A suite of Python packages and data for natural language processing"
14 HOMEPAGE="http://nltk.sourceforge.net/"
15 SRC_URI="mirror://sourceforge/nltk/${MY_P}.tar.gz
16 !minimal? ( mirror://sourceforge/nltk/${MY_PN}-corpora-${MY_PV}.zip )
17 doc? ( mirror://sourceforge/nltk/${MY_PN}-doc-${MY_PV}.zip )
18 examples? ( mirror://sourceforge/nltk/${MY_PN}-examples-${MY_PV}.zip )"
23 IUSE="doc examples linguas_pt_BR minimal"
25 DEPEND="app-arch/unzip"
26 RDEPEND="dev-python/numpy
27 dev-python/matplotlib"
29 S="${WORKDIR}/${MY_P}"
32 if ! use minimal ; then
33 insinto /usr/share/${MY_PN}
34 doins -r "${WORKDIR}/corpora" || die
35 doenvd "${FILESDIR}/99nltk-lite" || die
38 if ! use linguas_pt_BR ; then
39 rm -rf "${WORKDIR}/doc/pt-br" || die
41 insinto /usr/share/${MY_PN}
42 doins -r "${WORKDIR}/doc" || die
44 if use examples ; then
45 insinto /usr/share/${MY_PN}
46 doins -r "${WORKDIR}/examples" || die
49 dodoc README.txt || die
56 elog "${PN} has been installed with the 'minimal' USE flag enabled"
57 elog "This means corpora hasn't been installed, which may be needed"
58 elog "for the examples and apps developed using ${PN}."