| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 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.40 2009/01/01 09:36:36 pva Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.41 2009/01/02 09:42:26 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: font.eclass |
5 | # @ECLASS: font.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # fonts@gentoo.org |
7 | # fonts@gentoo.org |
| 8 | # |
8 | # |
| … | |
… | |
| 60 | # Creates the Xfont files. |
60 | # Creates the Xfont files. |
| 61 | font_xfont_config() { |
61 | font_xfont_config() { |
| 62 | # create Xfont files |
62 | # create Xfont files |
| 63 | if use X ; then |
63 | if use X ; then |
| 64 | einfo "Creating fonts.scale & fonts.dir ..." |
64 | einfo "Creating fonts.scale & fonts.dir ..." |
|
|
65 | rm -f "${D}${FONTDIR}"/fonts.{dir,scale} |
| 65 | mkfontscale "${D}${FONTDIR}" |
66 | mkfontscale "${D}${FONTDIR}" |
| 66 | mkfontdir \ |
67 | mkfontdir \ |
| 67 | -e /usr/share/fonts/encodings \ |
68 | -e /usr/share/fonts/encodings \ |
| 68 | -e /usr/share/fonts/encodings/large \ |
69 | -e /usr/share/fonts/encodings/large \ |
| 69 | "${D}${FONTDIR}" |
70 | "${D}${FONTDIR}" |