From 37d7fd4e4fe1f99ae5ed7012069d36955d4c3367 Mon Sep 17 00:00:00 2001 From: "Danilo G. Baio" Date: Wed, 11 Jul 2018 19:15:15 +0000 Subject: [PATCH] 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 Reported by: Pascal Christen --- textproc/py-pystemmer/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/textproc/py-pystemmer/Makefile b/textproc/py-pystemmer/Makefile index 16699b88378d..926514b9a080 100644 --- a/textproc/py-pystemmer/Makefile +++ b/textproc/py-pystemmer/Makefile @@ -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