# HG changeset patch # User Aleksej Bobylev # Date 1468095411 -10800 # Node ID 8a94af08d217a3ded06e3b748f4c136708a4bbc2 # Parent 697186cadac0d88f7078fa248f53a237f595b2f8 Up ttf-dejavu (2.35), shrink files diff -r 697186cadac0 -r 8a94af08d217 ttf-dejavu-extra/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ttf-dejavu-extra/description.txt Sat Jul 09 23:16:51 2016 +0300 @@ -0,0 +1,33 @@ +The DejaVu fonts are a font family based on the [Bitstream Vera Fonts] +(http://gnome.org/fonts/). Its purpose is to provide a wider range of +characters (see status.txt for more information) while maintaining the +original look and feel. + +DejaVu fonts are based on Bitstream Vera fonts version 1.10. + +Available fonts: + + * DejaVu Sans Mono + * DejaVu Sans Mono Bold + * DejaVu Sans Mono Bold Oblique + * DejaVu Sans Mono Oblique + * DejaVu Sans + * DejaVu Sans Bold + * DejaVu Sans Bold Oblique + * DejaVu Sans Oblique + * DejaVu Sans ExtraLight (experimental) + * DejaVu Serif + * DejaVu Serif Bold + * DejaVu Serif Bold Italic (experimental) + * DejaVu Serif Italic (experimental) + * DejaVu Sans Condensed (experimental) + * DejaVu Sans Condensed Bold (experimental) + * DejaVu Sans Condensed Bold Oblique (experimental) + * DejaVu Sans Condensed Oblique (experimental) + * DejaVu Serif Condensed (experimental) + * DejaVu Serif Condensed Bold (experimental) + * DejaVu Serif Condensed Bold Italic (experimental) + * DejaVu Serif Condensed Italic (experimental) + +All fonts are also available as derivative called DejaVu LGC with support +only for Latin, Greek and Cyrillic scripts. diff -r 697186cadac0 -r 8a94af08d217 ttf-dejavu-extra/receipt --- a/ttf-dejavu-extra/receipt Sat Jul 09 20:35:00 2016 +0100 +++ b/ttf-dejavu-extra/receipt Sat Jul 09 23:16:51 2016 +0300 @@ -1,21 +1,24 @@ # SliTaz package receipt. PACKAGE="ttf-dejavu-extra" -VERSION="2.34" +VERSION="2.35" CATEGORY="fonts" -SHORT_DESC="DejaVu True Type Font (extra)." +SHORT_DESC="DejaVu TrueType fonts (extra)" MAINTAINER="pankso@slitaz.org" LICENSE="other" -WEB_SITE="http://dejavu.sourceforge.net/" +WEB_SITE="http://dejavu-fonts.org/" +TAGS="font" + WANTED="ttf-dejavu" -TAGS="font" +DEPENDS="ttf-dejavu" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/fonts/truetype/ttf-dejavu - cd $fs/usr/share/fonts/truetype/ttf-dejavu - install -m644 -oroot -groot $src/ttf/* . - rm ./DejaVuSans.ttf ./DejaVuSans-Bold.ttf ./DejaVuSansMono.ttf + cp -a $install/* $fs + IFS=$'\n' + while read f; do + rm $fs$f + done < $WOK/$WANTED/taz/$WANTED-$VERSION/files.list + unset IFS } - diff -r 697186cadac0 -r 8a94af08d217 ttf-dejavu/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ttf-dejavu/description.txt Sat Jul 09 23:16:51 2016 +0300 @@ -0,0 +1,12 @@ +The DejaVu fonts are a font family based on the [Bitstream Vera Fonts] +(http://gnome.org/fonts/). Its purpose is to provide a wider range of +characters (see status.txt for more information) while maintaining the +original look and feel. + +DejaVu fonts are based on Bitstream Vera fonts version 1.10. + +This package contains 3 fonts: + + * DejaVu Sans Mono + * DejaVu Sans + * DejaVu Sans Bold diff -r 697186cadac0 -r 8a94af08d217 ttf-dejavu/receipt --- a/ttf-dejavu/receipt Sat Jul 09 20:35:00 2016 +0100 +++ b/ttf-dejavu/receipt Sat Jul 09 23:16:51 2016 +0300 @@ -1,26 +1,29 @@ # SliTaz package receipt. PACKAGE="ttf-dejavu" -VERSION="2.34" +VERSION="2.35" CATEGORY="fonts" -SHORT_DESC="DejaVu True Type Font (minimum)." +SHORT_DESC="DejaVu TrueType fonts (minimum)" MAINTAINER="pankso@slitaz.org" LICENSE="other" -WEB_SITE="http://dejavu.sourceforge.net/" -SOURCE="dejavu-fonts-ttf" -TARBALL="$SOURCE-$VERSION.tar.bz2" +WEB_SITE="http://dejavu-fonts.org/" +TARBALL="dejavu-fonts-ttf-$VERSION.tar.bz2" WGET_URL="$SF_MIRROR/dejavu/$TARBALL" TAGS="font" HOST_ARCH="i486 arm" +BUILD_DEPENDS="fontforge" +SPLIT="ttf-dejavu-extra" + +# Rules to configure and make the package. +compile_rules() +{ + . $stuff/compile.rules +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/fonts/truetype/ttf-dejavu - install -m644 -oroot -groot \ - $src/ttf/DejaVuSans.ttf \ - $src/ttf/DejaVuSans-Bold.ttf \ - $src/ttf/DejaVuSansMono.ttf \ - $fs/usr/share/fonts/truetype/ttf-dejavu + cook_copy_files DejaVuSans.ttf DejaVuSans-Bold.ttf DejaVuSansMono.ttf \ + *sans.conf *mono.conf } - diff -r 697186cadac0 -r 8a94af08d217 ttf-dejavu/stuff/compile.rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ttf-dejavu/stuff/compile.rules Sat Jul 09 23:16:51 2016 +0300 @@ -0,0 +1,52 @@ +#!/bin/sh +# Install/repack DejaVu fonts and conf files +# Aleksei Bobylev , 2016 + + +# Install/repack fonts + +f=$install/usr/share/fonts/truetype/ttf-dejavu +mkdir -p $f +for font in $src/ttf/*.ttf; do + a="$a\n$(printf "%-32s" $(basename $font .ttf)): $(ls -l $font | awk '{print $5}') B -> " + echo "Processing $(basename $font):" + # About FontForge scripting and this command, see: + # https://fontforge.github.io/scripting-alpha.html#Generate + fontforge -quiet -lang=ff -c 'Open($1); Generate($2,"",0x90)' \ + $font $f/$(basename $font) + a="$a$(ls -l $f/$(basename $font) | awk '{print $5}') B" + echo +done +echo -e "\nResults:\n========\n$a" + + +# Install available configurations + +f=$install/usr/share/fontconfig/conf.avail +mkdir -p $f +cp $src/fontconfig/*.conf $f + +tmp=$(mktemp) + +# Strip *.conf files +for i in $install/usr/share/fontconfig/conf.avail/*; do + # + sed -i 's| encoding="UTF-8"||' $i # remove needless encoding + # + sed -i 's|\.\./||' $i # remove "../" + + tr -d '\n' < $i | sed 's|[ \t][ \t]*| |g' | \ + sed 's||&\n|g' | sed '/