summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2009-09-07 21:07:11 +0000
committerRyan Hill <rhill@gentoo.org>2009-09-07 21:07:11 +0000
commit8d4e44fa3301a8bc89daaa6cb2ae724c82d3f836 (patch)
tree82e1feb993078713b64d949e5786c169a34a6f70 /eclass/font.eclass
parentBump (diff)
downloadhistorical-8d4e44fa3301a8bc89daaa6cb2ae724c82d3f836.tar.gz
historical-8d4e44fa3301a8bc89daaa6cb2ae724c82d3f836.tar.bz2
historical-8d4e44fa3301a8bc89daaa6cb2ae724c82d3f836.zip
Tell the user if we've installed any config files and how to use them.
Diffstat (limited to 'eclass/font.eclass')
-rw-r--r--eclass/font.eclass23
1 files changed, 21 insertions, 2 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index 949039abc0e7..24ecf9445a41 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -1,6 +1,6 @@
# 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.44 2009/02/08 18:22:39 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.45 2009/09/07 21:07:11 dirtyepic Exp $
# @ECLASS: font.eclass
# @MAINTAINER:
@@ -11,6 +11,9 @@
inherit eutils
+
+EXPORT_FUNCTIONS pkg_setup src_install pkg_postinst pkg_postrm
+
#
# Variable declarations
#
@@ -150,6 +153,23 @@ font_pkg_postinst() {
find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \
| xargs -0 chmod -v 0644 2>/dev/null
+ if [[ -n ${FONT_CONF[@]} ]]; then
+ if has_version '>=media-libs/fontconfig-2.4'; then
+ local conffile
+ echo
+ elog "The following fontconfig configuration files have been installed:"
+ elog
+ for conffile in "${FONT_CONF[@]}"; do
+ if [[ -e ${ROOT}etc/fonts/conf.avail/$(basename ${conffile}) ]]; then
+ elog " $(basename ${conffile})"
+ fi
+ done
+ elog
+ elog "Use \`eselect fontconfig\` to enable/disable them."
+ echo
+ fi
+ fi
+
if has_version '>=media-libs/fontconfig-2.4'; then
if [[ ${ROOT} == "/" ]]; then
ebegin "Updating global fontcache"
@@ -176,4 +196,3 @@ font_pkg_postrm() {
fi
}
-EXPORT_FUNCTIONS src_install pkg_setup pkg_postinst pkg_postrm