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

Diff of /eclass/font.eclass

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

Revision 1.32 Revision 1.33
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.32 2007/09/16 20:00:56 dirtyepic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.33 2007/09/19 02:48:20 dirtyepic 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#
108} 108}
109 109
110font_pkg_postinst() { 110font_pkg_postinst() {
111 # unreadable font files = fontconfig segfaults 111 # unreadable font files = fontconfig segfaults
112 find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \ 112 find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \
113 | xargs -r -0 chmod -v 0644 113 | xargs -0 chmod -v 0644 2>/dev/null
114 114
115 if has_version '>=media-libs/fontconfig-2.4'; then 115 if has_version '>=media-libs/fontconfig-2.4'; then
116 if [ ${ROOT} == "/" ]; then 116 if [ ${ROOT} == "/" ]; then
117 ebegin "Updating global fontcache" 117 ebegin "Updating global fontcache"
118 fc-cache -fs 118 fc-cache -fs
122} 122}
123 123
124font_pkg_postrm() { 124font_pkg_postrm() {
125 # unreadable font files = fontconfig segfaults 125 # unreadable font files = fontconfig segfaults
126 find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \ 126 find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \
127 | xargs -r -0 chmod -v 0644 127 | xargs -0 chmod -v 0644 2>/dev/null
128 128
129 if has_version '>=media-libs/fontconfig-2.4'; then 129 if has_version '>=media-libs/fontconfig-2.4'; then
130 if [ ${ROOT} == "/" ]; then 130 if [ ${ROOT} == "/" ]; then
131 ebegin "Updating global fontcache" 131 ebegin "Updating global fontcache"
132 fc-cache -fs 132 fc-cache -fs

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.20