Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: x-modular.eclass
Date: Sat, 22 Aug 2009 20:12:45
Message-Id: E1Mewx9-0002GT-3F@stork.gentoo.org
1 dirtyepic 09/08/22 20:12:43
2
3 Modified: x-modular.eclass
4 Log:
5 Allow fonts to override --with-fontdir, for fonts installing more than one typeface. Drop fix_font_permissions as it doesn't do anything and is handled by font.eclass already.
6
7 Revision Changes Path
8 1.111 eclass/x-modular.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?rev=1.111&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?rev=1.111&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?r1=1.110&r2=1.111
13
14 Index: x-modular.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v
17 retrieving revision 1.110
18 retrieving revision 1.111
19 diff -u -r1.110 -r1.111
20 --- x-modular.eclass 24 Jul 2009 13:32:44 -0000 1.110
21 +++ x-modular.eclass 22 Aug 2009 20:12:42 -0000 1.111
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2005 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.110 2009/07/24 13:32:44 pva Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.111 2009/08/22 20:12:42 dirtyepic Exp $
27 #
28 # @ECLASS: x-modular.eclass
29 # @MAINTAINER:
30 @@ -147,8 +147,10 @@
31 FONT_DIR=${FONT_DIR/type1/Type1}
32 FONT_DIR=${FONT_DIR/speedo/Speedo}
33
34 - # Set up configure option
35 - FONT_OPTIONS="--with-fontdir=\"/usr/share/fonts/${FONT_DIR}\""
36 + # Set up configure options, wrapped so ebuilds can override if need be
37 + if [[ -z ${FONT_OPTIONS} ]]; then
38 + FONT_OPTIONS="--with-fontdir=\"/usr/share/fonts/${FONT_DIR}\""
39 + fi
40
41 if [[ -n "${FONT}" ]]; then
42 if [[ ${PN##*-} = misc ]] || [[ ${PN##*-} = 75dpi ]] || [[ ${PN##*-} = 100dpi ]] || [[ ${PN##*-} = cyrillic ]]; then
43 @@ -561,7 +563,6 @@
44
45 create_fonts_scale
46 create_fonts_dir
47 - fix_font_permissions
48 create_font_cache
49 }
50
51 @@ -654,19 +655,6 @@
52 eend 0
53 }
54
55 -# @FUNCTION: fix_font_permissions
56 -# @USAGE:
57 -# @DESCRIPTION:
58 -# Font files should have 644 permissions. Ensure this is the case.
59 -fix_font_permissions() {
60 - ebegin "Fixing permissions"
61 - for DIR in ${FONT_DIR}; do
62 - find "${ROOT}"/usr/share/fonts/${DIR} -type f -name 'font.*' \
63 - -exec chmod 0644 {} \;
64 - done
65 - eend 0
66 -}
67 -
68 # @FUNCTION: create_font_cache
69 # @USAGE:
70 # @DESCRIPTION: