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

Diff of /eclass/font.eclass

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

Revision 1.10 Revision 1.11
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.10 2004/10/19 19:51:12 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.11 2005/05/28 18:38:17 foser 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#
24DOCS="" # Docs to install 24DOCS="" # Docs to install
25 25
26IUSE="${IUSE} X" 26IUSE="${IUSE} X"
27 27
28DEPEND="${DEPEND} \ 28DEPEND="${DEPEND} \
29 X? ( virtual/x11 ) \ 29 X? ( virtual/x11 ) \
30 media-libs/fontconfig" 30 media-libs/fontconfig"
31 31
32# 32#
33# Public functions 33# Public functions
34# 34#
35 35
36font_xfont_config() { 36font_xfont_config() {
37 37
38 # create Xfont files 38 # create Xfont files
39 if use X ; 39 if use X ; then
40 then
41 einfo "Creating fonts.scale & fonts.dir ..." 40 einfo "Creating fonts.scale & fonts.dir ..."
42 mkfontscale "${D}/usr/share/fonts/${PN}" 41 mkfontscale "${D}/usr/share/fonts/${PN}"
43 mkfontdir \ 42 mkfontdir \
44 -e /usr/share/fonts/encodings \ 43 -e /usr/share/fonts/encodings \
45 -e /usr/share/fonts/encodings/large \ 44 -e /usr/share/fonts/encodings/large \
46 -e /usr/X11R6/$(get_libdir)/X11/fonts/encodings \ 45 -e /usr/X11R6/$(get_libdir)/X11/fonts/encodings \
47 "${D}/usr/share/fonts/${PN}" 46 "${D}/usr/share/fonts/${PN}"
48 if [ -e "${FONT_S}/fonts.alias" ] ; 47 if [ -e "${FONT_S}/fonts.alias" ] ; then
49 then
50 doins "${FONT_S}/fonts.alias" 48 doins "${FONT_S}/fonts.alias"
51 fi 49 fi
52 fi 50 fi
53 51
54} 52}
84 font_xft_config 82 font_xft_config
85 83
86 cd "${S}" 84 cd "${S}"
87 # try to install some common docs 85 # try to install some common docs
88 DOCS="${DOCS} COPYRIGHT README NEWS" 86 DOCS="${DOCS} COPYRIGHT README NEWS"
89 for f in ${DOCS}; do 87 dodoc ${DOCS}
90 [[ -e "${f}" ]] && dodoc "${f}" 88
91 done
92} 89}
93 90
94EXPORT_FUNCTIONS src_install 91EXPORT_FUNCTIONS src_install

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20