| # Copyright 2013 The ChromiumOS Authors |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| CROS_WORKON_COMMIT="dad21ae29aca0e7fcdf5887b38ba631e3fd237ad" |
| CROS_WORKON_TREE=("33f3925593181fba8696f19122b812243c6c27ee" "5fc70fa1ab5007b5cae0ec721ff6436086d7036f") |
| CROS_WORKON_LOCALNAME="platform/touch_updater" |
| CROS_WORKON_PROJECT="chromiumos/platform/touch_updater" |
| CROS_WORKON_SUBTREE="policies scripts" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| |
| inherit cros-workon user |
| |
| DESCRIPTION="Touch firmware and config updater" |
| HOMEPAGE="https://www.chromium.org/chromium-os" |
| SRC_URI="" |
| |
| LICENSE="BSD-Google" |
| SLOT="0/0" |
| KEYWORDS="*" |
| IUSE=" |
| input_devices_synaptics |
| input_devices_wacom |
| input_devices_etphidiap |
| input_devices_st |
| input_devices_st_touchscreen |
| input_devices_weida |
| input_devices_goodix |
| input_devices_sis |
| input_devices_pixart |
| input_devices_g2touch |
| input_devices_cirque |
| input_devices_elan_i2chid |
| input_devices_melfas |
| input_devices_emright |
| input_devices_eps2pstiap |
| input_devices_zinitix |
| input_devices_himax |
| input_devices_nvt_ts |
| " |
| |
| # Third party firmware updaters usually belong in sys-apps/. If you just |
| # checked in a new one to chromeos-base/, please move it to sys-apps/ before |
| # adding it as a dependency here. |
| RDEPEND=" |
| chromeos-base/chromeos-touch-common |
| input_devices_synaptics? ( chromeos-base/rmi4utils ) |
| input_devices_wacom? ( chromeos-base/wacom_fw_flash ) |
| input_devices_etphidiap? ( chromeos-base/chromeos-touch-etphidiap ) |
| input_devices_st? ( chromeos-base/st_flash ) |
| input_devices_st_touchscreen? ( chromeos-base/chromeos-touch-stupdate ) |
| input_devices_weida? ( chromeos-base/weida_wdt_util ) |
| input_devices_goodix? ( chromeos-base/gdix_hid_firmware_update ) |
| input_devices_sis? ( chromeos-base/sisConsoletool ) |
| input_devices_pixart? ( chromeos-base/pixart_tpfwup ) |
| input_devices_g2touch? ( chromeos-base/g2update_tool ) |
| input_devices_cirque? ( chromeos-base/cirque_fw_update ) |
| input_devices_elan_i2chid? ( chromeos-base/elan_i2chid_tools ) |
| input_devices_melfas? ( chromeos-base/mfs-console-tool ) |
| input_devices_emright? ( chromeos-base/emright_fw_updater ) |
| input_devices_eps2pstiap? ( chromeos-base/epstps2iap ) |
| input_devices_zinitix? ( chromeos-base/zinitix_fw_updater ) |
| input_devices_himax? ( chromeos-base/hx_hid_util ) |
| input_devices_nvt_ts? ( chromeos-base/chromeos-nvt-touch-updater ) |
| " |
| |
| pkg_preinst() { |
| if use input_devices_elan_i2chid || use input_devices_melfas || use input_devices_emright || use input_devices_zinitix || use input_devices_nvt_ts; then |
| enewgroup fwupdate-hidraw |
| enewuser fwupdate-hidraw |
| fi |
| if use input_devices_sis; then |
| enewgroup sisfwupdate |
| enewuser sisfwupdate |
| fi |
| if use input_devices_pixart; then |
| enewgroup pixfwupdate |
| enewuser pixfwupdate |
| fi |
| if use input_devices_g2touch; then |
| enewgroup g2touch |
| enewuser g2touch |
| fi |
| if use input_devices_goodix; then |
| enewgroup goodixfwupdate |
| enewuser goodixfwupdate |
| fi |
| if use input_devices_cirque; then |
| enewgroup cirque |
| enewuser cirque |
| fi |
| if use input_devices_eps2pstiap; then |
| enewgroup fwupdate-serio |
| enewuser fwupdate-serio |
| fi |
| if use input_devices_himax; then |
| enewgroup fwupdate-i2c |
| enewuser fwupdate-i2c |
| fi |
| } |
| |
| src_install() { |
| exeinto "/opt/google/touch/scripts" |
| doexe scripts/*.sh |
| |
| if [ -d "policies/${ARCH}" ]; then |
| insinto "/opt/google/touch/policies" |
| doins policies/${ARCH}/*.policy |
| fi |
| } |