1 |
commit: 1f3c291a1d794868c714acf741974563d9ff8791 |
2 |
Author: fulgurance <zohran.londais <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri May 3 15:10:59 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 20 12:41:31 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f3c291a |
7 |
|
8 |
app-laptop/msi-keyboard: New package |
9 |
|
10 |
Control backlight of MSI laptop keyboards |
11 |
|
12 |
Package-Manager: Portage 2.3.72, Repoman 2.3.17 |
13 |
Signed-off-by: Zohran Londais <zohran.londais <AT> gmail.com> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/11884 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/10476 |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
app-laptop/msi-keyboard/Manifest | 1 + |
19 |
.../files/msi-keyboard-1.0-makefile.patch | 20 +++++++++++++++++ |
20 |
app-laptop/msi-keyboard/metadata.xml | 11 +++++++++ |
21 |
app-laptop/msi-keyboard/msi-keyboard-1.0.ebuild | 26 ++++++++++++++++++++++ |
22 |
4 files changed, 58 insertions(+) |
23 |
|
24 |
diff --git a/app-laptop/msi-keyboard/Manifest b/app-laptop/msi-keyboard/Manifest |
25 |
new file mode 100644 |
26 |
index 00000000000..8931d70a696 |
27 |
--- /dev/null |
28 |
+++ b/app-laptop/msi-keyboard/Manifest |
29 |
@@ -0,0 +1 @@ |
30 |
+DIST msi-keyboard-1.0.tar.gz 15182 BLAKE2B 4c084e1522da926e541b18d0e59044aeb83873516b3ec5b5bd980883b923acee21842c3612910d84008f66556b6c9e2f9d0c7e588f6aecf242a0e54d72e9c3a3 SHA512 542f74b8eb77db4ef0b26fc5c671bc7446d37b88e13855927d5cdd68c688f933e46b5a377d0f5ec496c1e35694789ae82694d31fc70f04d5059fe60f2ea9d24a |
31 |
|
32 |
diff --git a/app-laptop/msi-keyboard/files/msi-keyboard-1.0-makefile.patch b/app-laptop/msi-keyboard/files/msi-keyboard-1.0-makefile.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..08cdaa79e23 |
35 |
--- /dev/null |
36 |
+++ b/app-laptop/msi-keyboard/files/msi-keyboard-1.0-makefile.patch |
37 |
@@ -0,0 +1,20 @@ |
38 |
+--- a/Makefile 2019-08-19 22:40:43.258528097 +0200 |
39 |
++++ b/Makefile 2019-08-19 23:00:30.786462412 +0200 |
40 |
+@@ -1,6 +1,4 @@ |
41 |
+ CC=g++ |
42 |
+-CFLAGS=-c -Wall |
43 |
+-LDFLAGS=-lhidapi-libusb |
44 |
+ SOURCES=main.cpp Keyboard.cpp Color.cpp |
45 |
+ OBJECTS=$(SOURCES:.cpp=.o) |
46 |
+ EXECUTABLE=msi-keyboard |
47 |
+@@ -11,8 +9,7 @@ |
48 |
+ rm $(OBJECTS) $(EXECUTABLE) |
49 |
+ |
50 |
+ $(EXECUTABLE): $(OBJECTS) |
51 |
+- $(CC) $(LDFLAGS) $(OBJECTS) -o $@ |
52 |
++ $(CC) $(CFLAGS) -lhidapi-libusb $(LDFLAGS) $(OBJECTS) -o $@ |
53 |
+ |
54 |
+ .cpp.o: |
55 |
+- $(CC) $(CFLAGS) $< -o $@ |
56 |
+- |
57 |
++ $(CC) $(CFLAGS) -c $< -o $@ |
58 |
|
59 |
diff --git a/app-laptop/msi-keyboard/metadata.xml b/app-laptop/msi-keyboard/metadata.xml |
60 |
new file mode 100644 |
61 |
index 00000000000..5c41b33f0a4 |
62 |
--- /dev/null |
63 |
+++ b/app-laptop/msi-keyboard/metadata.xml |
64 |
@@ -0,0 +1,11 @@ |
65 |
+<?xml version="1.0" encoding="UTF-8"?> |
66 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
67 |
+<pkgmetadata> |
68 |
+ <maintainer type="person"> |
69 |
+ <email>zohran.londais@×××××.com</email> |
70 |
+ </maintainer> |
71 |
+ <maintainer type="project"> |
72 |
+ <email>proxy-maint@g.o</email> |
73 |
+ <name>Proxy Maintainers</name> |
74 |
+ </maintainer> |
75 |
+</pkgmetadata> |
76 |
|
77 |
diff --git a/app-laptop/msi-keyboard/msi-keyboard-1.0.ebuild b/app-laptop/msi-keyboard/msi-keyboard-1.0.ebuild |
78 |
new file mode 100644 |
79 |
index 00000000000..7e074cc86a8 |
80 |
--- /dev/null |
81 |
+++ b/app-laptop/msi-keyboard/msi-keyboard-1.0.ebuild |
82 |
@@ -0,0 +1,26 @@ |
83 |
+# Copyright 1999-2019 Gentoo Authors |
84 |
+# Distributed under the terms of the GNU General Public License v2 |
85 |
+ |
86 |
+EAPI=7 |
87 |
+ |
88 |
+inherit udev |
89 |
+ |
90 |
+DESCRIPTION="Control backlight of MSI laptop keyboards" |
91 |
+HOMEPAGE="https://github.com/makkarpov/msi-keyboard" |
92 |
+SRC_URI="https://github.com/makkarpov/msi-keyboard/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
93 |
+ |
94 |
+LICENSE="GPL-3" |
95 |
+SLOT="0" |
96 |
+KEYWORDS="~amd64" |
97 |
+ |
98 |
+RDEPEND="dev-libs/hidapi" |
99 |
+ |
100 |
+PATCHES=( |
101 |
+ "${FILESDIR}"/${P}-makefile.patch |
102 |
+) |
103 |
+ |
104 |
+src_install() { |
105 |
+ udev_dorules 99-msi-keyboard.rules |
106 |
+ udev_reload |
107 |
+ dobin msi-keyboard |
108 |
+} |