1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/textproc/nltk_lite/Makefile
2006-11-02 13:54:29 +00:00

37 lines
932 B
Makefile

# ex:ts=8
# Ports collection makefile for: nltk_lite
# Date created: Sat Nov 26 11:13:22 CST 2005
# Whom: clsung
#
# $FreeBSD$
#
PORTNAME= nltk_lite
PORTVERSION= 0.6.6
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:C/_.*//}
MAINTAINER= clsung@FreeBSD.org
COMMENT= Lightweight Natural language toolkit written in python
USE_PYTHON= 2.4+
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_VERSION} == "python2.5"
PLIST_SUB+= EGG_INFO_FILE=${PYTHON_SITELIBDIR:S;${PREFIX}/;;}/${PORTNAME}-${PORTVERSION}-py${_PYTHON_VERSION}.egg-info
.else
PLIST_SUB+= EGG_INFO_FILE=""
.endif
post-install:
@${FIND} ${PYTHON_SITELIBDIR}/nltk_lite ! -type d | \
${SED} 's,^${TARGETDIR}/,,' >> ${TMPPLIST}
@${FIND} ${PYTHON_SITELIBDIR}/nltk_lite -type d | ${SORT} -r | \
${SED} 's,^${TARGETDIR}/,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.post.mk>