summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2007-08-04 06:04:07 +0000
committerRyan Hill <rhill@gentoo.org>2007-08-04 06:04:07 +0000
commit9881b4e53f841b793e10aeb29d13859b7e9bfbab (patch)
tree67aa2ab0ffbd3901b2b1849ab6e442251f6289b6 /eclass/font.eclass
parentStable on amd64. See security bug #183958. (diff)
downloadhistorical-9881b4e53f841b793e10aeb29d13859b7e9bfbab.tar.gz
historical-9881b4e53f841b793e10aeb29d13859b7e9bfbab.tar.bz2
historical-9881b4e53f841b793e10aeb29d13859b7e9bfbab.zip
Force cache regeneration.
Diffstat (limited to 'eclass/font.eclass')
-rw-r--r--eclass/font.eclass18
1 files changed, 4 insertions, 14 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index 590d62a9b1f9..afa99af2cea9 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.25 2007/07/29 22:20:39 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.26 2007/08/04 06:04:07 dirtyepic Exp $
# Author: foser <foser@gentoo.org>
@@ -36,7 +36,6 @@ DEPEND="X? ( x11-apps/mkfontdir )
#
font_xfont_config() {
-
# create Xfont files
if use X ; then
einfo "Creating fonts.scale & fonts.dir ..."
@@ -49,11 +48,9 @@ font_xfont_config() {
doins "${FONT_S}/fonts.alias"
fi
fi
-
}
font_xft_config() {
-
if ! has_version '>=media-libs/fontconfig-2.4'; then
# create fontconfig cache
einfo "Creating fontconfig cache ..."
@@ -79,7 +76,6 @@ font_fontconfig() {
#
font_src_install() {
-
local suffix commondoc
cd "${FONT_S}"
@@ -106,35 +102,29 @@ font_src_install() {
}
font_pkg_setup() {
-
# make sure we get no collisions
# setup is not the nicest place, but preinst doesn't cut it
[[ -e "${FONTDIR}/fonts.cache-1" ]] && rm -f "${FONTDIR}/fonts.cache-1"
-
}
font_pkg_postinst() {
-
if has_version '>=media-libs/fontconfig-2.4'; then
if [ ${ROOT} == "/" ]; then
ebegin "Updating global fontcache"
- fc-cache -s
+ fc-cache -fs
eend $?
fi
fi
-
}
font_pkg_postrm() {
-
if has_version '>=media-libs/fontconfig-2.4'; then
if [ ${ROOT} == "/" ]; then
ebegin "Updating global fontcache"
- fc-cache -s
+ fc-cache -fs
eend $?
fi
fi
-
}
EXPORT_FUNCTIONS src_install pkg_setup pkg_postinst pkg_postrm