1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 16:02:39 +01:00

dev-libs/libratbag: bump to 0.9.901, fix G502 leds position

This commit is contained in:
2018-05-17 17:39:29 +02:00
parent f4e0c2134a
commit 5a672c352f
4 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{3_4,3_5,3_6} )
inherit meson udev python-r1
DESCRIPTION="Library to configure gaming mice"
HOMEPAGE="https://github.com/libratbag/libratbag"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
DEPEND="
virtual/pkgconfig
doc? ( app-doc/doxygen )
"
RDEPEND="
dev-libs/libevdev
virtual/libudev
"
PATCHES=(
${FILESDIR}/${P}-data-gnome-g502-fix-leds-position.patch
)
src_prepare() {
python_setup
default
sed '/default:/d' -i meson_options.txt || die
}
src_configure() {
local emesonargs=(
-Denable-documentation=$(usex doc true false)
-Denable-tests=$(usex test true false)
-Dudev-dir=$(get_udevdir)
)
meson_src_configure
}