summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-06-09 02:08:23 +0000
committerLuca Barbato <lu_zero@gentoo.org>2013-06-09 02:08:23 +0000
commitd27fb01524011bd54cca8d6fc5539eb33911408f (patch)
treef8d8a5918fe4c9031db448fcdd15fb28b7e8c751 /eclass/font.eclass
parentupdating horizon-9999 deps (diff)
downloadhistorical-d27fb01524011bd54cca8d6fc5539eb33911408f.tar.gz
historical-d27fb01524011bd54cca8d6fc5539eb33911408f.tar.bz2
historical-d27fb01524011bd54cca8d6fc5539eb33911408f.zip
Do not require fontconfig at runtime, it isn't necessary for many purposes, thanks to Nikoli for the original patch
Diffstat (limited to 'eclass/font.eclass')
-rw-r--r--eclass/font.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index 98d6af9309a1..c3642a2b20ef 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.55 2013/04/05 13:25:25 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.56 2013/06/09 02:08:23 lu_zero Exp $
# @ECLASS: font.eclass
# @MAINTAINER:
@@ -56,7 +56,7 @@ DEPEND="X? (
media-fonts/encodings
)
>=media-libs/fontconfig-2.4.0"
-RDEPEND="${DEPEND}"
+RDEPEND=""
# @FUNCTION: font_xfont_config
# @DESCRIPTION:
@@ -211,7 +211,7 @@ font_pkg_postinst() {
echo
fi
- if [[ ${ROOT} == / ]]; then
+ if has_version media-libs/fontconfig && [[ ${ROOT} == / ]]; then
ebegin "Updating global fontcache"
fc-cache -fs
eend $?
@@ -228,7 +228,7 @@ font_pkg_postrm() {
find "${EROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \
| xargs -0 chmod -v 0644 2>/dev/null
- if [[ ${ROOT} == / ]]; then
+ if has_version media-libs/fontconfig && [[ ${ROOT} == / ]]; then
ebegin "Updating global fontcache"
fc-cache -fs
eend $?