aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-hunspell/Makefile
blob: c1646750d195450507632bd9cb58320370a984c2 (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
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$

PORTNAME=	hunspell
PORTVERSION=	0.4.1
CATEGORIES=	textproc devel python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	thierry@FreeBSD.org
COMMENT=	Python module for the Hunspell spellchecker engine

LICENSE=	LGPL3

LIB_DEPENDS=	libhunspell-${HSPLVER}.so:textproc/hunspell

USES?=		python
USES+=		localbase
USE_PYTHON=	distutils

HSPLVER=	1.5
PLIST_FILES=	%%PYTHON_SITELIBDIR%%/hunspell.so

pre-configure:
	${REINPLACE_CMD} -e "s|/usr/include|${LOCALBASE}/include|"	\
		-e "s|= \['hunspell|= ['hunspell-${HSPLVER}|"		\
		${WRKSRC}/${PYSETUP}

.include <bsd.port.mk>