uodate to py3-stemmer-2.2.0, use system libstemmer rather than bundled
This commit is contained in:
parent
d8feb76b73
commit
420605b86c
@ -1,16 +1,15 @@
|
||||
COMMENT = snowball stemming algorithms, for information retrieval
|
||||
|
||||
MODPY_EGG_VERSION = 2.0.1
|
||||
MODPY_EGG_VERSION = 2.2.0
|
||||
DISTNAME = PyStemmer-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-stemmer-${MODPY_EGG_VERSION}
|
||||
REVISION = 1
|
||||
|
||||
CATEGORIES = textproc
|
||||
|
||||
# MIT/BSD
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += ${MODPY_WANTLIB} pthread
|
||||
WANTLIB += stemmer
|
||||
|
||||
MODULES = lang/python
|
||||
|
||||
@ -21,5 +20,6 @@ FLAVORS = python3
|
||||
FLAVOR = python3
|
||||
|
||||
BUILD_DEPENDS = lang/cython${MODPY_FLAVOR}
|
||||
LIB_DEPENDS = textproc/libstemmer
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (PyStemmer-2.0.1.tar.gz) = m4HDUwLx0qWtlGW4WYbbJGmQ25PZfT6PEpJp7XECeI4=
|
||||
SIZE (PyStemmer-2.0.1.tar.gz) = 559329
|
||||
SHA256 (PyStemmer-2.2.0.tar.gz) = 4hcbkbhrscap3d8J6Mhn5Ij4vWm94H0EEKNc3O4NhXw=
|
||||
SIZE (PyStemmer-2.2.0.tar.gz) = 698714
|
||||
|
28
textproc/py-stemmer/patches/patch-setup_py
Normal file
28
textproc/py-stemmer/patches/patch-setup_py
Normal file
@ -0,0 +1,28 @@
|
||||
Index: setup.py
|
||||
--- setup.py.orig
|
||||
+++ setup.py
|
||||
@@ -110,11 +110,6 @@ class LibrarySourceCode:
|
||||
expected_sha256=checksum or self.DEFAULT_CHECKSUM)
|
||||
|
||||
|
||||
-LIBRARY_SOURCE_CODE = LibrarySourceCode()
|
||||
-if not LIBRARY_SOURCE_CODE.is_present_on_disk():
|
||||
- LIBRARY_SOURCE_CODE.download()
|
||||
-
|
||||
-
|
||||
class BootstrapCommand(Command):
|
||||
description = 'Download libstemmer_c dependency'
|
||||
user_options = [
|
||||
@@ -196,9 +191,9 @@ setup(name='PyStemmer',
|
||||
ext_modules=[
|
||||
Extension(
|
||||
'Stemmer',
|
||||
- ['src/Stemmer.pyx'] + list(LIBRARY_SOURCE_CODE.source_code_paths()),
|
||||
- include_dirs=LIBRARY_SOURCE_CODE.include_directories
|
||||
+ ['src/Stemmer.pyx'],
|
||||
+ include_dirs=['/usr/local/include'],
|
||||
+ libraries=['stemmer']
|
||||
)
|
||||
],
|
||||
- cmdclass={'bootstrap': BootstrapCommand}
|
||||
)
|
Loading…
Reference in New Issue
Block a user