archivers/py-brotli: Fix build

- Fix module name case: We should loosen PEP 517 installation for this
- Fix LOCALBASE substitution
This commit is contained in:
Po-Chuan Hsieh 2023-09-12 00:27:14 +08:00
parent 2920ddff74
commit 1214f37c0d
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -9,6 +9,15 @@
major = read_define(version_file_path, 'BROTLI_VERSION_MAJOR')
minor = read_define(version_file_path, 'BROTLI_VERSION_MINOR')
patch = read_define(version_file_path, 'BROTLI_VERSION_PATCH')
@@ -128,7 +128,7 @@ class BuildExt(build_ext):
target_lang=language)
-NAME = 'Brotli'
+NAME = 'brotli'
VERSION = get_version()
@@ -177,96 +177,17 @@ EXT_MODULES = [
'_brotli',
sources=[
@ -103,13 +112,13 @@
],
include_dirs=[
- 'c/include',
+ '/usr/local/include',
+ '%%LOCALBASE%%/include',
+ ],
+ libraries=[
+ 'brotlicommon', 'brotlidec', 'brotlienc',
+ ],
+ library_dirs=[
+ '/usr/local/lib',
+ '%%LOCALBASE%%/lib',
]),
]