freebsd-ports/textproc/py-wordnet/Makefile
Mikhail Teterin 498d5c10eb Bump PORTREVISION and otherwise adjust things depending on WordNet, which was
upgraded to 2.0 yesterday.

Insisted upon by:	clement
2004-02-18 19:30:28 +00:00

34 lines
869 B
Makefile

# New ports collection makefile for: py-wordnet
# Date created: 26 March 2002
# Whom: Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
#
PORTNAME= wordnet
PORTVERSION= 1.4
PORTREVISION= 2
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pywordnet
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pywordnet-${PORTVERSION}
MAINTAINER= perky@FreeBSD.org
COMMENT= Python Interface to WordNet
RUN_DEPENDS= ${WORDNETBASE}/lexnames:${PORTSDIR}/textproc/wordnet
USE_PYTHON= yes
USE_PYDISTUTILS= yes
WORDNETBASE?= ${LOCALBASE}/share/WordNet-${WORDNET_VERSION}
WORDNET_VERSION?= 2.0
post-patch:
@${SED} -e 's|/usr/local/wordnet1.6|${WORDNETBASE}|g' \
-e 's|os.path.join(WNHOME.*))|WNHOME)|g' ${WRKSRC}/wordnet.py \
> ${WRKSRC}/wordnet.py.tmp && ${CAT} ${WRKSRC}/wordnet.py.tmp \
> ${WRKSRC}/wordnet.py
.include <bsd.port.mk>