void-packages/srcpkgs/python-cairo/template
2014-11-03 22:29:13 +00:00

40 lines
1.1 KiB
Text

# Template file for 'python-cairo'
pkgname=python-cairo
version=1.10.0
revision=4
lib32disabled=yes
wrksrc="py2cairo-${version}"
build_style=gnu-configure
configure_args="PYTHON=python"
hostmakedepends="automake libtool pkg-config which python-devel"
makedepends="cairo-devel python-devel"
depends="python>=2.7"
replaces="pycairo<1.10 py2cairo>=0"
pycompile_module="cairo"
short_desc="Python2 bindings for the cairo graphics library"
homepage="http://cairographics.org/pycairo/"
license="LGPL-3"
maintainer="Juan RP <xtraeme@gmail.com>"
update_pkgname=py2cairo
distfiles="http://cairographics.org/releases/py2cairo-${version}.tar.bz2"
checksum=d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
pre_configure() {
touch ChangeLog
NOCONFIGURE=1 autoreconf -fi
if [ "$CROSS_BUILD" ]; then
ln -s ${wrksrc}/.xbps/bin/python-config ${wrksrc}
fi
}
python-cairo-devel_package() {
lib32disabled=yes
replaces="pycairo-devel<1.10 py2cairo-devel>=0"
depends="python-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}