# Note: depends on Python # Note: depends on pkg-config # Note: depends on cairo wget -c http://cairographics.org/releases/pycairo-1.10.0.tar.bz2 tar -xjf pycairo-1.10.0.tar.bz2 cd pycairo-1.10.0 rm -f waf wget -O waf http://ftp.waf.io/pub/release/waf-1.7.16 # Don't use ancient waf chmod +x waf sed -i -e 's/[^.]*tool[^(]*/load/' wscript # Hack to force pycairo to use the python version it asks for mkdir -p usepython3 ln -s /usr/bin/python3 usepython3/python export PATH="`pwd`/usepython3:$PATH" ./waf configure --prefix="/usr" ./waf build # Doesn't mind -j# ./waf install # as root