/[gentoo-x86]/eclass/font.eclass
Gentoo

Diff of /eclass/font.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.7 2004/09/15 23:10:21 kugelfang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.8 2004/10/03 13:00:32 usata Exp $
4 4
5# Author: foser <foser@gentoo.org> 5# Author: foser <foser@gentoo.org>
6 6
7# Font Eclass 7# Font Eclass
8# 8#
37 37
38 # create Xfont files 38 # create Xfont files
39 if use X ; 39 if use X ;
40 then 40 then
41 einfo "Creating fonts.scale & fonts.dir..." 41 einfo "Creating fonts.scale & fonts.dir..."
42 mkfontscale ${D}/usr/share/fonts/${PN} 42 mkfontscale "${D}/usr/share/fonts/${PN}"
43 mkfontdir \ 43 mkfontdir \
44 -e /usr/share/fonts/encodings \ 44 -e /usr/share/fonts/encodings \
45 -e /usr/share/fonts/encodings/large \ 45 -e /usr/share/fonts/encodings/large \
46 -e /usr/X11R6/$(get_libdir)/X11/fonts/encodings \ 46 -e /usr/X11R6/$(get_libdir)/X11/fonts/encodings \
47 ${D}/usr/share/fonts/${PN} 47 "${D}/usr/share/fonts/${PN}"
48 if [ -e ${FONT_S}/fonts.alias ] ; 48 if [ -e "${FONT_S}/fonts.alias" ] ;
49 then 49 then
50 doins ${FONT_S}/fonts.alias 50 doins "${FONT_S}/fonts.alias"
51 fi 51 fi
52 fi 52 fi
53 53
54} 54}
55 55
56font_xft_config() { 56font_xft_config() {
57 57
58 # create fontconfig cache 58 # create fontconfig cache
59 einfo "Creating fontconfig cache..." 59 einfo "Creating fontconfig cache..."
60 HOME="/root" /usr/bin/fc-cache -f ${D}/usr/share/fonts/${PN} 60 HOME="/root" /usr/bin/fc-cache -f "${D}/usr/share/fonts/${PN}"
61 61
62} 62}
63 63
64# 64#
65# Public inheritable functions 65# Public inheritable functions
67 67
68font_src_install() { 68font_src_install() {
69 69
70 local suffix 70 local suffix
71 71
72 cd ${FONT_S} 72 cd "${FONT_S}"
73 73
74 insinto /usr/share/fonts/${PN} 74 insinto "/usr/share/fonts/${PN}"
75 75
76 for suffix in ${FONT_SUFFIX}; do 76 for suffix in ${FONT_SUFFIX}; do
77 doins *.${suffix} 77 doins *.${suffix}
78 done 78 done
79 79
80 rm -f fonts.{dir,scale} encodings.dir 80 rm -f fonts.{dir,scale} encodings.dir
81 81
82 font_xfont_config 82 font_xfont_config
83 font_xft_config 83 font_xft_config
84 84
85 cd ${S} 85 cd "${S}"
86 # try to install some common docs 86 # try to install some common docs
87 DOCS="${DOCS} COPYRIGHT README NEWS" 87 DOCS="${DOCS} COPYRIGHT README NEWS"
88 for f in ${DOCS}; do 88 for f in ${DOCS}; do
89 [[ -e ${f} ]] && dodoc ${f} 89 [[ -e "${f}" ]] && dodoc "${f}"
90 done 90 done
91} 91}
92 92
93EXPORT_FUNCTIONS src_install 93EXPORT_FUNCTIONS src_install

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20