Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d134991b1c0c085f5a17b813ce223b64b1441bcf

commit d134991b1c0c085f5a17b813ce223b64b1441bcf
Author: James Buren <r...@frugalware.org>
Date:   Thu Jan 28 08:56:24 2010 -0600

fonts.sh
* append to makedepends
* add support for bdf fonts, convert them to pcf

diff --git a/source/include/fonts.sh b/source/include/fonts.sh
index d467f7f..a7d05e9 100644
--- a/source/include/fonts.sh
+++ b/source/include/fonts.sh
@@ -47,9 +47,11 @@ _F_cd_path='.'

###
# == APPENDED VARIABLES
+# * makedepends
# * rodepends
# * options
###
+makedepends=(${makedepen...@]} 'bdftopcf')
rodepends=(${rodepen...@]} 'mkfontscale' 'mkfontdir' 'fontconfig')
options=(${optio...@]} 'genscriptlet')

@@ -60,10 +62,17 @@ options=(${optio...@]} 'genscriptlet')
Fbuild_fonts() {

# find and install all font extensions we support
-  for i in `find -iregex '.*\.\(ttf\|otf\|pcf\|pcf.gz\|afm\|pfa\)'`; do
+  for i in `find -iregex '.*\.\(bdf\|ttf\|otf\|pcf\|pcf.gz\|afm\|pfa\)'`; do
Ffile "$i" "$_F_fonts_dir/`basename $i`"
done

+  # find any BDF fonts and convert them
+  for i in `find "$Fdestdir" -name "*.bdf"`; do
+    Fmessage "Converting BDF font to PCF font: $i"
+    bdftopcf "$i" -o "${i/bdf/pcf}" || Fdie
+    rm -f "$i" || Fdie
+  done
+
# find any uncompressed PCF fonts and compress them
for i in `find "$Fdestdir" -name "*.pcf"`; do
Fmessage "Compressing PCF font: $i"
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to