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

Diff of /eclass/font.eclass

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

Revision 1.2 Revision 1.6
1# Copyright 1999-2004 Gentoo Technologies, Inc. 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.2 2004/05/31 14:59:26 foser Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.6 2004/06/27 18:42:40 usata 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 \
43 -e /usr/share/fonts/encodings/large \ 43 -e /usr/share/fonts/encodings/large \
44 -e /usr/X11R6/lib/X11/fonts/encodings \ 44 -e /usr/X11R6/lib/X11/fonts/encodings \
45 ${D}/usr/share/fonts/${PN} 45 ${D}/usr/share/fonts/${PN}
46 if [ -e ${FONT_S}/fonts.alias ] ;
47 then
46 doins ${FONT_S}/fonts.alias 48 doins ${FONT_S}/fonts.alias
49 fi
47 fi 50 fi
48 51
49} 52}
50 53
51font_xft_config() { 54font_xft_config() {
60# Public inheritable functions 63# Public inheritable functions
61# 64#
62 65
63font_src_install() { 66font_src_install() {
64 67
65 local suffix doc 68 local suffix
66 69
67 cd ${FONT_S} 70 cd ${FONT_S}
68 71
69 insinto /usr/share/fonts/${PN} 72 insinto /usr/share/fonts/${PN}
70 73
78 font_xft_config 81 font_xft_config
79 82
80 cd ${S} 83 cd ${S}
81 # try to install some common docs 84 # try to install some common docs
82 DOCS="${DOCS} COPYRIGHT README NEWS" 85 DOCS="${DOCS} COPYRIGHT README NEWS"
83 for doc in ${DOCS}; do 86 for f in ${DOCS}; do
84 dodoc ${doc} 87 [[ -e ${f} ]] && dodoc ${f}
85 done 88 done
86
87} 89}
88 90
89EXPORT_FUNCTIONS src_install 91EXPORT_FUNCTIONS src_install

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20