1 |
dirtyepic 09/09/07 21:07:11 |
2 |
|
3 |
Modified: font.eclass |
4 |
Log: |
5 |
Tell the user if we've installed any config files and how to use them. |
6 |
|
7 |
Revision Changes Path |
8 |
1.45 eclass/font.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?rev=1.45&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?rev=1.45&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?r1=1.44&r2=1.45 |
13 |
|
14 |
Index: font.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/font.eclass,v |
17 |
retrieving revision 1.44 |
18 |
retrieving revision 1.45 |
19 |
diff -u -r1.44 -r1.45 |
20 |
--- font.eclass 8 Feb 2009 18:22:39 -0000 1.44 |
21 |
+++ font.eclass 7 Sep 2009 21:07:11 -0000 1.45 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.44 2009/02/08 18:22:39 pva Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.45 2009/09/07 21:07:11 dirtyepic Exp $ |
27 |
|
28 |
# @ECLASS: font.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -11,6 +11,9 @@ |
31 |
|
32 |
inherit eutils |
33 |
|
34 |
+ |
35 |
+EXPORT_FUNCTIONS pkg_setup src_install pkg_postinst pkg_postrm |
36 |
+ |
37 |
# |
38 |
# Variable declarations |
39 |
# |
40 |
@@ -150,6 +153,23 @@ |
41 |
find "${ROOT}"usr/share/fonts/ -type f '!' -perm 0644 -print0 \ |
42 |
| xargs -0 chmod -v 0644 2>/dev/null |
43 |
|
44 |
+ if [[ -n ${FONT_CONF[@]} ]]; then |
45 |
+ if has_version '>=media-libs/fontconfig-2.4'; then |
46 |
+ local conffile |
47 |
+ echo |
48 |
+ elog "The following fontconfig configuration files have been installed:" |
49 |
+ elog |
50 |
+ for conffile in "${FONT_CONF[@]}"; do |
51 |
+ if [[ -e ${ROOT}etc/fonts/conf.avail/$(basename ${conffile}) ]]; then |
52 |
+ elog " $(basename ${conffile})" |
53 |
+ fi |
54 |
+ done |
55 |
+ elog |
56 |
+ elog "Use \`eselect fontconfig\` to enable/disable them." |
57 |
+ echo |
58 |
+ fi |
59 |
+ fi |
60 |
+ |
61 |
if has_version '>=media-libs/fontconfig-2.4'; then |
62 |
if [[ ${ROOT} == "/" ]]; then |
63 |
ebegin "Updating global fontcache" |
64 |
@@ -176,4 +196,3 @@ |
65 |
fi |
66 |
} |
67 |
|
68 |
-EXPORT_FUNCTIONS src_install pkg_setup pkg_postinst pkg_postrm |