Date: Mon, 11 Sep 2023 16:27:23 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 1214f37c0d63 - main - archivers/py-brotli: Fix build Message-ID: <202309111627.38BGRNTg041068@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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', ]), ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202309111627.38BGRNTg041068>