wok annotate font-manager/receipt @ rev 15295

cdrtools: remove a wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 27 09:56:20 2013 +0000 (2013-09-27)
parents 4af76cfb62c4
children c2c82f83aca6
rev   line source
al@13649 1 # SliTaz package receipt.
al@13649 2
al@13649 3 PACKAGE="font-manager"
al@13649 4 VERSION="0.5.7"
al@13649 5 CATEGORY="utilities"
al@13649 6 SHORT_DESC="A font management application for the GNOME desktop"
al@13649 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14999 8 LICENSE="GPL3"
al@13649 9 WEB_SITE="http://code.google.com/p/font-manager/"
al@13649 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@13649 11 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
al@13649 12
al@13649 13 DEPENDS="python pygtk pygobject pycairo libxml2-python fontconfig freetype \
al@13649 14 sqlite"
al@13649 15 BUILD_DEPENDS="bash python-dev fontconfig-dev freetype-dev glib-dev pango-dev \
al@13649 16 sqlite-dev intltool"
al@13649 17
al@13649 18 # Rules to configure and make the package.
al@13649 19 compile_rules()
al@13649 20 {
al@13649 21 cd $src
al@13649 22 ./configure --enable-bytecode --enable-nls $CONFIGURE_ARGS &&
al@13649 23 make &&
al@13649 24 make DESTDIR=$install install
al@13649 25
al@13649 26 # fix translations
al@13649 27 for p in $(ls po | grep -e '.po$'); do
al@13649 28 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
al@13649 29 done
al@13649 30 }
al@13649 31
al@13649 32 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13649 33 genpkg_rules()
al@13649 34 {
al@13649 35 cp -a $install/* $fs
al@13649 36 # fix paths
al@13649 37 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
al@13649 38 # remove help (need absent yelp to show)
al@13649 39 rm -rf $fs/usr/share/font-manager/help
al@13649 40 }