2013-09-27 02:15:26 +02:00
|
|
|
# Template file for 'py2cairo'
|
|
|
|
pkgname=py2cairo
|
|
|
|
version=1.10.0
|
2013-09-27 02:40:45 +02:00
|
|
|
revision=2
|
2014-01-28 09:45:44 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake libtool pkg-config which python-devel"
|
2013-09-27 02:15:26 +02:00
|
|
|
makedepends="cairo-devel python-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="python"
|
|
|
|
replaces="pycairo<1.10"
|
|
|
|
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>"
|
|
|
|
distfiles="http://cairographics.org/releases/$pkgname-$version.tar.bz2"
|
|
|
|
checksum=d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
|
|
|
|
|
2014-01-28 09:45:44 +01:00
|
|
|
pre_configure() {
|
|
|
|
touch ChangeLog
|
|
|
|
NOCONFIGURE=1 autoreconf -fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# create a python-config wrapper to fake --includes
|
|
|
|
install -m755 ${FILESDIR}/python-config ${wrksrc}
|
|
|
|
export PATH=${wrksrc}:$PATH
|
|
|
|
fi
|
|
|
|
env PYTHON=python ./configure ${configure_args}
|
|
|
|
}
|
|
|
|
|
2013-09-27 02:15:26 +02:00
|
|
|
py2cairo-devel_package() {
|
|
|
|
replaces="pycairo-devel<1.10"
|
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
|
|
|
|
}
|
|
|
|
}
|