wok-6.x annotate pycairo/receipt @ rev 17690
xrdp: add --localstatedir=/var
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 22 18:41:02 2015 +0100 (2015-02-22) |
parents | f0f364ff2de0 |
children | 16df76e1fc6a |
rev | line source |
---|---|
erjo@1175 | 1 # SliTaz package receipt. |
erjo@1175 | 2 |
erjo@1175 | 3 PACKAGE="pycairo" |
slaxemulator@11029 | 4 VERSION="1.10.0" |
erjo@1175 | 5 CATEGORY="development" |
erjo@1175 | 6 SHORT_DESC="Python bindings for the cairo graphics library." |
erjo@1175 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15376 | 8 LICENSE="MPL LGPL2.1" |
slaxemulator@11029 | 9 SOURCE="py2cairo" |
slaxemulator@11029 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
erjo@1175 | 11 WEB_SITE="http://www.cairographics.org/pycairo/" |
erjo@1175 | 12 WGET_URL="http://www.cairographics.org/releases/$TARBALL" |
erjo@1175 | 13 |
pascal@15376 | 14 DEPENDS="cairo expat fontconfig freetype xorg-libX11 xorg-libXau \ |
pascal@15376 | 15 xorg-libXdmcp xorg-libXrender xcb-util" |
pascal@15376 | 16 BUILD_DEPENDS="pkg-config cairo cairo-dev xorg-xproto python-dev" |
pascal@15376 | 17 |
erjo@1175 | 18 # Rules to configure and make the package. |
erjo@1175 | 19 compile_rules() |
erjo@1175 | 20 { |
erjo@1175 | 21 cd $src |
slaxemulator@11029 | 22 ./waf configure --prefix=/usr && |
slaxemulator@11029 | 23 ./waf build && |
slaxemulator@11029 | 24 ./waf install --destdir=$DESTDIR |
erjo@1175 | 25 } |
erjo@1175 | 26 |
erjo@1175 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1175 | 28 genpkg_rules() |
erjo@1175 | 29 { |
pascal@6594 | 30 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
erjo@1175 | 31 mkdir -p $fs/usr/lib |
pascal@15376 | 32 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib |
erjo@1175 | 33 } |
erjo@1175 | 34 |