setup.py contains a conditional checking if it can import cython. If not, the included (but stale) src/Stemmer.c is used. Add in cython as a build dependency to force regeneration of the C file from the actual source src/Stemmer.pyx. Also bump PORTREVISION to reflect possible differences between included and regenerated src/Stemmer.c. https://github.com/snowballstem/pystemmer/issues/18 PR: 229629 Submitted by: Charlie Li <ml+freebsd@vishwin.info> Reported by: Pascal Christen <pascal.christen@hostpoint.ch>
26 lines
580 B
Makefile
26 lines
580 B
Makefile
# Created by: Wen Heping <wenheping@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pystemmer
|
|
PORTVERSION= 1.3.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= CHEESESHOP \
|
|
http://snowball.tartarus.org/wrappers/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyStemmer-${PORTVERSION}
|
|
|
|
MAINTAINER= dbaio@FreeBSD.org
|
|
COMMENT= Snowball Stemming Algorithms for Information Retrieval
|
|
|
|
LICENSE= MIT BSD3CLAUSE
|
|
LICENSE_COMB= dual
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist cython distutils
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Stemmer.so
|
|
|
|
.include <bsd.port.mk>
|