/[gentoo-x86]/eclass/x-modular.eclass
Gentoo

Diff of /eclass/x-modular.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.110 Revision 1.111
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.110 2009/07/24 13:32:44 pva Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.111 2009/08/22 20:12:42 dirtyepic Exp $
4# 4#
5# @ECLASS: x-modular.eclass 5# @ECLASS: x-modular.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org 7# Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org
8# @BLURB: Reduces code duplication in the modularized X11 ebuilds. 8# @BLURB: Reduces code duplication in the modularized X11 ebuilds.
145 FONT_DIR=${FONT_DIR/ttf/TTF} 145 FONT_DIR=${FONT_DIR/ttf/TTF}
146 FONT_DIR=${FONT_DIR/otf/OTF} 146 FONT_DIR=${FONT_DIR/otf/OTF}
147 FONT_DIR=${FONT_DIR/type1/Type1} 147 FONT_DIR=${FONT_DIR/type1/Type1}
148 FONT_DIR=${FONT_DIR/speedo/Speedo} 148 FONT_DIR=${FONT_DIR/speedo/Speedo}
149 149
150 # Set up configure option 150 # Set up configure options, wrapped so ebuilds can override if need be
151 if [[ -z ${FONT_OPTIONS} ]]; then
151 FONT_OPTIONS="--with-fontdir=\"/usr/share/fonts/${FONT_DIR}\"" 152 FONT_OPTIONS="--with-fontdir=\"/usr/share/fonts/${FONT_DIR}\""
153 fi
152 154
153 if [[ -n "${FONT}" ]]; then 155 if [[ -n "${FONT}" ]]; then
154 if [[ ${PN##*-} = misc ]] || [[ ${PN##*-} = 75dpi ]] || [[ ${PN##*-} = 100dpi ]] || [[ ${PN##*-} = cyrillic ]]; then 156 if [[ ${PN##*-} = misc ]] || [[ ${PN##*-} = 75dpi ]] || [[ ${PN##*-} = 100dpi ]] || [[ ${PN##*-} = cyrillic ]]; then
155 IUSE="${IUSE} nls" 157 IUSE="${IUSE} nls"
156 fi 158 fi
559 die "${msg}" 561 die "${msg}"
560 fi 562 fi
561 563
562 create_fonts_scale 564 create_fonts_scale
563 create_fonts_dir 565 create_fonts_dir
564 fix_font_permissions
565 create_font_cache 566 create_font_cache
566} 567}
567 568
568# @FUNCTION: remove_font_metadata 569# @FUNCTION: remove_font_metadata
569# @USAGE: 570# @USAGE:
652 fi 653 fi
653 done 654 done
654 eend 0 655 eend 0
655} 656}
656 657
657# @FUNCTION: fix_font_permissions
658# @USAGE:
659# @DESCRIPTION:
660# Font files should have 644 permissions. Ensure this is the case.
661fix_font_permissions() {
662 ebegin "Fixing permissions"
663 for DIR in ${FONT_DIR}; do
664 find "${ROOT}"/usr/share/fonts/${DIR} -type f -name 'font.*' \
665 -exec chmod 0644 {} \;
666 done
667 eend 0
668}
669
670# @FUNCTION: create_font_cache 658# @FUNCTION: create_font_cache
671# @USAGE: 659# @USAGE:
672# @DESCRIPTION: 660# @DESCRIPTION:
673# Create fonts.cache-1 files, used by the new client-side fonts 661# Create fonts.cache-1 files, used by the new client-side fonts
674# subsystem. 662# subsystem.

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111

  ViewVC Help
Powered by ViewVC 1.1.20