wok-current annotate pango/receipt @ rev 11230

pango: update deps (thanks mojo)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 05 10:12:34 2011 +0100 (2011-11-05)
parents ef5ca15dbd28
children 16b032ca4317
rev   line source
pankso@22 1 # SliTaz package receipt.
pankso@22 2
pankso@22 3 PACKAGE="pango"
slaxemulator@11055 4 VERSION="1.29.4"
pankso@22 5 CATEGORY="x-window"
pankso@22 6 SHORT_DESC="Library for layout and rendering of text."
pankso@22 7 MAINTAINER="pankso@slitaz.org"
pankso@22 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@22 9 WEB_SITE="http://www.pango.org/"
slaxemulator@11055 10 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
slaxemulator@11055 11 CONFIG_FILES="/etc/pango/pango.modules"
slaxemulator@11055 12
pascal@11230 13 DEPENDS="cairo glib expat libxml2 xorg-libXft fontconfig freetype xcb-util bzlib"
slaxemulator@11055 14 BUILD_DEPENDS="$DEPENDS cairo-dev glib-dev expat-dev libxml2-dev xorg-libXft-dev \
slaxemulator@11055 15 libgio-dev gobject-introspection-dev pkg-config"
pankso@22 16
pankso@22 17 # Rules to configure and make the package.
pankso@22 18 compile_rules()
pankso@22 19 {
pankso@22 20 cd $src
pankso@547 21 ./configure \
pankso@547 22 --prefix=/usr \
pankso@547 23 --sysconfdir=/etc \
pankso@547 24 --mandir=/usr/share/man \
pankso@547 25 --with-html-dir=/usr/share/doc \
pascal@1634 26 $CONFIGURE_ARGS &&
pascal@1634 27 make &&
slaxemulator@11055 28 make DESTDIR=$DESTDIR install
pankso@22 29 }
pankso@22 30
pankso@22 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@22 32 genpkg_rules()
pankso@22 33 {
pankso@22 34 mkdir -p $fs/usr/bin $fs/usr/lib
slaxemulator@11055 35 cp -a $install/usr/bin/* $fs/usr/bin
slaxemulator@11055 36 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@11055 37 cp -a $install/usr/lib/pango $fs/usr/lib
slaxemulator@11055 38 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
pankso@577 39 rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la
slaxemulator@11055 40 cp -a $install/etc $fs
gokhlayeh@9472 41 touch $fs/etc/pango/pango.modules
pankso@22 42 }
pankso@22 43
pankso@22 44 # Pre and post install commands for Tazpkg.
pankso@22 45 post_install()
pankso@22 46 {
pankso@22 47 echo "Processing post-install commands..."
slaxemulator@11055 48 # Rebuilds pango.modules when installed.
pascal@5125 49 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules
pankso@22 50 }
slaxemulator@6397 51