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

Diff of /eclass/font.eclass

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

Revision 1.3 Revision 1.4
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 Gentoo Technologies, Inc.
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.3 2004/06/21 09:17:54 usata Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.4 2004/06/23 22:04:47 mr_bones_ 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#
32# 32#
33 33
34font_xfont_config() { 34font_xfont_config() {
35 35
36 # create Xfont files 36 # create Xfont files
37 if [ -n "`use X`" ] ; 37 if use X ;
38 then 38 then
39 einfo "Creating fonts.scale & fonts.dir..." 39 einfo "Creating fonts.scale & fonts.dir..."
40 mkfontscale ${D}/usr/share/fonts/${PN} 40 mkfontscale ${D}/usr/share/fonts/${PN}
41 mkfontdir \ 41 mkfontdir \
42 -e /usr/share/fonts/encodings \ 42 -e /usr/share/fonts/encodings \
63# Public inheritable functions 63# Public inheritable functions
64# 64#
65 65
66font_src_install() { 66font_src_install() {
67 67
68 local suffix doc 68 local suffix
69 69
70 cd ${FONT_S} 70 cd ${FONT_S}
71 71
72 insinto /usr/share/fonts/${PN} 72 insinto /usr/share/fonts/${PN}
73 73
81 font_xft_config 81 font_xft_config
82 82
83 cd ${S} 83 cd ${S}
84 # try to install some common docs 84 # try to install some common docs
85 DOCS="${DOCS} COPYRIGHT README NEWS" 85 DOCS="${DOCS} COPYRIGHT README NEWS"
86 for doc in ${DOCS}; do 86 dodoc ${DOCS}
87 dodoc ${doc}
88 done
89
90} 87}
91 88
92EXPORT_FUNCTIONS src_install 89EXPORT_FUNCTIONS src_install

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20