# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) inherit meson python-single-r1 xdg DESCRIPTION="GTK application to configure gaming devices" HOMEPAGE="https://github.com/libratbag/piper" if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/libratbag/piper.git" else SRC_URI="https://github.com/libratbag/piper/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" fi LICENSE="GPL-2" SLOT="0" IUSE="test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RESTRICT="!test? ( test )" BDEPEND=" ${PYTHON_DEPS} $(python_gen_cond_dep ' dev-python/lxml[${PYTHON_USEDEP}] ') virtual/pkgconfig test? ( $(python_gen_cond_dep ' dev-python/flake8[${PYTHON_USEDEP}] ') dev-libs/appstream ) " RDEPEND=" ${PYTHON_DEPS} dev-libs/gobject-introspection >=dev-libs/libratbag-0.14