summaryrefslogtreecommitdiff
path: root/textproc/py-wordnet/Makefile
blob: ed14f9b59e53967046fad6522d87d40a095e9b1f (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
# 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=	1
CATEGORIES=	textproc python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	pywordnet
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	pywordnet-${PORTVERSION}

MAINTAINER=	perky@FreeBSD.org

RUN_DEPENDS=	${WORDNETBASE}/lexnames:${PORTSDIR}/textproc/wordnet

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes
WORDNETBASE?=	${LOCALBASE}/share/WordNet-${WORDNET_VERSION}
WORDNET_VERSION?=	1.7.1

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>