diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2006-09-05 23:40:42 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2006-09-05 23:40:42 +0000 |
commit | 9b1ce7b53bb72e8fb7cc9fd14419c05e55225d86 (patch) | |
tree | af54a768f156ce2977d5dd7df8c0fd79e6a59c77 /eclass | |
parent | Add blocker on hwdata-redhat. (diff) | |
download | gentoo-2-9b1ce7b53bb72e8fb7cc9fd14419c05e55225d86.tar.gz gentoo-2-9b1ce7b53bb72e8fb7cc9fd14419c05e55225d86.tar.bz2 gentoo-2-9b1ce7b53bb72e8fb7cc9fd14419c05e55225d86.zip |
Install hwdata files if they exist.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/x-modular.eclass | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/eclass/x-modular.eclass b/eclass/x-modular.eclass index 95dc5168bd08..3449519b687b 100644 --- a/eclass/x-modular.eclass +++ b/eclass/x-modular.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.74 2006/08/28 16:07:30 dberkholz Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.75 2006/09/05 23:40:42 dberkholz Exp $ # # Author: Donnie Berkholz <spyderous@gentoo.org> # @@ -359,6 +359,10 @@ x-modular_src_install() { if [[ -n "${FONT}" ]]; then remove_font_metadata fi + + if [[ -n "${DRIVER}" ]]; then + install_driver_hwdata + fi } x-modular_pkg_preinst() { @@ -439,6 +443,19 @@ remove_font_metadata() { done } +# Installs device-to-driver mappings for system-config-display +# and anything else that uses hwdata +install_driver_hwdata() { + insinto /usr/share/hwdata/videoaliases + for i in "${FILESDIR}"/*.xinf; do + # We need this for the case when none exist, + # so *.xinf doesn't expand + if [[ -e $i ]]; then + doins $i + fi + done +} + discover_font_dirs() { pushd ${IMAGE}/usr/share/fonts FONT_DIRS="$(find . -maxdepth 1 -mindepth 1 -type d)" |