49 lines
932 B
Bash
49 lines
932 B
Bash
# Copyright 2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python3_7 )
|
|
|
|
inherit meson python-single-r1 xdg
|
|
|
|
DESCRIPTION="GTK application to configure gaming devices"
|
|
HOMEPAGE="https://github.com/libratbag/piper"
|
|
SRC_URI="https://github.com/libratbag/piper/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
DEPEND="
|
|
${PYTHON_DEPS}
|
|
dev-libs/libratbag
|
|
$(python_gen_cond_dep '
|
|
dev-python/lxml[${PYTHON_MULTI_USEDEP}]
|
|
dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
|
|
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
|
|
dev-python/python-evdev[${PYTHON_MULTI_USEDEP}]'
|
|
)
|
|
dev-libs/libevdev
|
|
virtual/libudev
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
"
|
|
BDEPEND="
|
|
${PYTHON_DEPS}
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
src_configure() {
|
|
python_setup
|
|
meson_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
python_optimize
|
|
python_fix_shebang "${ED}"/usr/bin/
|
|
}
|