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

Diff of /eclass/font.eclass

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

Revision 1.35 Revision 1.36
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.35 2008/01/08 17:12:23 pva Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.36 2008/01/08 17:57:43 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#
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=( "" ) # Array, which element(s) is(are) path(s) of fontconfig-2.4 file(s) to install
26 26
27DOCS="" # Docs to install 27DOCS="" # Docs to install
28 28
29IUSE="X" 29IUSE="X"
30 30
59 fi 59 fi
60} 60}
61 61
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.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20