Gentoo Archives: gentoo-commits

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