44 lines
1.2 KiB
Text
44 lines
1.2 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
|
|
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>"
|
|
distfiles="http://cairographics.org/releases/py2cairo-${version}.tar.bz2"
|
|
checksum=d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
|
|
|
|
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}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|