update to py3-stemmer-2.2.0.1

This commit is contained in:
sthen 2023-01-22 15:00:39 +00:00
parent 31dc451d29
commit 4f957951d8
3 changed files with 5 additions and 31 deletions

View File

@ -1,6 +1,6 @@
COMMENT = snowball stemming algorithms, for information retrieval
MODPY_EGG_VERSION = 2.2.0
MODPY_EGG_VERSION = 2.2.0.1
DISTNAME = PyStemmer-${MODPY_EGG_VERSION}
PKGNAME = py-stemmer-${MODPY_EGG_VERSION}
@ -15,6 +15,8 @@ MODULES = lang/python
MODPY_PI = Yes
MODPY_PYBUILD = setuptools
MAKE_ENV = PYSTEMMER_SYSTEM_LIBSTEMMER=1
CFLAGS += -I${LOCALBASE}/include
FLAVORS = python3
FLAVOR = python3

View File

@ -1,2 +1,2 @@
SHA256 (PyStemmer-2.2.0.tar.gz) = 4hcbkbhrscap3d8J6Mhn5Ij4vWm94H0EEKNc3O4NhXw=
SIZE (PyStemmer-2.2.0.tar.gz) = 698714
SHA256 (PyStemmer-2.2.0.1.tar.gz) = nzs2bx7Qa0ncGGi/Cu/YhEI9uA80Mb5ELQ+ZPkSMxns=
SIZE (PyStemmer-2.2.0.1.tar.gz) = 303027

View File

@ -1,28 +0,0 @@
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}
)