1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

textproc/py-pystemmer: Fix build with Python 3.7

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>
This commit is contained in:
Danilo G. Baio 2018-07-11 19:15:15 +00:00
parent 8e7605c494
commit 37d7fd4e4f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474476

View File

@ -3,7 +3,7 @@
PORTNAME= pystemmer
PORTVERSION= 1.3.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP \
http://snowball.tartarus.org/wrappers/
@ -17,7 +17,7 @@ LICENSE= MIT BSD3CLAUSE
LICENSE_COMB= dual
USES= python
USE_PYTHON= distutils autoplist
USE_PYTHON= autoplist cython distutils
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Stemmer.so