mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-13 17:13:00 -04:00
dev-python/uharfbuzz: fix build
Closes: https://bugs.gentoo.org/816720 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -13,7 +13,7 @@
|
||||
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
-define_macros = [('HB_NO_MT', '1'), ('HB_EXPERIMENTAL_API', '1')]
|
||||
+define_macros = [('HB_EXPERIMENTAL_API', '1')]
|
||||
linetrace = False
|
||||
if int(os.environ.get('CYTHON_LINETRACE', '0')):
|
||||
linetrace = True
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
extra_compile_args = []
|
||||
extra_link_args = []
|
||||
-libraries = []
|
||||
+libraries=['harfbuzz']
|
||||
if platform.system() != 'Windows':
|
||||
extra_compile_args.append('-std=c++11')
|
||||
define_macros.append(('HAVE_MMAP', '1'))
|
||||
@@ -39,8 +39,8 @@
|
||||
extension = Extension(
|
||||
'uharfbuzz._harfbuzz',
|
||||
define_macros=define_macros,
|
||||
- include_dirs=['harfbuzz/src'],
|
||||
- sources=['src/uharfbuzz/_harfbuzz.pyx', 'harfbuzz/src/harfbuzz.cc'],
|
||||
+ include_dirs=['/usr/include/harfbuzz'],
|
||||
+ sources=['src/uharfbuzz/_harfbuzz.pyx'],
|
||||
language='c++',
|
||||
libraries=libraries,
|
||||
extra_compile_args=extra_compile_args,
|
||||
@@ -23,7 +23,7 @@ DEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.16.1-system-harfbuzz.patch" )
|
||||
PATCHES=( "${FILESDIR}/${P}-system-harfbuzz.patch" )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user