wok-undigest rev 964

slitaz-i18n: copy from wok; try to fix build depends: dconf, granite, extended-actions; can't understand: tumbler can't support libgsf-1 and poppler, why?
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 15 17:50:58 2013 +0000 (2013-03-15)
parents 281007f7cdcc
children 3995783337a3
files dconf/receipt extended-actions/receipt granite/receipt slitaz-i18n/receipt slitaz-i18n/stuff/locale-pack.conf slitaz-i18n/stuff/locale-pack.functions
line diff
     1.1 --- a/dconf/receipt	Fri Mar 15 14:47:37 2013 +0000
     1.2 +++ b/dconf/receipt	Fri Mar 15 17:50:58 2013 +0000
     1.3 @@ -12,7 +12,7 @@
     1.4  WGET_URL="$GNOME_MIRROR/$PACKAGE/$HI_VERSION/$TARBALL"
     1.5  
     1.6  DEPENDS="dbus gtk+3"
     1.7 -BUILD_DEPENDS="vala glib-dev dbus-dev gtk+3-dev"
     1.8 +BUILD_DEPENDS="vala glib-dev dbus-dev gtk+3-dev libxml2-dev"
     1.9  GENERIC_MENUS="no"
    1.10  GENERIC_PIXMAPS="no"
    1.11  
     2.1 --- a/extended-actions/receipt	Fri Mar 15 14:47:37 2013 +0000
     2.2 +++ b/extended-actions/receipt	Fri Mar 15 17:50:58 2013 +0000
     2.3 @@ -12,7 +12,7 @@
     2.4  WGET_URL="bzr|lp:extended-actions"
     2.5  
     2.6  DEPENDS="libgee libgio"
     2.7 -BUILD_DEPENDS="bazaar vala glib-dev libgio-dev libgee-dev"
     2.8 +BUILD_DEPENDS="bazaar cmake vala glib-dev libgio-dev libgee-dev"
     2.9  
    2.10  TODO="Setup extended-actions specific to SliTaz"
    2.11  
     3.1 --- a/granite/receipt	Fri Mar 15 14:47:37 2013 +0000
     3.2 +++ b/granite/receipt	Fri Mar 15 17:50:58 2013 +0000
     3.3 @@ -18,6 +18,9 @@
     3.4  # Rules to configure and make the package.
     3.5  compile_rules()
     3.6  {
     3.7 +	# gee-1.0 is old while gee-0.8 is latest ;)
     3.8 +	sed -i 's|gee-1.0|gee-0.8|g' $(grep -l gee-1.0 $(find . -type f))
     3.9 +
    3.10  	mkdir build &&
    3.11  	cd build &&
    3.12  	cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/slitaz-i18n/receipt	Fri Mar 15 17:50:58 2013 +0000
     4.3 @@ -0,0 +1,60 @@
     4.4 +# SliTaz package receipt
     4.5 +
     4.6 +PACKAGE="slitaz-i18n"
     4.7 +VERSION="4.0"
     4.8 +CATEGORY="meta"
     4.9 +SHORT_DESC="SliTaz internationalization meta package to build locale pack."
    4.10 +MAINTAINER="pankso@slitaz.org"
    4.11 +WEB_SITE="http://www.slitaz.org/"
    4.12 +
    4.13 +# Bdeps ensure packages are built so we can get generated po files.
    4.14 +BUILD_DEPENDS="asunder alsaplayer epdfview galculator viewnior gparted nano \
    4.15 +glib gtk+ leafpad lxpanel lxtask obconf openbox pcmanfm midori mtpaint \
    4.16 +mhwaveedit lostirc"
    4.17 +
    4.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.19 +genpkg_rules()
    4.20 +{
    4.21 +	mkdir -p $fs/usr/share/doc/slitaz
    4.22 +	. $stuff/locale-pack.conf
    4.23 +	for p in $CORE_PKGS
    4.24 +	do
    4.25 +		if [ ! -d "$WOK/$p/install" ]; then
    4.26 +			if [ -x /usr/bin/cook ]; then
    4.27 +				cook $p
    4.28 +			else
    4.29 +				tazwok cook $p
    4.30 +			fi
    4.31 +		fi
    4.32 +	done
    4.33 +	# Cook all locale pack.
    4.34 +	for i in $LOCALE_PACK
    4.35 +	do
    4.36 +		if [ -x /usr/bin/cook ]; then
    4.37 +			cook locale-$i
    4.38 +		elif [ -x /usr/bin/tazwok ]; then
    4.39 +			tazwok cook locale-$i
    4.40 +		fi
    4.41 +	done
    4.42 +	cat > $fs/usr/share/doc/slitaz/i18n.txt << EOT
    4.43 +SliTaz i18n information
    4.44 +================================================================================
    4.45 +
    4.46 +This package provides the necessary functions and configs for the SliTaz locale 
    4.47 +pack. SliTaz uses UTF-8 by default and tazlocale (from SliTaz tools) to 
    4.48 +configure the system language.
    4.49 +
    4.50 +
    4.51 +Translated packages files included in the core languages pack (from upstream):
    4.52 +----
    4.53 +$CORE_PKGS
    4.54 +----
    4.55 +
    4.56 +SliTaz i18n project coordination is done on the SCN and doc is on the website:
    4.57 +
    4.58 +	http://www.slitaz.org/i18n.php
    4.59 +
    4.60 +
    4.61 +================================================================================
    4.62 +EOT
    4.63 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/slitaz-i18n/stuff/locale-pack.conf	Fri Mar 15 17:50:58 2013 +0000
     5.3 @@ -0,0 +1,8 @@
     5.4 +
     5.5 +# Packages LC_MESSAGES included in the locale pack.
     5.6 +CORE_PKGS="asunder alsaplayer epdfview galculator viewnior gparted nano \
     5.7 +glib gtk+ leafpad lxpanel lxtask lxrandr obconf openbox pcmanfm midori \
     5.8 +mtpaint mhwaveedit lostirc transmission"
     5.9 +
    5.10 +# List of all locale pack (locale-xx)
    5.11 +LOCALE_PACK="cs da de es fr hu id it pt pt_BR ru sl sv zh_CN zh_TW"
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/slitaz-i18n/stuff/locale-pack.functions	Fri Mar 15 17:50:58 2013 +0000
     6.3 @@ -0,0 +1,63 @@
     6.4 +#!/bin/sh
     6.5 +
     6.6 +# Standard directories having translated files.
     6.7 +mk_locale_dir()
     6.8 +{
     6.9 +	mkdir -p \
    6.10 +		$fs/usr/share/locale/$LOCALE \
    6.11 +		$fs/etc/xdg/openbox
    6.12 +}
    6.13 +
    6.14 +# Get translated files from SliTaz sub projects: configs & tools.
    6.15 +get_slitaz_messages()
    6.16 +{
    6.17 +	configs=$WOK/slitaz-configs/source
    6.18 +	openbox=$configs/slitaz-configs-*/rootfs/etc/xdg/openbox
    6.19 +	#tools=$WOK/slitaz-tools/source
    6.20 +
    6.21 +	# Make tazwok compatible with this.
    6.22 +	if [ ! -x /usr/bin/cook ]; then
    6.23 +		[ -d $configs ] || tazwok get-src slitaz-configs --target=$configs
    6.24 +		#[ -d $tools ] || tazwok get-src slitaz-tools --target=$tools
    6.25 +	fi
    6.26 +
    6.27 +	[ ! -d $configs ] && echo "ERROR: missing source slitaz-configs" && exit 1
    6.28 +	#[ ! -d $tools ] && echo "ERROR: missing source slitaz-tools" && exit 1
    6.29 +
    6.30 +	if [ -f $openbox/menu.${LOCALE}.xml ]; then
    6.31 +		echo "* Found $LOCALE locale for: openbox menu"
    6.32 +		cp $openbox/menu.${LOCALE}.xml $fs/etc/xdg/openbox
    6.33 +	fi
    6.34 +	
    6.35 +	# Tools messages will be replace in time by POT files.
    6.36 +	#
    6.37 +	# NOTE: All po files are now include into slitaz-tools (easy for update)
    6.38 +	#
    6.39 +	#if [ -d $tools/slitaz-tools-*/messages/$LOCALE ]; then
    6.40 +		#echo "* Found $LOCALE locale for: slitaz-tools"
    6.41 +		#cp -a $tools/slitaz-tools-*/messages/$LOCALE \
    6.42 +			#$fs/usr/share/slitaz/messages
    6.43 +	#fi
    6.44 +	
    6.45 +	#if [ -d $tools/slitaz-tools-*/po/mo/$LOCALE ]; then
    6.46 +		#for app in $(ls $tools/slitaz-tools-*/po/mo/$LOCALE)
    6.47 +		#do
    6.48 +			#echo "* Found $LOCALE locale for: ${app%.mo}"
    6.49 +			#cp -a $tools/slitaz-tools-*/po/mo/$LOCALE/$app \
    6.50 +				#$fs/usr/share/locale/$LOCALE
    6.51 +		#done
    6.52 +	#fi
    6.53 +}
    6.54 +
    6.55 +# Get the core packages messages.
    6.56 +get_core_messages()
    6.57 +{
    6.58 +	for i in $CORE_PKGS
    6.59 +	do
    6.60 +		if [ -d $WOK/$i/install/usr/share/locale/$LOCALE ]; then
    6.61 +			echo "* Found $LOCALE locale for: $i"
    6.62 +			cp -a $WOK/$i/install/usr/share/locale/$LOCALE \
    6.63 +				$fs/usr/share/locale
    6.64 +		fi
    6.65 +	done
    6.66 +}