wok rev 19303

Up ttf-dejavu (2.35), shrink files
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 09 23:16:51 2016 +0300 (2016-07-09)
parents 697186cadac0
children e7c2cba04343
files ttf-dejavu-extra/description.txt ttf-dejavu-extra/receipt ttf-dejavu/description.txt ttf-dejavu/receipt ttf-dejavu/stuff/compile.rules
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ttf-dejavu-extra/description.txt	Sat Jul 09 23:16:51 2016 +0300
     1.3 @@ -0,0 +1,33 @@
     1.4 +The DejaVu fonts are a font family based on the [Bitstream Vera Fonts]
     1.5 +(http://gnome.org/fonts/). Its purpose is to provide a wider range of
     1.6 +characters (see status.txt for more information) while maintaining the
     1.7 +original look and feel.
     1.8 +
     1.9 +DejaVu fonts are based on Bitstream Vera fonts version 1.10.
    1.10 +
    1.11 +Available fonts:
    1.12 +
    1.13 +  * DejaVu Sans Mono
    1.14 +  * DejaVu Sans Mono Bold
    1.15 +  * DejaVu Sans Mono Bold Oblique
    1.16 +  * DejaVu Sans Mono Oblique
    1.17 +  * DejaVu Sans
    1.18 +  * DejaVu Sans Bold
    1.19 +  * DejaVu Sans Bold Oblique
    1.20 +  * DejaVu Sans Oblique
    1.21 +  * DejaVu Sans ExtraLight (experimental)
    1.22 +  * DejaVu Serif
    1.23 +  * DejaVu Serif Bold
    1.24 +  * DejaVu Serif Bold Italic (experimental)
    1.25 +  * DejaVu Serif Italic (experimental)
    1.26 +  * DejaVu Sans Condensed (experimental)
    1.27 +  * DejaVu Sans Condensed Bold (experimental)
    1.28 +  * DejaVu Sans Condensed Bold Oblique (experimental)
    1.29 +  * DejaVu Sans Condensed Oblique (experimental)
    1.30 +  * DejaVu Serif Condensed (experimental)
    1.31 +  * DejaVu Serif Condensed Bold (experimental)
    1.32 +  * DejaVu Serif Condensed Bold Italic (experimental)
    1.33 +  * DejaVu Serif Condensed Italic (experimental)
    1.34 +
    1.35 +All fonts are also available as derivative called DejaVu LGC with support
    1.36 +only for Latin, Greek and Cyrillic scripts.
     2.1 --- a/ttf-dejavu-extra/receipt	Sat Jul 09 20:35:00 2016 +0100
     2.2 +++ b/ttf-dejavu-extra/receipt	Sat Jul 09 23:16:51 2016 +0300
     2.3 @@ -1,21 +1,24 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="ttf-dejavu-extra"
     2.7 -VERSION="2.34"
     2.8 +VERSION="2.35"
     2.9  CATEGORY="fonts"
    2.10 -SHORT_DESC="DejaVu True Type Font (extra)."
    2.11 +SHORT_DESC="DejaVu TrueType fonts (extra)"
    2.12  MAINTAINER="pankso@slitaz.org"
    2.13  LICENSE="other"
    2.14 -WEB_SITE="http://dejavu.sourceforge.net/"
    2.15 +WEB_SITE="http://dejavu-fonts.org/"
    2.16 +TAGS="font"
    2.17 +
    2.18  WANTED="ttf-dejavu"
    2.19 -TAGS="font"
    2.20 +DEPENDS="ttf-dejavu"
    2.21  
    2.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.23  genpkg_rules()
    2.24  {
    2.25 -	mkdir -p $fs/usr/share/fonts/truetype/ttf-dejavu
    2.26 -	cd       $fs/usr/share/fonts/truetype/ttf-dejavu
    2.27 -	install -m644 -oroot -groot $src/ttf/* .
    2.28 -	rm ./DejaVuSans.ttf ./DejaVuSans-Bold.ttf ./DejaVuSansMono.ttf
    2.29 +	cp -a $install/* $fs
    2.30 +	IFS=$'\n'
    2.31 +	while read f; do
    2.32 +		rm $fs$f
    2.33 +	done < $WOK/$WANTED/taz/$WANTED-$VERSION/files.list
    2.34 +	unset IFS
    2.35  }
    2.36 -
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/ttf-dejavu/description.txt	Sat Jul 09 23:16:51 2016 +0300
     3.3 @@ -0,0 +1,12 @@
     3.4 +The DejaVu fonts are a font family based on the [Bitstream Vera Fonts]
     3.5 +(http://gnome.org/fonts/). Its purpose is to provide a wider range of
     3.6 +characters (see status.txt for more information) while maintaining the
     3.7 +original look and feel.
     3.8 +
     3.9 +DejaVu fonts are based on Bitstream Vera fonts version 1.10.
    3.10 +
    3.11 +This package contains 3 fonts:
    3.12 +
    3.13 +  * DejaVu Sans Mono
    3.14 +  * DejaVu Sans
    3.15 +  * DejaVu Sans Bold
     4.1 --- a/ttf-dejavu/receipt	Sat Jul 09 20:35:00 2016 +0100
     4.2 +++ b/ttf-dejavu/receipt	Sat Jul 09 23:16:51 2016 +0300
     4.3 @@ -1,26 +1,29 @@
     4.4  # SliTaz package receipt.
     4.5  
     4.6  PACKAGE="ttf-dejavu"
     4.7 -VERSION="2.34"
     4.8 +VERSION="2.35"
     4.9  CATEGORY="fonts"
    4.10 -SHORT_DESC="DejaVu True Type Font (minimum)."
    4.11 +SHORT_DESC="DejaVu TrueType fonts (minimum)"
    4.12  MAINTAINER="pankso@slitaz.org"
    4.13  LICENSE="other"
    4.14 -WEB_SITE="http://dejavu.sourceforge.net/"
    4.15 -SOURCE="dejavu-fonts-ttf"
    4.16 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    4.17 +WEB_SITE="http://dejavu-fonts.org/"
    4.18 +TARBALL="dejavu-fonts-ttf-$VERSION.tar.bz2"
    4.19  WGET_URL="$SF_MIRROR/dejavu/$TARBALL"
    4.20  TAGS="font"
    4.21  HOST_ARCH="i486 arm"
    4.22  
    4.23 +BUILD_DEPENDS="fontforge"
    4.24 +SPLIT="ttf-dejavu-extra"
    4.25 +
    4.26 +# Rules to configure and make the package.
    4.27 +compile_rules()
    4.28 +{
    4.29 +	. $stuff/compile.rules
    4.30 +}
    4.31 +
    4.32  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.33  genpkg_rules()
    4.34  {
    4.35 -	mkdir -p $fs/usr/share/fonts/truetype/ttf-dejavu
    4.36 -	install -m644 -oroot -groot \
    4.37 -		$src/ttf/DejaVuSans.ttf \
    4.38 -		$src/ttf/DejaVuSans-Bold.ttf \
    4.39 -		$src/ttf/DejaVuSansMono.ttf \
    4.40 -		$fs/usr/share/fonts/truetype/ttf-dejavu
    4.41 +	cook_copy_files DejaVuSans.ttf DejaVuSans-Bold.ttf DejaVuSansMono.ttf \
    4.42 +		*sans.conf *mono.conf
    4.43  }
    4.44 -
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/ttf-dejavu/stuff/compile.rules	Sat Jul 09 23:16:51 2016 +0300
     5.3 @@ -0,0 +1,52 @@
     5.4 +#!/bin/sh
     5.5 +# Install/repack DejaVu fonts and conf files
     5.6 +# Aleksei Bobylev <al.bobylev@gmail.com>, 2016
     5.7 +
     5.8 +
     5.9 +# Install/repack fonts
    5.10 +
    5.11 +f=$install/usr/share/fonts/truetype/ttf-dejavu
    5.12 +mkdir -p $f
    5.13 +for font in $src/ttf/*.ttf; do
    5.14 +	a="$a\n$(printf "%-32s" $(basename $font .ttf)): $(ls -l $font | awk '{print $5}') B -> "
    5.15 +	echo "Processing $(basename $font):"
    5.16 +	# About FontForge scripting and this command, see:
    5.17 +	# https://fontforge.github.io/scripting-alpha.html#Generate
    5.18 +	fontforge -quiet -lang=ff -c 'Open($1); Generate($2,"",0x90)' \
    5.19 +		$font $f/$(basename $font)
    5.20 +	a="$a$(ls -l $f/$(basename $font) | awk '{print $5}') B"
    5.21 +	echo
    5.22 +done
    5.23 +echo -e "\nResults:\n========\n$a"
    5.24 +
    5.25 +
    5.26 +# Install available configurations
    5.27 +
    5.28 +f=$install/usr/share/fontconfig/conf.avail
    5.29 +mkdir -p $f
    5.30 +cp $src/fontconfig/*.conf $f
    5.31 +
    5.32 +tmp=$(mktemp)
    5.33 +
    5.34 +# Strip *.conf files
    5.35 +for i in $install/usr/share/fontconfig/conf.avail/*; do
    5.36 +	# <?xml version="1.0" encoding="UTF-8"?>
    5.37 +	sed -i 's| encoding="UTF-8"||' $i # remove needless encoding
    5.38 +	#  <!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
    5.39 +	sed -i 's|\.\./||' $i # remove "../"
    5.40 +
    5.41 +	tr -d '\n' < $i | sed 's|[ \t][ \t]*| |g' | \
    5.42 +	sed 's|<!--|\n&|g; s|-->|&\n|g' | sed '/<!--/d' | \
    5.43 +	tr -d '\n' | sed 's|>  *<|><|g' > $tmp
    5.44 +	cat $tmp > $i
    5.45 +done
    5.46 +
    5.47 +rm $tmp
    5.48 +
    5.49 +
    5.50 +# Use the configurations
    5.51 +f=$install/etc/fonts/conf.d
    5.52 +mkdir -p $f
    5.53 +for i in $src/fontconfig/*.conf; do
    5.54 +	ln -s /usr/share/fontconfig/conf.avail/$(basename $i) $f/$(basename $i)
    5.55 +done