wok rev 22177

corrected font-manager
author Hans-G?nter Theisgen
date Sat Nov 09 11:33:35 2019 +0100 (2019-11-09)
parents 10fa26e4c60d
children bba007560f28
files font-manager/receipt
line diff
     1.1 --- a/font-manager/receipt	Fri Nov 08 20:55:40 2019 +0100
     1.2 +++ b/font-manager/receipt	Sat Nov 09 11:33:35 2019 +0100
     1.3 @@ -3,37 +3,46 @@
     1.4  PACKAGE="font-manager"
     1.5  VERSION="0.5.7"
     1.6  CATEGORY="utilities"
     1.7 -SHORT_DESC="A font management application for the GNOME desktop"
     1.8 +SHORT_DESC="A font management application for the GNOME desktop."
     1.9  MAINTAINER="al.bobylev@gmail.com"
    1.10  LICENSE="GPL3"
    1.11 -WEB_SITE="http://fontmanager.github.io/"
    1.12 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13 -WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
    1.14 +WEB_SITE="https://fontmanager.github.io/"
    1.15  
    1.16 -DEPENDS="python pygtk pygobject pycairo libxml2-python fontconfig freetype \
    1.17 -sqlite"
    1.18 -BUILD_DEPENDS="bash python-dev fontconfig-dev freetype-dev glib-dev pango-dev \
    1.19 -sqlite-dev intltool gnome-doc-utils"
    1.20 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.21 +WGET_URL="https://github.com/FontManager/$PACKAGE/archive/$VERSION.tar.gz"
    1.22 +
    1.23 +DEPENDS="fontconfig freetype libxml2-python pycairo pygtk pygobject python \
    1.24 +	sqlite"
    1.25 +BUILD_DEPENDS="bash fontconfig-dev freetype-dev glib-dev gnome-doc-utils
    1.26 +	intltool pango-dev python-dev sqlite-dev"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	cd $src
    1.32 -	sed -i 's/FT_XFREE86_H/&\n#define W_OK (2)/' src/lib/fm-fontutils.c
    1.33 -	./configure --enable-bytecode --enable-nls $CONFIGURE_ARGS &&
    1.34 +	export	CONFIG_SHELL=/bin/bash
    1.35 +	export	SHELL=/bin/bash
    1.36 +
    1.37 +	sed -i 's|FT_XFREE86_H|&\n#define W_OK (2)|' \
    1.38 +		src/lib/fm-fontutils.c
    1.39 +	./configure			\
    1.40 +		--enable-bytecode	\
    1.41 +		--enable-nls		\
    1.42 +		$CONFIGURE_ARGS &&
    1.43  	make &&
    1.44  	make DESTDIR=$install install
    1.45  
    1.46  	# fix translations
    1.47 -	for p in $(ls po | grep -e '.po$'); do
    1.48 +	for p in $(ls po | grep -e '.po$')
    1.49 +	  do
    1.50  		msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
    1.51 -	done
    1.52 +	  done
    1.53  }
    1.54  
    1.55  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.56  genpkg_rules()
    1.57  {
    1.58  	cp -a $install/* $fs
    1.59 +
    1.60  	# fix paths
    1.61  	sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
    1.62  	# remove help (need absent yelp to show)