wok annotate pycairo/receipt @ rev 22006

tar-lang: condition corrected
author Hans-G?nter Theisgen
date Fri Oct 18 17:47:01 2019 +0100 (2019-10-18)
parents 16df76e1fc6a
children feb4dddd17bc
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"
pascal@20669 11 WEB_SITE="https://www.cairographics.org/pycairo/"
pascal@20669 12 WGET_URL="https://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 {
slaxemulator@11029 21 ./waf configure --prefix=/usr &&
slaxemulator@11029 22 ./waf build &&
slaxemulator@11029 23 ./waf install --destdir=$DESTDIR
erjo@1175 24 }
erjo@1175 25
erjo@1175 26 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1175 27 genpkg_rules()
erjo@1175 28 {
pascal@6594 29 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
erjo@1175 30 mkdir -p $fs/usr/lib
pascal@15376 31 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib
erjo@1175 32 }