summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2006-10-30 05:57:41 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2006-10-30 05:57:41 +0000
commita4f0676a4005802e3957f8b9e6f4414b13af340f (patch)
treecfd09fc309759c784df363eb8f3318a5186c1eb7 /eclass/x-modular.eclass
parentSome initial changes so x-modular.eclass can start using this: Allow for DOCS... (diff)
downloadhistorical-a4f0676a4005802e3957f8b9e6f4414b13af340f.tar.gz
historical-a4f0676a4005802e3957f8b9e6f4414b13af340f.tar.bz2
historical-a4f0676a4005802e3957f8b9e6f4414b13af340f.zip
Start using font.eclass: Replace create_font_cache() code with a call to font_pkg_postinst(), and call font_pkg_postrm() in x-modular_pkg_postrm(). Also move EXPORT_FUNCTIONS down to the bottom so font.eclass functions don't override x-modular.eclass ones.
Diffstat (limited to 'eclass/x-modular.eclass')
-rw-r--r--eclass/x-modular.eclass18
1 files changed, 6 insertions, 12 deletions
diff --git a/eclass/x-modular.eclass b/eclass/x-modular.eclass
index ff153baf6a21..1cc3575ba26e 100644
--- a/eclass/x-modular.eclass
+++ b/eclass/x-modular.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.77 2006/10/30 05:44:33 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.78 2006/10/30 05:57:41 dberkholz Exp $
#
# Author: Donnie Berkholz <spyderous@gentoo.org>
#
@@ -25,9 +25,7 @@
#
# Pretty much everything else should be automatic.
-EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
-
-inherit eutils libtool multilib toolchain-funcs flag-o-matic autotools
+inherit eutils libtool multilib toolchain-funcs flag-o-matic autotools font
# Directory prefix to use for everything
XDIR="/usr"
@@ -379,6 +377,7 @@ x-modular_pkg_postinst() {
x-modular_pkg_postrm() {
if [[ -n "${FONT}" ]]; then
cleanup_fonts
+ font_pkg_postrm
fi
}
@@ -533,12 +532,7 @@ fix_font_permissions() {
}
create_font_cache() {
- # danarmak found out that fc-cache should be run AFTER all the above
- # stuff, as otherwise the cache is invalid, and has to be run again
- # as root anyway
- if [[ -x ${ROOT}/usr/bin/fc-cache ]]; then
- ebegin "Creating FC font cache"
- HOME="/root" ${ROOT}/usr/bin/fc-cache
- eend 0
- fi
+ font_pkg_postinst
}
+
+EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm