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

Diff of /eclass/font.eclass

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

Revision 1.43 Revision 1.44
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.43 2009/01/12 22:54:46 maekke Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.44 2009/02/08 18:22:39 pva Exp $
4 4
5# @ECLASS: font.eclass 5# @ECLASS: font.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# fonts@gentoo.org 7# fonts@gentoo.org
8# 8#
149 # unreadable font files = fontconfig segfaults 149 # unreadable font files = fontconfig segfaults
150 find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \ 150 find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \
151 | xargs -0 chmod -v 0644 2>/dev/null 151 | xargs -0 chmod -v 0644 2>/dev/null
152 152
153 if has_version '>=media-libs/fontconfig-2.4'; then 153 if has_version '>=media-libs/fontconfig-2.4'; then
154 if [ ${ROOT} == "/" ]; then 154 if [[ ${ROOT} == "/" ]]; then
155 ebegin "Updating global fontcache" 155 ebegin "Updating global fontcache"
156 fc-cache -fs 156 fc-cache -fs
157 eend $? 157 eend $?
158 fi 158 fi
159 fi 159 fi
166 # unreadable font files = fontconfig segfaults 166 # unreadable font files = fontconfig segfaults
167 find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \ 167 find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \
168 | xargs -0 chmod -v 0644 2>/dev/null 168 | xargs -0 chmod -v 0644 2>/dev/null
169 169
170 if has_version '>=media-libs/fontconfig-2.4'; then 170 if has_version '>=media-libs/fontconfig-2.4'; then
171 if [ ${ROOT} == "/" ]; then 171 if [[ ${ROOT} == "/" ]]; then
172 ebegin "Updating global fontcache" 172 ebegin "Updating global fontcache"
173 fc-cache -fs 173 fc-cache -fs
174 eend $? 174 eend $?
175 fi 175 fi
176 fi 176 fi

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

  ViewVC Help
Powered by ViewVC 1.1.20