1
0
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:
Koop Mast 2015-01-09 11:11:59 +00:00
parent a9eb6beb75
commit 41a74503fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376593
2 changed files with 16 additions and 0 deletions

View File

@ -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

View 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: