aboutsummaryrefslogblamecommitdiff
path: root/textproc/py-hunspell/Makefile
blob: 8466f2e8e662315f378e50d2cae94e2503795590 (plain) (tree)
1
2
3
4
5
                                                

                        
                     
                 










                                                                  
                           
                         

                         
                   
                                                                    






                                                                         
# Created by: Thierry Thomas <thierry@pompo.net>

PORTNAME=	hunspell
PORTVERSION=	0.5.5
PORTREVISION=	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:3.6+
USES+=		localbase
USE_PYTHON=	distutils

HSPLVER=	1.7
PLIST_FILES=	${PYTHON_SITELIBDIR}/hunspell${PYTHON_EXT_SUFFIX}.so

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

.include <bsd.port.mk>