/[gentoo-x86]/eclass/font.eclass
Gentoo

Diff of /eclass/font.eclass

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

Revision 1.19 Revision 1.23
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/font.eclass,v 1.19 2006/09/17 14:33:59 foser Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.23 2007/06/24 06:15:21 dirtyepic Exp $
4 4
5# Author: foser <foser@gentoo.org> 5# Author: foser <foser@gentoo.org>
6 6
7# Font Eclass 7# Font Eclass
8# 8#
24 24
25DOCS="" # Docs to install 25DOCS="" # Docs to install
26 26
27IUSE="X" 27IUSE="X"
28 28
29DEPEND="X? ( || ( x11-apps/mkfontdir virtual/x11 ) ) 29DEPEND="X? ( x11-apps/mkfontdir )
30 media-libs/fontconfig" 30 media-libs/fontconfig"
31 31
32# 32#
33# Public functions 33# Public functions
34# 34#
64# Public inheritable functions 64# Public inheritable functions
65# 65#
66 66
67font_src_install() { 67font_src_install() {
68 68
69 local suffix 69 local suffix commondoc
70 70
71 cd "${FONT_S}" 71 cd "${FONT_S}"
72 72
73 insinto "${FONTDIR}" 73 insinto "${FONTDIR}"
74 74
80 80
81 font_xfont_config 81 font_xfont_config
82 font_xft_config 82 font_xft_config
83 83
84 cd "${S}" 84 cd "${S}"
85 # try to install some common docs 85 dodoc ${DOCS} 2> /dev/null
86 DOCS="${DOCS} COPYRIGHT README NEWS"
87 dodoc ${DOCS}
88 86
87 # install common docs
88 for commondoc in COPYRIGHT README NEWS AUTHORS BUGS ChangeLog; do
89 [ -s ${commondoc} ] && dodoc ${commondoc}
90 done
89} 91}
90 92
91font_pkg_setup() { 93font_pkg_setup() {
92 94
93 # make sure we get no colissions 95 # make sure we get no colissions
94 # setup is not the nicest place, but preinst doesn't cut it 96 # setup is not the nicest place, but preinst doesn't cut it
95 rm -f "${FONTDIR}/fonts.cache-1" 97 [[ -e "${FONTDIR}/fonts.cache-1" ]] && rm -f "${FONTDIR}/fonts.cache-1"
96 98
97} 99}
98 100
99font_pkg_postinst() { 101font_pkg_postinst() {
100 102

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20