void-packages/srcpkgs/python-cairo/template

39 lines
1.1 KiB
Bash

# Template file for 'python-cairo'
pkgname=python-cairo
version=1.10.0
revision=5
lib32disabled=yes
wrksrc="py2cairo-${version}"
build_style=gnu-configure
configure_args="PYTHON=python"
hostmakedepends="automake libtool pkg-config 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@voidlinux.eu>"
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 ${XBPS_WRAPPERDIR}/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
}
}