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

Diff of /eclass/font.eclass

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

Revision 1.56 Revision 1.57
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.56 2013/06/09 02:08:23 lu_zero Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.57 2013/07/25 13:13:18 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# @BLURB: Eclass to make font installation uniform 8# @BLURB: Eclass to make font installation uniform
52IUSE="X" 52IUSE="X"
53 53
54DEPEND="X? ( 54DEPEND="X? (
55 x11-apps/mkfontdir 55 x11-apps/mkfontdir
56 media-fonts/encodings 56 media-fonts/encodings
57 ) 57 )"
58 >=media-libs/fontconfig-2.4.0"
59RDEPEND="" 58RDEPEND=""
60 59
61# @FUNCTION: font_xfont_config 60# @FUNCTION: font_xfont_config
62# @DESCRIPTION: 61# @DESCRIPTION:
63# Generate Xorg font files (mkfontscale/mkfontdir). 62# Generate Xorg font files (mkfontscale/mkfontdir).
213 212
214 if has_version media-libs/fontconfig && [[ ${ROOT} == / ]]; then 213 if has_version media-libs/fontconfig && [[ ${ROOT} == / ]]; then
215 ebegin "Updating global fontcache" 214 ebegin "Updating global fontcache"
216 fc-cache -fs 215 fc-cache -fs
217 eend $? 216 eend $?
217 else
218 einfo "Skipping fontcache update (media-libs/fontconfig is not installed or ROOT != /)"
218 fi 219 fi
219} 220}
220 221
221# @FUNCTION: font_pkg_postrm 222# @FUNCTION: font_pkg_postrm
222# @DESCRIPTION: 223# @DESCRIPTION:
230 231
231 if has_version media-libs/fontconfig && [[ ${ROOT} == / ]]; then 232 if has_version media-libs/fontconfig && [[ ${ROOT} == / ]]; then
232 ebegin "Updating global fontcache" 233 ebegin "Updating global fontcache"
233 fc-cache -fs 234 fc-cache -fs
234 eend $? 235 eend $?
236 else
237 einfo "Skipping fontcache update (media-libs/fontconfig is not installed or ROOT != /)"
235 fi 238 fi
236} 239}

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

  ViewVC Help
Powered by ViewVC 1.1.20