git: 1214f37c0d63 - main - archivers/py-brotli: Fix build
- Reply: Charlie Li : "Re: git: 1214f37c0d63 - main - archivers/py-brotli: Fix build"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Sep 2023 16:27:23 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1214f37c0d633e3d8437213de7d180f5db464017
commit 1214f37c0d633e3d8437213de7d180f5db464017
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-11 16:27:14 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-11 16:27:14 +0000
archivers/py-brotli: Fix build
- Fix module name case: We should loosen PEP 517 installation for this
- Fix LOCALBASE substitution
---
archivers/py-brotli/files/patch-setup.py | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/archivers/py-brotli/files/patch-setup.py b/archivers/py-brotli/files/patch-setup.py
index fae3c7a6665f..47808c0d1135 100644
--- a/archivers/py-brotli/files/patch-setup.py
+++ b/archivers/py-brotli/files/patch-setup.py
@@ -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',
]),
]