| 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.20 2006/10/30 05:56:11 dberkholz 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 | |
| 25 | DOCS="" # Docs to install |
25 | DOCS="" # Docs to install |
| 26 | |
26 | |
| 27 | IUSE="X" |
27 | IUSE="X" |
| 28 | |
28 | |
| 29 | DEPEND="X? ( || ( x11-apps/mkfontdir virtual/x11 ) ) |
29 | DEPEND="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 | |
| 67 | font_src_install() { |
67 | font_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 |
|
|
| 86 | DOCS="${DOCS} COPYRIGHT README NEWS" |
|
|
| 87 | dodoc ${DOCS} 2> /dev/null |
85 | dodoc ${DOCS} 2> /dev/null |
| 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 | |
| 91 | font_pkg_setup() { |
93 | font_pkg_setup() { |
| 92 | |
94 | |
| 93 | # make sure we get no colissions |
95 | # make sure we get no colissions |