blob: 40b58688499c1567f6095b04a8db89c618c1a067 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
cros_pre_src_prepare_brltty_config() {
epatch "${FILESDIR}"/${P}-aph-firmware-upgrade.patch
epatch "${FILESDIR}"/${P}-gettext-as-format-string.patch
epatch "${FILESDIR}"/${P}-locale-not-found-log.patch
epatch "${FILESDIR}"/${P}-use-fchmod-on-socket.patch
epatch "${FILESDIR}"/${P}-sticky-brlapi-dir.patch
cros_post_src_prepare_brltty_config() {
# Upstream has a patch that touches the autogenerated
# part of the udev rules file. Run this script after
# that patch is applied so it applies cleanly.
# updusbdevs rewrites the autogenerated part. The -nogeneric
# flag accomplishes what the upstream patch does.
# Also, some of the patches in cros_pre_src_prepare_brltty_config
# modify the usb device definitions in the C source, and for those
# to be picked up by updusbdevs, those patches need to be applied
# before the below line.
./updusbdevs -nogeneric udev:Autostart/Udev/ || die
cros_post_src_install_brltty_config() {
insinto /etc
doins "${FILESDIR}"/brltty.conf
exeinto $(get_udevdir)
doexe "${FILESDIR}"/brltty