aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/nltk/Makefile
blob: 7dd62e48d360448d77d837d676b3d6855bef19c3 (plain) (blame)
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
# Ports collection makefile for:    nltk
# Date created:             Oct 30, 2003
# Whom:                 clsung
#
# $FreeBSD$
#

PORTNAME=   nltk
PORTVERSION=    0.9.7
PORTEPOCH=  1
CATEGORIES= textproc python
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= clsung@FreeBSD.org
COMMENT=    Natural language toolkit written in python

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_PYTHON= 2.4+
USE_PYDISTUTILS=    yes
USE_PYTHON_PREFIX=  yes

post-install:
    @${FIND} ${PYTHON_SITELIBDIR}/nltk ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${PYTHON_SITELIBDIR}/nltk -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
    @${FIND} ${PYTHON_SITELIBDIR}/nltk_contrib ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${PYTHON_SITELIBDIR}/nltk_contrib -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
    @${FIND} ${PYTHON_SITELIBDIR}/yaml ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${PYTHON_SITELIBDIR}/yaml -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.include <bsd.port.mk>