| # Copyright 2015 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=5 |
| |
| inherit appid cros-audio-configs udev |
| |
| DESCRIPTION="Ebuild which pulls in any necessary ebuilds as dependencies |
| or portage actions." |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="-* amd64 x86" |
| IUSE="buddy-cfm" |
| S="${WORKDIR}" |
| |
| # Add dependencies on other ebuilds from within this board overlay |
| RDEPEND=" |
| chromeos-base/chromeos-bsp-baseboard-auron |
| media-libs/go2001-fw |
| media-libs/go2001-rules |
| " |
| DEPEND="${RDEPEND}" |
| |
| src_install() { |
| if use buddy-cfm; then |
| doappid "{77959015-A462-5EF5-3130-7A4883F4B9C8}" "CHROMEBASE" |
| else |
| doappid "{B801E98B-4AB6-4D82-B3B3-E1517DC53266}" "CHROMEBASE" |
| fi |
| |
| # Install audio_config files |
| local audio_config_dir="${FILESDIR}/audio-config" |
| install_audio_configs buddy "${audio_config_dir}" |
| |
| # Install platform-specific internal keyboard keymap. |
| # It should probbaly go into /lib/udev/hwdb.d but |
| # unfortunately udevadm on 64 dev boxes does not check |
| # that directory (it wants to look in /lib64/udev). |
| insinto "${EPREFIX}/etc/udev/hwdb.d" |
| doins "${FILESDIR}/61-buddy-keyboard.hwdb" |
| } |
| |
| pkg_postinst() { |
| udevadm hwdb --update --root="${ROOT%/}" |
| # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda |
| [ "${ROOT:-/}" = "/" ] && udevadm control --reload |
| } |