wok view pycairo/receipt @ rev 19167

abiword: add suggested
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 29 10:13:52 2016 +0200 (2016-05-29)
parents bf4a09ef1d2e
children a78610b2eb47
line source
1 # SliTaz package receipt.
3 PACKAGE="pycairo"
4 VERSION="1.10.0"
5 CATEGORY="development"
6 SHORT_DESC="Python bindings for the cairo graphics library."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 SOURCE="py2cairo"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.cairographics.org/pycairo/"
12 WGET_URL="http://www.cairographics.org/releases/$TARBALL"
14 DEPENDS="cairo expat fontconfig freetype xorg-libX11 xorg-libXau \
15 xorg-libXdmcp xorg-libXrender xcb-util"
16 BUILD_DEPENDS="pkg-config cairo cairo-dev xorg-xproto python-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./waf configure --prefix=/usr &&
22 ./waf build &&
23 ./waf install --destdir=$DESTDIR
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
30 mkdir -p $fs/usr/lib
31 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib
32 }