Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/
Date: Tue, 05 Feb 2019 06:20:41
Message-Id: 1549326612.09d7e18aaab6cc71179579ee96a55b98c0ed7901.asturm@gentoo
1 commit: 09d7e18aaab6cc71179579ee96a55b98c0ed7901
2 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
3 AuthorDate: Tue Jan 8 01:23:07 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 5 00:30:12 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d7e18a
7
8 app-misc/g810-led: Bump to 0.3.1
9
10 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
11 Closes: https://github.com/gentoo/gentoo/pull/10773
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 app-misc/g810-led/Manifest | 1 +
15 app-misc/g810-led/g810-led-0.3.1.ebuild | 47 +++++++++++++++++++++++++++++++++
16 2 files changed, 48 insertions(+)
17
18 diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
19 index 44d9060a363..2cd4d906598 100644
20 --- a/app-misc/g810-led/Manifest
21 +++ b/app-misc/g810-led/Manifest
22 @@ -1 +1,2 @@
23 DIST g810-led-0.2.7.tar.gz 33127 BLAKE2B 1ffa28f4e21273afa805ff2ddfeae00cf4b25382f7da617016651283331d7d17faee1e6f68d00ab988c30ba1a7d4b252cf28c021999871a7fbe54c47ae3ccb23 SHA512 f67d44f1c51a29cbdfe9bb5e28f3dea5e9b08aa5e2a08cf875578d6b74e8e77f880378c825efcc3068b400131295e1fd196454b8b10143c4f5d5f77be760512a
24 +DIST g810-led-0.3.1.tar.gz 34069 BLAKE2B ebc83e1f0908e521573f6ea812c1893e8314548dbe30cad4a8f2af171eaf7f73ba905f6e01eafe9bca6c1bf006d626086091c871c6382dcd9a58caa76173ca59 SHA512 62bf73a897f8c1c967ce64f6e352d55b08af764b2aac8ce722906cdc67db28676bc5665d1ba307f0c43360e57d53e75fa39aea29ca7aa6da2e125782ae38446c
25
26 diff --git a/app-misc/g810-led/g810-led-0.3.1.ebuild b/app-misc/g810-led/g810-led-0.3.1.ebuild
27 new file mode 100644
28 index 00000000000..2e51fcb5d4f
29 --- /dev/null
30 +++ b/app-misc/g810-led/g810-led-0.3.1.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 2018-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit systemd udev eutils
38 +
39 +DESCRIPTION="Led controller for Logitech G- Keyboards"
40 +HOMEPAGE="https://github.com/MatMoul/g810-led"
41 +SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64"
46 +IUSE="+hidapi"
47 +
48 +RDEPEND="
49 + hidapi? ( dev-libs/hidapi:= )
50 + !hidapi? ( virtual/libusb:= )
51 +"
52 +
53 +DEPEND="${RDEPEND}"
54 +
55 +DOCS=("README.md" "sample_profiles" "sample_effects")
56 +
57 +src_compile() {
58 + emake LIB="$(usex hidapi hidapi libusb)"
59 +}
60 +
61 +src_install() {
62 + dolib.so "lib/libg810-led.so.${PV}"
63 + dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
64 +
65 + dobin bin/g810-led
66 + local boards=(213 410 413 512 513 610 910 pro)
67 + local x
68 + for x in "${boards[@]}"; do
69 + dosym g810-led "/usr/bin/g${x}-led"
70 + done
71 +
72 + systemd_dounit systemd/g810-led.service
73 + systemd_dounit systemd/g810-led-reboot.service
74 +
75 + udev_newrules udev/g810-led.rules 60-g810-led.rules
76 +
77 + einstalldocs
78 +}