[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/files/, app-misc/g810-led/

2023-04-18 Thread Sam James
commit: 1de89049f3dda69b47abc6a1aaee46dfbc2c5028
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Tue Apr 18 12:56:29 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Apr 18 13:28:02 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1de89049

app-misc/g810-led: Fix for GCC 13

Closes: https://bugs.gentoo.org/895426
Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/30640
Signed-off-by: Sam James  gentoo.org>

 app-misc/g810-led/files/g810-led-0.4.2_gcc13.patch | 21 +
 app-misc/g810-led/g810-led-0.4.2.ebuild|  6 +-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/app-misc/g810-led/files/g810-led-0.4.2_gcc13.patch 
b/app-misc/g810-led/files/g810-led-0.4.2_gcc13.patch
new file mode 100644
index ..041f000aef1f
--- /dev/null
+++ b/app-misc/g810-led/files/g810-led-0.4.2_gcc13.patch
@@ -0,0 +1,21 @@
+From 0ca17e2ba8c8f01e51a360903a2009186ff78a1c Mon Sep 17 00:00:00 2001
+From: Olav Reinert 
+Date: Sun, 26 Mar 2023 13:48:10 +0200
+Subject: [PATCH] fix: compilation error with GCC 13
+
+---
+ src/helpers/help.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/helpers/help.h b/src/helpers/help.h
+index 1d176f0..b7d02fd 100644
+--- a/src/helpers/help.h
 b/src/helpers/help.h
+@@ -18,6 +18,7 @@
+ #define HELP_HELPER
+ 
+ #include 
++#include 
+ 
+ namespace help {
+   

diff --git a/app-misc/g810-led/g810-led-0.4.2.ebuild 
b/app-misc/g810-led/g810-led-0.4.2.ebuild
index 5b912b7836b9..b99c5dd3daea 100644
--- a/app-misc/g810-led/g810-led-0.4.2.ebuild
+++ b/app-misc/g810-led/g810-led-0.4.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2018-2021 Gentoo Authors
+# Copyright 2018-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,6 +22,10 @@ DEPEND="${RDEPEND}"
 
 DOCS=("README.md" "sample_profiles" "sample_effects")
 
+# Fix for GCC 13; Bug #895426
+# See https://github.com/MatMoul/g810-led/pull/302
+PATCHES=( "${FILESDIR}/g810-led-0.4.2_gcc13.patch" )
+
 src_prepare() {
default
# See



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/

2021-01-18 Thread Joonas Niilola
commit: 80e5d9524268b9897592f57de572545d16f25915
Author: Peter Alfredsen  icloud  com>
AuthorDate: Sat Dec 19 20:50:25 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Mon Jan 18 08:54:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80e5d952

app-misc/g810-led: bump to 0.4.2 + various fixes

0.4.2 brings support for g815, builds with clang, and various minor fixes.

Ebuild fixes:
Create and populate /etc/g810-led/ as in upstream makefile so systemd
.services work.
Change udev rules to use uaccess instead of MODE="666".
Set CXX to system compiler
Build and use "bin-linked" g810-led. Same features, less space.
Include headers in install
Add pkg_postinst with hints about use

Closes: https://bugs.gentoo.org/696468
Closes: https://bugs.gentoo.org/729288
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Peter Alfredsen  icloud.com>
Closes: https://github.com/gentoo/gentoo/pull/18730
Signed-off-by: Joonas Niilola  gentoo.org>

 app-misc/g810-led/Manifest  |  1 +
 app-misc/g810-led/g810-led-0.4.2.ebuild | 77 +
 2 files changed, 78 insertions(+)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index 6feff0f1a83..68fa7a2e93b 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1 +1,2 @@
 DIST g810-led-0.3.6.tar.gz 34544 BLAKE2B 
142fd54d7721a1deebfb019b644a4c8ab0fd5e1662391075cea67a4c7b7145034101f14c22975bdf079ee5b8e56c4a73e18fe31ce5d7fcf20ff4b9c64ee85502
 SHA512 
5a1877ee135a662bc5eb15c1afe5370cfe9243b4479823e3492f0da8f407b1438e3d7e35bd9992eea8dcbd4d548c9acdb7e74f4c99efbd4e9e8e6ddae33f8a5b
+DIST g810-led-0.4.2.tar.gz 36669 BLAKE2B 
738ca1849b05ddc35e42c258f67b2fedc2ab207594a32111aeca8cb1cffa99580e0f22e57ea92aff0e49f546e871b5af1c77cd5830349af98c9a977b27a0186b
 SHA512 
03e62265964b6d47d474b57a92beb3a017e8479113750e7d52790d0779b8893eb7e3761f236db94ff1e1ddb0424c711fd1a35c869d0f93ad68104b1ddd2bf1e8

diff --git a/app-misc/g810-led/g810-led-0.4.2.ebuild 
b/app-misc/g810-led/g810-led-0.4.2.ebuild
new file mode 100644
index 000..5e5b098aef0
--- /dev/null
+++ b/app-misc/g810-led/g810-led-0.4.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 2018-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils systemd toolchain-funcs udev
+
+DESCRIPTION="Led controller for Logitech G- Keyboards"
+HOMEPAGE="https://github.com/MatMoul/g810-led;
+SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+hidapi"
+
+RDEPEND="
+   hidapi? ( dev-libs/hidapi:= )
+   !hidapi? ( virtual/libusb:= )
+   "
+DEPEND="${RDEPEND}"
+
+DOCS=("README.md" "sample_profiles" "sample_effects")
+
+src_prepare() {
+   default
+   # See
+   # https://github.com/systemd/systemd/issues/4288
+   # 
https://sourceforge.net/p/sigrok/mailman/sigrok-devel/thread/12691365.gQiffmFRoU%40pebbles.site/
+   # We remove the MODE-bit since it's already set to 660+GROUP="input" by 
default udev rules
+   sed -i \
+   -e 's|MODE="666"|TAG+="uaccess",|' \
+   udev/g810-led.rules || die
+}
+
+src_compile() {
+   emake LIB="$(usex hidapi hidapi libusb)" CXX="$(tc-getCXX)" bin-linked
+}
+
+src_install() {
+   dolib.so "lib/libg810-led.so.${PV}"
+   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
+
+   insinto /etc/g810-led/
+   newins sample_profiles/group_keys profile
+   newins sample_profiles/all_off reboot
+
+   dobin bin/g810-led
+   local boards=(213 410 413 512 513 610 815 910 pro)
+   local x
+   for x in "${boards[@]}"; do
+   dosym g810-led "/usr/bin/g${x}-led"
+   done
+
+   insinto /usr/include/g810-led
+   doins src/classes/*.h
+
+   systemd_dounit systemd/g810-led.service
+   systemd_dounit systemd/g810-led-reboot.service
+
+   udev_newrules udev/g810-led.rules 60-g810-led.rules
+
+   einstalldocs
+}
+
+pkg_postinst() {
+   elog "The file /etc/g810-led/profile is run on boot and device 
insertion."
+   elog "The default file can be replaced by other examples:"
+   elog "/usr/share/doc/${PF}/sample_profiles"
+   elog "Read the documentation in:"
+   elog "/usr/share/doc/${PF}/"
+   elog "to make your own."
+   if systemd_is_booted; then
+   elog "To turn off the LEDs on shutdown and save power, do:"
+   elog "systemctl enable g810-led-reboot.service"
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/

2019-07-21 Thread Michał Górny
commit: a322e604f61c4c5579b0c6241748816570cf7068
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Sun Jul 21 23:50:24 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Jul 22 03:24:59 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a322e604

app-misc/g810-led: Version bump, 0.3.6

Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Signed-off-by: Michał Górny  gentoo.org>

 app-misc/g810-led/Manifest  |  1 +
 app-misc/g810-led/g810-led-0.3.6.ebuild | 47 +
 2 files changed, 48 insertions(+)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index 66452dd12a2..ed64b952a54 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1 +1,2 @@
 DIST g810-led-0.3.5.tar.gz 34543 BLAKE2B 
6f5a946beea269d684bccaab5102f53b638f5ef66557809e50783fc0ce0ec508f2c8486b1da59347d4fb7099d4fee06bf364cafee2fe74fee88cce7860638a8e
 SHA512 
25ed0a65b6c08de19a86c460a78a4b5a06e6e70e312840f7940317d71a3fbea723ce0926500258afbd4bccc534117228b2e800a54388bb70e00431bf8ae1668c
+DIST g810-led-0.3.6.tar.gz 34544 BLAKE2B 
142fd54d7721a1deebfb019b644a4c8ab0fd5e1662391075cea67a4c7b7145034101f14c22975bdf079ee5b8e56c4a73e18fe31ce5d7fcf20ff4b9c64ee85502
 SHA512 
5a1877ee135a662bc5eb15c1afe5370cfe9243b4479823e3492f0da8f407b1438e3d7e35bd9992eea8dcbd4d548c9acdb7e74f4c99efbd4e9e8e6ddae33f8a5b

diff --git a/app-misc/g810-led/g810-led-0.3.6.ebuild 
b/app-misc/g810-led/g810-led-0.3.6.ebuild
new file mode 100644
index 000..2e51fcb5d4f
--- /dev/null
+++ b/app-misc/g810-led/g810-led-0.3.6.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2018-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd udev eutils
+
+DESCRIPTION="Led controller for Logitech G- Keyboards"
+HOMEPAGE="https://github.com/MatMoul/g810-led;
+SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+hidapi"
+
+RDEPEND="
+   hidapi? ( dev-libs/hidapi:= )
+   !hidapi? ( virtual/libusb:= )
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=("README.md" "sample_profiles" "sample_effects")
+
+src_compile() {
+   emake LIB="$(usex hidapi hidapi libusb)"
+}
+
+src_install() {
+   dolib.so "lib/libg810-led.so.${PV}"
+   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
+
+   dobin bin/g810-led
+   local boards=(213 410 413 512 513 610 910 pro)
+   local x
+   for x in "${boards[@]}"; do
+   dosym g810-led "/usr/bin/g${x}-led"
+   done
+
+   systemd_dounit systemd/g810-led.service
+   systemd_dounit systemd/g810-led-reboot.service
+
+   udev_newrules udev/g810-led.rules 60-g810-led.rules
+
+   einstalldocs
+}



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/

2019-07-21 Thread Michał Górny
commit: be9a25de0f05de16d0a583fee9dcccd67f6b0ad1
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Sun Jul 21 23:50:25 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Jul 22 03:25:00 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be9a25de

app-misc/g810-led: Remove old, 0.3.5

Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Signed-off-by: Michał Górny  gentoo.org>

 app-misc/g810-led/Manifest  |  1 -
 app-misc/g810-led/g810-led-0.3.5.ebuild | 47 -
 2 files changed, 48 deletions(-)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index ed64b952a54..6feff0f1a83 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1,2 +1 @@
-DIST g810-led-0.3.5.tar.gz 34543 BLAKE2B 
6f5a946beea269d684bccaab5102f53b638f5ef66557809e50783fc0ce0ec508f2c8486b1da59347d4fb7099d4fee06bf364cafee2fe74fee88cce7860638a8e
 SHA512 
25ed0a65b6c08de19a86c460a78a4b5a06e6e70e312840f7940317d71a3fbea723ce0926500258afbd4bccc534117228b2e800a54388bb70e00431bf8ae1668c
 DIST g810-led-0.3.6.tar.gz 34544 BLAKE2B 
142fd54d7721a1deebfb019b644a4c8ab0fd5e1662391075cea67a4c7b7145034101f14c22975bdf079ee5b8e56c4a73e18fe31ce5d7fcf20ff4b9c64ee85502
 SHA512 
5a1877ee135a662bc5eb15c1afe5370cfe9243b4479823e3492f0da8f407b1438e3d7e35bd9992eea8dcbd4d548c9acdb7e74f4c99efbd4e9e8e6ddae33f8a5b

diff --git a/app-misc/g810-led/g810-led-0.3.5.ebuild 
b/app-misc/g810-led/g810-led-0.3.5.ebuild
deleted file mode 100644
index 2e51fcb5d4f..000
--- a/app-misc/g810-led/g810-led-0.3.5.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 2018-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd udev eutils
-
-DESCRIPTION="Led controller for Logitech G- Keyboards"
-HOMEPAGE="https://github.com/MatMoul/g810-led;
-SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+hidapi"
-
-RDEPEND="
-   hidapi? ( dev-libs/hidapi:= )
-   !hidapi? ( virtual/libusb:= )
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=("README.md" "sample_profiles" "sample_effects")
-
-src_compile() {
-   emake LIB="$(usex hidapi hidapi libusb)"
-}
-
-src_install() {
-   dolib.so "lib/libg810-led.so.${PV}"
-   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
-
-   dobin bin/g810-led
-   local boards=(213 410 413 512 513 610 910 pro)
-   local x
-   for x in "${boards[@]}"; do
-   dosym g810-led "/usr/bin/g${x}-led"
-   done
-
-   systemd_dounit systemd/g810-led.service
-   systemd_dounit systemd/g810-led-reboot.service
-
-   udev_newrules udev/g810-led.rules 60-g810-led.rules
-
-   einstalldocs
-}



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/

2019-06-27 Thread Michał Górny
commit: b1e2093f56bc6d8e03802cb9413d0cd9e7db0f53
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Thu Jun 27 07:42:44 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Jun 27 10:45:51 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1e2093f

app-misc/g810-led: Remove old (0.3.4)

Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Signed-off-by: Michał Górny  gentoo.org>

 app-misc/g810-led/Manifest  |  1 -
 app-misc/g810-led/g810-led-0.3.4.ebuild | 47 -
 2 files changed, 48 deletions(-)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index 16dfd0e974d..66452dd12a2 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1,2 +1 @@
-DIST g810-led-0.3.4.tar.gz 34549 BLAKE2B 
7816fc7d9892f0e7bde5369612c1b251b2b64846b68ddc795b4ca777b6369ef3e8a0a70b797883edb5d220af6a4905e55ceb24c53dbba307cf8589fe7c2cf232
 SHA512 
3ec460f6994adcf58c2fa024433544c83bac789981f31605ba4e4eeec255864e00fe2bcd485c1867fce9d2df9ab7313f88cbd7bcc1bab8d805dc560955386b59
 DIST g810-led-0.3.5.tar.gz 34543 BLAKE2B 
6f5a946beea269d684bccaab5102f53b638f5ef66557809e50783fc0ce0ec508f2c8486b1da59347d4fb7099d4fee06bf364cafee2fe74fee88cce7860638a8e
 SHA512 
25ed0a65b6c08de19a86c460a78a4b5a06e6e70e312840f7940317d71a3fbea723ce0926500258afbd4bccc534117228b2e800a54388bb70e00431bf8ae1668c

diff --git a/app-misc/g810-led/g810-led-0.3.4.ebuild 
b/app-misc/g810-led/g810-led-0.3.4.ebuild
deleted file mode 100644
index 2e51fcb5d4f..000
--- a/app-misc/g810-led/g810-led-0.3.4.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 2018-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd udev eutils
-
-DESCRIPTION="Led controller for Logitech G- Keyboards"
-HOMEPAGE="https://github.com/MatMoul/g810-led;
-SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+hidapi"
-
-RDEPEND="
-   hidapi? ( dev-libs/hidapi:= )
-   !hidapi? ( virtual/libusb:= )
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=("README.md" "sample_profiles" "sample_effects")
-
-src_compile() {
-   emake LIB="$(usex hidapi hidapi libusb)"
-}
-
-src_install() {
-   dolib.so "lib/libg810-led.so.${PV}"
-   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
-
-   dobin bin/g810-led
-   local boards=(213 410 413 512 513 610 910 pro)
-   local x
-   for x in "${boards[@]}"; do
-   dosym g810-led "/usr/bin/g${x}-led"
-   done
-
-   systemd_dounit systemd/g810-led.service
-   systemd_dounit systemd/g810-led-reboot.service
-
-   udev_newrules udev/g810-led.rules 60-g810-led.rules
-
-   einstalldocs
-}



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/

2019-06-27 Thread Michał Górny
commit: e0774359d57ca28fe1ce03cc961112bafe21c101
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Thu Jun 27 07:42:43 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Jun 27 10:45:46 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0774359

app-misc/g810-led: Bump to 0.3.5

Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Signed-off-by: Michał Górny  gentoo.org>

 app-misc/g810-led/Manifest  |  1 +
 app-misc/g810-led/g810-led-0.3.5.ebuild | 47 +
 2 files changed, 48 insertions(+)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index 9155947ee57..16dfd0e974d 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1 +1,2 @@
 DIST g810-led-0.3.4.tar.gz 34549 BLAKE2B 
7816fc7d9892f0e7bde5369612c1b251b2b64846b68ddc795b4ca777b6369ef3e8a0a70b797883edb5d220af6a4905e55ceb24c53dbba307cf8589fe7c2cf232
 SHA512 
3ec460f6994adcf58c2fa024433544c83bac789981f31605ba4e4eeec255864e00fe2bcd485c1867fce9d2df9ab7313f88cbd7bcc1bab8d805dc560955386b59
+DIST g810-led-0.3.5.tar.gz 34543 BLAKE2B 
6f5a946beea269d684bccaab5102f53b638f5ef66557809e50783fc0ce0ec508f2c8486b1da59347d4fb7099d4fee06bf364cafee2fe74fee88cce7860638a8e
 SHA512 
25ed0a65b6c08de19a86c460a78a4b5a06e6e70e312840f7940317d71a3fbea723ce0926500258afbd4bccc534117228b2e800a54388bb70e00431bf8ae1668c

diff --git a/app-misc/g810-led/g810-led-0.3.5.ebuild 
b/app-misc/g810-led/g810-led-0.3.5.ebuild
new file mode 100644
index 000..2e51fcb5d4f
--- /dev/null
+++ b/app-misc/g810-led/g810-led-0.3.5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2018-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd udev eutils
+
+DESCRIPTION="Led controller for Logitech G- Keyboards"
+HOMEPAGE="https://github.com/MatMoul/g810-led;
+SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+hidapi"
+
+RDEPEND="
+   hidapi? ( dev-libs/hidapi:= )
+   !hidapi? ( virtual/libusb:= )
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=("README.md" "sample_profiles" "sample_effects")
+
+src_compile() {
+   emake LIB="$(usex hidapi hidapi libusb)"
+}
+
+src_install() {
+   dolib.so "lib/libg810-led.so.${PV}"
+   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
+
+   dobin bin/g810-led
+   local boards=(213 410 413 512 513 610 910 pro)
+   local x
+   for x in "${boards[@]}"; do
+   dosym g810-led "/usr/bin/g${x}-led"
+   done
+
+   systemd_dounit systemd/g810-led.service
+   systemd_dounit systemd/g810-led-reboot.service
+
+   udev_newrules udev/g810-led.rules 60-g810-led.rules
+
+   einstalldocs
+}



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/

2019-06-09 Thread Michał Górny
commit: aca10b8080358a55adb2cd59b93840c9ca40453e
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Sun May 26 11:52:16 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jun  9 10:12:01 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aca10b80

app-misc/g810-led: Bump to 0.3.4

Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Signed-off-by: Michał Górny  gentoo.org>

 app-misc/g810-led/Manifest  |  1 +
 app-misc/g810-led/g810-led-0.3.4.ebuild | 47 +
 2 files changed, 48 insertions(+)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index e822820b6ca..b6cbbbdfd36 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1 +1,2 @@
 DIST g810-led-0.3.1.tar.gz 34069 BLAKE2B 
ebc83e1f0908e521573f6ea812c1893e8314548dbe30cad4a8f2af171eaf7f73ba905f6e01eafe9bca6c1bf006d626086091c871c6382dcd9a58caa76173ca59
 SHA512 
62bf73a897f8c1c967ce64f6e352d55b08af764b2aac8ce722906cdc67db28676bc5665d1ba307f0c43360e57d53e75fa39aea29ca7aa6da2e125782ae38446c
+DIST g810-led-0.3.4.tar.gz 34549 BLAKE2B 
7816fc7d9892f0e7bde5369612c1b251b2b64846b68ddc795b4ca777b6369ef3e8a0a70b797883edb5d220af6a4905e55ceb24c53dbba307cf8589fe7c2cf232
 SHA512 
3ec460f6994adcf58c2fa024433544c83bac789981f31605ba4e4eeec255864e00fe2bcd485c1867fce9d2df9ab7313f88cbd7bcc1bab8d805dc560955386b59

diff --git a/app-misc/g810-led/g810-led-0.3.4.ebuild 
b/app-misc/g810-led/g810-led-0.3.4.ebuild
new file mode 100644
index 000..2e51fcb5d4f
--- /dev/null
+++ b/app-misc/g810-led/g810-led-0.3.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2018-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd udev eutils
+
+DESCRIPTION="Led controller for Logitech G- Keyboards"
+HOMEPAGE="https://github.com/MatMoul/g810-led;
+SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+hidapi"
+
+RDEPEND="
+   hidapi? ( dev-libs/hidapi:= )
+   !hidapi? ( virtual/libusb:= )
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=("README.md" "sample_profiles" "sample_effects")
+
+src_compile() {
+   emake LIB="$(usex hidapi hidapi libusb)"
+}
+
+src_install() {
+   dolib.so "lib/libg810-led.so.${PV}"
+   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
+
+   dobin bin/g810-led
+   local boards=(213 410 413 512 513 610 910 pro)
+   local x
+   for x in "${boards[@]}"; do
+   dosym g810-led "/usr/bin/g${x}-led"
+   done
+
+   systemd_dounit systemd/g810-led.service
+   systemd_dounit systemd/g810-led-reboot.service
+
+   udev_newrules udev/g810-led.rules 60-g810-led.rules
+
+   einstalldocs
+}



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/

2019-06-09 Thread Michał Górny
commit: fc9b85fa5ffabaee742f63930c30eb352d76f5d4
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Sun May 26 11:53:21 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jun  9 10:12:02 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc9b85fa

app-misc/g810-led: Remove old (0.3.1)

Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/12116
Signed-off-by: Michał Górny  gentoo.org>

 app-misc/g810-led/Manifest  |  1 -
 app-misc/g810-led/g810-led-0.3.1.ebuild | 47 -
 2 files changed, 48 deletions(-)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index b6cbbbdfd36..9155947ee57 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1,2 +1 @@
-DIST g810-led-0.3.1.tar.gz 34069 BLAKE2B 
ebc83e1f0908e521573f6ea812c1893e8314548dbe30cad4a8f2af171eaf7f73ba905f6e01eafe9bca6c1bf006d626086091c871c6382dcd9a58caa76173ca59
 SHA512 
62bf73a897f8c1c967ce64f6e352d55b08af764b2aac8ce722906cdc67db28676bc5665d1ba307f0c43360e57d53e75fa39aea29ca7aa6da2e125782ae38446c
 DIST g810-led-0.3.4.tar.gz 34549 BLAKE2B 
7816fc7d9892f0e7bde5369612c1b251b2b64846b68ddc795b4ca777b6369ef3e8a0a70b797883edb5d220af6a4905e55ceb24c53dbba307cf8589fe7c2cf232
 SHA512 
3ec460f6994adcf58c2fa024433544c83bac789981f31605ba4e4eeec255864e00fe2bcd485c1867fce9d2df9ab7313f88cbd7bcc1bab8d805dc560955386b59

diff --git a/app-misc/g810-led/g810-led-0.3.1.ebuild 
b/app-misc/g810-led/g810-led-0.3.1.ebuild
deleted file mode 100644
index 2e51fcb5d4f..000
--- a/app-misc/g810-led/g810-led-0.3.1.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 2018-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd udev eutils
-
-DESCRIPTION="Led controller for Logitech G- Keyboards"
-HOMEPAGE="https://github.com/MatMoul/g810-led;
-SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+hidapi"
-
-RDEPEND="
-   hidapi? ( dev-libs/hidapi:= )
-   !hidapi? ( virtual/libusb:= )
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=("README.md" "sample_profiles" "sample_effects")
-
-src_compile() {
-   emake LIB="$(usex hidapi hidapi libusb)"
-}
-
-src_install() {
-   dolib.so "lib/libg810-led.so.${PV}"
-   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
-
-   dobin bin/g810-led
-   local boards=(213 410 413 512 513 610 910 pro)
-   local x
-   for x in "${boards[@]}"; do
-   dosym g810-led "/usr/bin/g${x}-led"
-   done
-
-   systemd_dounit systemd/g810-led.service
-   systemd_dounit systemd/g810-led-reboot.service
-
-   udev_newrules udev/g810-led.rules 60-g810-led.rules
-
-   einstalldocs
-}



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/, app-misc/g810-led/files/

2019-02-04 Thread Andreas Sturmlechner
commit: 035bd9316d2b66f6e540ac91fabe5d7db07fa139
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Tue Jan  8 01:25:14 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Feb  5 00:30:12 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=035bd931

app-misc/g810-led: Remove old (0.2.7)

Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 app-misc/g810-led/Manifest |  1 -
 ...0-led-0.2.7-Have_makefile_use_environment.patch | 63 --
 app-misc/g810-led/g810-led-0.2.7.ebuild| 52 --
 3 files changed, 116 deletions(-)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index 2cd4d906598..e822820b6ca 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1,2 +1 @@
-DIST g810-led-0.2.7.tar.gz 33127 BLAKE2B 
1ffa28f4e21273afa805ff2ddfeae00cf4b25382f7da617016651283331d7d17faee1e6f68d00ab988c30ba1a7d4b252cf28c021999871a7fbe54c47ae3ccb23
 SHA512 
f67d44f1c51a29cbdfe9bb5e28f3dea5e9b08aa5e2a08cf875578d6b74e8e77f880378c825efcc3068b400131295e1fd196454b8b10143c4f5d5f77be760512a
 DIST g810-led-0.3.1.tar.gz 34069 BLAKE2B 
ebc83e1f0908e521573f6ea812c1893e8314548dbe30cad4a8f2af171eaf7f73ba905f6e01eafe9bca6c1bf006d626086091c871c6382dcd9a58caa76173ca59
 SHA512 
62bf73a897f8c1c967ce64f6e352d55b08af764b2aac8ce722906cdc67db28676bc5665d1ba307f0c43360e57d53e75fa39aea29ca7aa6da2e125782ae38446c

diff --git 
a/app-misc/g810-led/files/g810-led-0.2.7-Have_makefile_use_environment.patch 
b/app-misc/g810-led/files/g810-led-0.2.7-Have_makefile_use_environment.patch
deleted file mode 100644
index 249462bbcf0..000
--- a/app-misc/g810-led/files/g810-led-0.2.7-Have_makefile_use_environment.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-diff --git a/makefile b/makefile
-index 019636d..707517d 100644
 a/makefile
-+++ b/makefile
-@@ -1,18 +1,18 @@
--CC=g++
--CFLAGS=-Wall -O2 -std=gnu++11
-+CXX?=g++
-+CXXFLAGS?=-Wall -O2
- LIB?=hidapi
- ifeq ($(LIB),libusb)
-   CPPFLAGS=-Dlibusb
--  LDFLAGS=-lusb-1.0
-+  LIBS=-lusb-1.0
- else
-   CPPFLAGS=-Dhidapi
--  LDFLAGS=-lhidapi-hidraw
-+  LIBS=-lhidapi-hidraw
- endif
- SYSTEMDDIR?=/usr/lib/systemd
- 
--prefix?=$(DESTDIR)/usr
--libdir?=$(prefix)/lib
--includedir?=$(prefix)/include
-+PREFIX?=$(DESTDIR)/usr
-+libdir?=$(PREFIX)/lib
-+includedir?=$(PREFIX)/include
- 
- # Program & versioning information
- PROGN=g810-led
-@@ -20,7 +20,7 @@ MAJOR=0
- MINOR=2
- MICRO=7
- 
--CFLAGS+=-DVERSION=\"$(MAJOR).$(MINOR).$(MICRO)\"
-+CXXFLAGS+=-std=gnu++11 -DVERSION=\"$(MAJOR).$(MINOR).$(MICRO)\"
- APPSRCS=src/main.cpp src/helpers/*.cpp src/helpers/*.h
- LIBSRCS=src/classes/*.cpp src/classes/*.h
- 
-@@ -32,19 +32,19 @@ bin: bin/$(PROGN)
- 
- bin/$(PROGN): $(APPSRCS) $(LIBSRCS)
-   @mkdir -p bin
--  $(CC) $(CPPFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS)
-+  $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
-   
--debug: CFLAGS += -g -Wextra -pedantic
-+debug: CXXFLAGS += -g -Wextra -pedantic
- debug: bin/$(PROGN)
- 
- lib/lib$(PROGN).so: $(LIBSRCS)
-   @mkdir -p lib
--  $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -shared -Wl,-soname,lib$(PROGN).so -o 
lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ $(LDFLAGS)
-+  $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared 
-Wl,-soname,lib$(PROGN).so -o lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ 
$(LIBS)
-   @ln -sf lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) lib/lib$(PROGN).so
- 
- bin-linked: lib/lib$(PROGN).so
-   @mkdir -p bin
--  $(CC) $(CPPFLAGS) $(CFLAGS) $(APPSRCS) -o bin/$(PROGN) $(LDFLAGS) 
-L./lib -l$(PROGN)
-+  $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(APPSRCS) -o bin/$(PROGN) 
$(LIBS) -L./lib -l$(PROGN)
- 
- lib: lib/lib$(PROGN).so
- 

diff --git a/app-misc/g810-led/g810-led-0.2.7.ebuild 
b/app-misc/g810-led/g810-led-0.2.7.ebuild
deleted file mode 100644
index 9251fa585b8..000
--- a/app-misc/g810-led/g810-led-0.2.7.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit systemd udev eutils
-
-DESCRIPTION="Led controller for Logitech G- 213, 410, 413, 610, 810, 910 and 
PRO Keyboards"
-HOMEPAGE="https://github.com/MatMoul/g810-led;
-SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+hidapi"
-
-RDEPEND="
-   hidapi? ( dev-libs/hidapi:= )
-   !hidapi? ( virtual/libusb:= )
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=("README.md" "sample_profiles")
-
-src_prepare() {
-   eapply "${FILESDIR}/g810-led-0.2.7-Have_makefile_use_environment.patch"
-   default
-}
-
-src_compile() {
-   emake LIB="$(usex hidapi hidapi libusb)"
-}
-
-src_install() {
-   dolib.so "lib/libg810-led.so.${PV}"
-   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
-
-   

[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/

2019-02-04 Thread Andreas Sturmlechner
commit: 09d7e18aaab6cc71179579ee96a55b98c0ed7901
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Tue Jan  8 01:23:07 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Feb  5 00:30:12 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d7e18a

app-misc/g810-led: Bump to 0.3.1

Signed-off-by: Haelwenn (lanodan) Monnier  hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/10773
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 app-misc/g810-led/Manifest  |  1 +
 app-misc/g810-led/g810-led-0.3.1.ebuild | 47 +
 2 files changed, 48 insertions(+)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
index 44d9060a363..2cd4d906598 100644
--- a/app-misc/g810-led/Manifest
+++ b/app-misc/g810-led/Manifest
@@ -1 +1,2 @@
 DIST g810-led-0.2.7.tar.gz 33127 BLAKE2B 
1ffa28f4e21273afa805ff2ddfeae00cf4b25382f7da617016651283331d7d17faee1e6f68d00ab988c30ba1a7d4b252cf28c021999871a7fbe54c47ae3ccb23
 SHA512 
f67d44f1c51a29cbdfe9bb5e28f3dea5e9b08aa5e2a08cf875578d6b74e8e77f880378c825efcc3068b400131295e1fd196454b8b10143c4f5d5f77be760512a
+DIST g810-led-0.3.1.tar.gz 34069 BLAKE2B 
ebc83e1f0908e521573f6ea812c1893e8314548dbe30cad4a8f2af171eaf7f73ba905f6e01eafe9bca6c1bf006d626086091c871c6382dcd9a58caa76173ca59
 SHA512 
62bf73a897f8c1c967ce64f6e352d55b08af764b2aac8ce722906cdc67db28676bc5665d1ba307f0c43360e57d53e75fa39aea29ca7aa6da2e125782ae38446c

diff --git a/app-misc/g810-led/g810-led-0.3.1.ebuild 
b/app-misc/g810-led/g810-led-0.3.1.ebuild
new file mode 100644
index 000..2e51fcb5d4f
--- /dev/null
+++ b/app-misc/g810-led/g810-led-0.3.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2018-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd udev eutils
+
+DESCRIPTION="Led controller for Logitech G- Keyboards"
+HOMEPAGE="https://github.com/MatMoul/g810-led;
+SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+hidapi"
+
+RDEPEND="
+   hidapi? ( dev-libs/hidapi:= )
+   !hidapi? ( virtual/libusb:= )
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=("README.md" "sample_profiles" "sample_effects")
+
+src_compile() {
+   emake LIB="$(usex hidapi hidapi libusb)"
+}
+
+src_install() {
+   dolib.so "lib/libg810-led.so.${PV}"
+   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
+
+   dobin bin/g810-led
+   local boards=(213 410 413 512 513 610 910 pro)
+   local x
+   for x in "${boards[@]}"; do
+   dosym g810-led "/usr/bin/g${x}-led"
+   done
+
+   systemd_dounit systemd/g810-led.service
+   systemd_dounit systemd/g810-led-reboot.service
+
+   udev_newrules udev/g810-led.rules 60-g810-led.rules
+
+   einstalldocs
+}



[gentoo-commits] repo/gentoo:master commit in: app-misc/g810-led/files/, app-misc/g810-led/

2018-09-13 Thread Michał Górny
commit: 616f99209237a7470bdacee6e24120130dfb5ae7
Author: Haelwenn (lanodan) Monnier  hacktivis  me>
AuthorDate: Tue Aug  7 02:17:49 2018 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Sep 13 08:00:14 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=616f9920

app-misc/g810-led: New Package

Based on ::zyrenth

Closes: https://bugs.gentoo.org/662494
Closes: https://github.com/gentoo/gentoo/pull/9476

 app-misc/g810-led/Manifest |  1 +
 ...0-led-0.2.7-Have_makefile_use_environment.patch | 63 ++
 app-misc/g810-led/g810-led-0.2.7.ebuild| 52 ++
 app-misc/g810-led/metadata.xml | 18 +++
 4 files changed, 134 insertions(+)

diff --git a/app-misc/g810-led/Manifest b/app-misc/g810-led/Manifest
new file mode 100644
index 000..44d9060a363
--- /dev/null
+++ b/app-misc/g810-led/Manifest
@@ -0,0 +1 @@
+DIST g810-led-0.2.7.tar.gz 33127 BLAKE2B 
1ffa28f4e21273afa805ff2ddfeae00cf4b25382f7da617016651283331d7d17faee1e6f68d00ab988c30ba1a7d4b252cf28c021999871a7fbe54c47ae3ccb23
 SHA512 
f67d44f1c51a29cbdfe9bb5e28f3dea5e9b08aa5e2a08cf875578d6b74e8e77f880378c825efcc3068b400131295e1fd196454b8b10143c4f5d5f77be760512a

diff --git 
a/app-misc/g810-led/files/g810-led-0.2.7-Have_makefile_use_environment.patch 
b/app-misc/g810-led/files/g810-led-0.2.7-Have_makefile_use_environment.patch
new file mode 100644
index 000..249462bbcf0
--- /dev/null
+++ b/app-misc/g810-led/files/g810-led-0.2.7-Have_makefile_use_environment.patch
@@ -0,0 +1,63 @@
+diff --git a/makefile b/makefile
+index 019636d..707517d 100644
+--- a/makefile
 b/makefile
+@@ -1,18 +1,18 @@
+-CC=g++
+-CFLAGS=-Wall -O2 -std=gnu++11
++CXX?=g++
++CXXFLAGS?=-Wall -O2
+ LIB?=hidapi
+ ifeq ($(LIB),libusb)
+   CPPFLAGS=-Dlibusb
+-  LDFLAGS=-lusb-1.0
++  LIBS=-lusb-1.0
+ else
+   CPPFLAGS=-Dhidapi
+-  LDFLAGS=-lhidapi-hidraw
++  LIBS=-lhidapi-hidraw
+ endif
+ SYSTEMDDIR?=/usr/lib/systemd
+ 
+-prefix?=$(DESTDIR)/usr
+-libdir?=$(prefix)/lib
+-includedir?=$(prefix)/include
++PREFIX?=$(DESTDIR)/usr
++libdir?=$(PREFIX)/lib
++includedir?=$(PREFIX)/include
+ 
+ # Program & versioning information
+ PROGN=g810-led
+@@ -20,7 +20,7 @@ MAJOR=0
+ MINOR=2
+ MICRO=7
+ 
+-CFLAGS+=-DVERSION=\"$(MAJOR).$(MINOR).$(MICRO)\"
++CXXFLAGS+=-std=gnu++11 -DVERSION=\"$(MAJOR).$(MINOR).$(MICRO)\"
+ APPSRCS=src/main.cpp src/helpers/*.cpp src/helpers/*.h
+ LIBSRCS=src/classes/*.cpp src/classes/*.h
+ 
+@@ -32,19 +32,19 @@ bin: bin/$(PROGN)
+ 
+ bin/$(PROGN): $(APPSRCS) $(LIBSRCS)
+   @mkdir -p bin
+-  $(CC) $(CPPFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS)
++  $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
+   
+-debug: CFLAGS += -g -Wextra -pedantic
++debug: CXXFLAGS += -g -Wextra -pedantic
+ debug: bin/$(PROGN)
+ 
+ lib/lib$(PROGN).so: $(LIBSRCS)
+   @mkdir -p lib
+-  $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -shared -Wl,-soname,lib$(PROGN).so -o 
lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ $(LDFLAGS)
++  $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared 
-Wl,-soname,lib$(PROGN).so -o lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ 
$(LIBS)
+   @ln -sf lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) lib/lib$(PROGN).so
+ 
+ bin-linked: lib/lib$(PROGN).so
+   @mkdir -p bin
+-  $(CC) $(CPPFLAGS) $(CFLAGS) $(APPSRCS) -o bin/$(PROGN) $(LDFLAGS) 
-L./lib -l$(PROGN)
++  $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(APPSRCS) -o bin/$(PROGN) 
$(LIBS) -L./lib -l$(PROGN)
+ 
+ lib: lib/lib$(PROGN).so
+ 

diff --git a/app-misc/g810-led/g810-led-0.2.7.ebuild 
b/app-misc/g810-led/g810-led-0.2.7.ebuild
new file mode 100644
index 000..9251fa585b8
--- /dev/null
+++ b/app-misc/g810-led/g810-led-0.2.7.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit systemd udev eutils
+
+DESCRIPTION="Led controller for Logitech G- 213, 410, 413, 610, 810, 910 and 
PRO Keyboards"
+HOMEPAGE="https://github.com/MatMoul/g810-led;
+SRC_URI="https://github.com/MatMoul/g810-led/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+hidapi"
+
+RDEPEND="
+   hidapi? ( dev-libs/hidapi:= )
+   !hidapi? ( virtual/libusb:= )
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=("README.md" "sample_profiles")
+
+src_prepare() {
+   eapply "${FILESDIR}/g810-led-0.2.7-Have_makefile_use_environment.patch"
+   default
+}
+
+src_compile() {
+   emake LIB="$(usex hidapi hidapi libusb)"
+}
+
+src_install() {
+   dolib.so "lib/libg810-led.so.${PV}"
+   dosym "libg810-led.so.${PV}" "/usr/$(get_libdir)/libg810-led.so"
+
+   dobin bin/g810-led
+   local boards=(213 410 413 610 910 pro)
+   local x
+   for x in "${boards[@]}"; do
+   dosym g810-led "/usr/bin/g${x}-led"
+   done
+
+   systemd_dounit systemd/g810-led.service
+   systemd_dounit