mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
Make py3-cairo build with python 3.4.
Submitted by: antoine@
This commit is contained in:
parent
a9eb6beb75
commit
41a74503fa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376593
@ -29,6 +29,11 @@ post-patch:
|
||||
${WRKSRC}/test/examples_test.py
|
||||
|
||||
do-configure:
|
||||
# Run waf configure twice, once to extract waflib and patch and then actual configure
|
||||
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON_CMD} \
|
||||
./waf configure || :
|
||||
@cd ${WRKSRC}/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/ && \
|
||||
${PATCH} -p1 < ${FILESDIR}/pycairo-1.10.0-waf-py3_4.patch
|
||||
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON_CMD} \
|
||||
./waf configure
|
||||
|
||||
|
11
graphics/py3-cairo/files/pycairo-1.10.0-waf-py3_4.patch
Normal file
11
graphics/py3-cairo/files/pycairo-1.10.0-waf-py3_4.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/waflib/Tools/python.py
|
||||
+++ b/waflib/Tools/python.py
|
||||
@@ -169,7 +169,7 @@
|
||||
conf.find_program('python-config-%s'%num,var='PYTHON_CONFIG',mandatory=False)
|
||||
includes=[]
|
||||
if conf.env.PYTHON_CONFIG:
|
||||
- for incstr in conf.cmd_and_log(conf.env.PYTHON+[conf.env.PYTHON_CONFIG,'--includes']).strip().split():
|
||||
+ for incstr in conf.cmd_and_log([conf.env.PYTHON_CONFIG,'--includes']).strip().split():
|
||||
if(incstr.startswith('-I')or incstr.startswith('/I')):
|
||||
incstr=incstr[2:]
|
||||
if incstr not in includes:
|
Loading…
Reference in New Issue
Block a user