summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2007-07-29 22:20:39 +0000
committerRyan Hill <dirtyepic@gentoo.org>2007-07-29 22:20:39 +0000
commite746e7e8b953991aa3c62c504e9649fc0e1d87f1 (patch)
tree3715293f75ae38ad1decccb26695638e52c80f24 /eclass
parentSpecify path in FONT_CONF. (diff)
downloadgentoo-2-e746e7e8b953991aa3c62c504e9649fc0e1d87f1.tar.gz
gentoo-2-e746e7e8b953991aa3c62c504e9649fc0e1d87f1.tar.bz2
gentoo-2-e746e7e8b953991aa3c62c504e9649fc0e1d87f1.zip
Allow FONT_CONF to work outside of FILESDIR.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/font.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index e5266be8ee4a..590d62a9b1f9 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.24 2007/07/15 22:24:15 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.25 2007/07/29 22:20:39 dirtyepic Exp $
# Author: foser <foser@gentoo.org>
@@ -63,15 +63,15 @@ font_xft_config() {
}
font_fontconfig() {
-
local conffile
- if has_version '>=media-libs/fontconfig-2.4'; then
- insinto /etc/fonts/conf.avail/
- for conffile in "${FONT_CONF}"; do
- [[ -e "${FILESDIR}/${conffile}" ]] && doins "${FILESDIR}/${conffile}"
- done
+ if [[ -n ${FONT_CONF} ]]; then
+ if has_version '>=media-libs/fontconfig-2.4'; then
+ insinto /etc/fonts/conf.avail/
+ for conffile in "${FONT_CONF}"; do
+ [[ -e ${conffile} ]] && doins ${conffile}
+ done
+ fi
fi
-
}
#