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