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

Diff of /eclass/font.eclass

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

Revision 1.34 Revision 1.35
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.34 2007/12/10 23:58:17 dirtyepic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.35 2008/01/08 17:12:23 pva 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#
14# Variable declarations 14# Variable declarations
15# 15#
16 16
17FONT_SUFFIX="" # Space delimited list of font suffixes to install 17FONT_SUFFIX="" # Space delimited list of font suffixes to install
18 18
19FONT_S="${S}" # Dir containing the fonts 19FONT_S=${S} # Dir containing the fonts
20 20
21FONT_PN="${PN}" # Last part of $FONTDIR 21FONT_PN=${PN} # Last part of $FONTDIR
22 22
23FONTDIR="/usr/share/fonts/${FONT_PN}" # This is where the fonts are installed 23FONTDIR=/usr/share/fonts/${FONT_PN} # This is where the fonts are installed
24 24
25FONT_CONF="" # Space delimited list of fontconfig-2.4 file(s) to install 25FONT_CONF="" # Space delimited list of fontconfig-2.4 file(s) to install
26 26
27DOCS="" # Docs to install 27DOCS="" # Docs to install
28 28
62font_fontconfig() { 62font_fontconfig() {
63 local conffile 63 local conffile
64 if [[ -n ${FONT_CONF} ]]; then 64 if [[ -n ${FONT_CONF} ]]; then
65 if has_version '>=media-libs/fontconfig-2.4'; then 65 if has_version '>=media-libs/fontconfig-2.4'; then
66 insinto /etc/fonts/conf.avail/ 66 insinto /etc/fonts/conf.avail/
67 for conffile in ${FONT_CONF}; do 67 for conffile in ${FONT_CONF[@]}; do
68 [[ -e ${conffile} ]] && doins ${conffile} 68 [[ -e ${conffile} ]] && doins ${conffile}
69 done 69 done
70 fi 70 fi
71 fi 71 fi
72} 72}

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20