1 |
commit: d87b4b444b121e83cd1d8bf513c60ef8ab238c46 |
2 |
Author: Henning Schild <henning <AT> hennsch <DOT> de> |
3 |
AuthorDate: Mon Jan 7 18:44:06 2019 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 7 19:08:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d87b4b44 |
7 |
|
8 |
app-laptop/laptop-mode-tools: pick upstream commit to enable gui |
9 |
|
10 |
The ebuild ships a gui and a corresponding .desktop file, but the whole |
11 |
thing does not work because of an upstream issue. In fact that issue has |
12 |
been solved upstream, in the first commit after the relase. |
13 |
|
14 |
https://github.com/rickysarraf/laptop-mode-tools/commit/f1c44c8fca177b |
15 |
|
16 |
Closes: https://github.com/gentoo/gentoo/pull/10766 |
17 |
Signed-off-by: Henning Schild <henning <AT> hennsch.de> |
18 |
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org> |
19 |
|
20 |
.../0001-Fix-case-sensitive-name-for-lmt.py.patch | 46 ++++++++++++++++++++++ |
21 |
...2.ebuild => laptop-mode-tools-1.72.2-r1.ebuild} | 6 ++- |
22 |
2 files changed, 51 insertions(+), 1 deletion(-) |
23 |
|
24 |
diff --git a/app-laptop/laptop-mode-tools/files/0001-Fix-case-sensitive-name-for-lmt.py.patch b/app-laptop/laptop-mode-tools/files/0001-Fix-case-sensitive-name-for-lmt.py.patch |
25 |
new file mode 100644 |
26 |
index 00000000000..14d2801240f |
27 |
--- /dev/null |
28 |
+++ b/app-laptop/laptop-mode-tools/files/0001-Fix-case-sensitive-name-for-lmt.py.patch |
29 |
@@ -0,0 +1,46 @@ |
30 |
+From f1c44c8fca177b399bc5cb889ff2dfba2427ae30 Mon Sep 17 00:00:00 2001 |
31 |
+From: Ritesh Raj Sarraf <rrs@××××××.org> |
32 |
+Date: Mon, 5 Feb 2018 08:51:26 +0530 |
33 |
+Subject: [PATCH] Fix case sensitive name for lmt.py |
34 |
+ |
35 |
+Closes: https://github.com/rickysarraf/laptop-mode-tools/issues/124 |
36 |
+--- |
37 |
+ gui/{LMT.py => lmt.py} | 0 |
38 |
+ install.sh | 2 +- |
39 |
+ laptop-mode-tools.spec | 2 +- |
40 |
+ 3 files changed, 2 insertions(+), 2 deletions(-) |
41 |
+ rename gui/{LMT.py => lmt.py} (100%) |
42 |
+ |
43 |
+diff --git a/gui/LMT.py b/gui/lmt.py |
44 |
+similarity index 100% |
45 |
+rename from gui/LMT.py |
46 |
+rename to gui/lmt.py |
47 |
+diff --git a/install.sh b/install.sh |
48 |
+index 5692646..b68424f 100755 |
49 |
+--- a/install.sh |
50 |
++++ b/install.sh |
51 |
+@@ -209,7 +209,7 @@ if ( ! $INSTALL -m 644 gui/laptop-mode-tools.svg "$DESTDIR/usr/share/pixmaps" ) |
52 |
+ exit 11 |
53 |
+ fi |
54 |
+ |
55 |
+-if ( ! $INSTALL -m 644 gui/LMT.py "$DESTDIR/usr/share/laptop-mode-tools" ) ; then |
56 |
++if ( ! $INSTALL -m 644 gui/lmt.py "$DESTDIR/usr/share/laptop-mode-tools" ) ; then |
57 |
+ echo "$0: Failed to install $DESTDIR/usr/share/laptop-mode-tools/lmt.py"; |
58 |
+ exit 11 |
59 |
+ fi |
60 |
+diff --git a/laptop-mode-tools.spec b/laptop-mode-tools.spec |
61 |
+index 2e4a164..72fa751 100644 |
62 |
+--- a/laptop-mode-tools.spec |
63 |
++++ b/laptop-mode-tools.spec |
64 |
+@@ -83,7 +83,7 @@ fi |
65 |
+ #%{_usr}/sbin/* |
66 |
+ %{_sbindir}/* |
67 |
+ %{_usr}/share/applications/laptop-mode-tools.desktop |
68 |
+-%{_usr}/share/laptop-mode-tools/LMT.py |
69 |
++%{_usr}/share/laptop-mode-tools/lmt.py |
70 |
+ %{_usr}/share/laptop-mode-tools/modules/* |
71 |
+ %{_usr}/share/laptop-mode-tools/module-helpers/* |
72 |
+ %{_usr}/share/pixmaps/laptop-mode-tools.svg |
73 |
+-- |
74 |
+2.19.2 |
75 |
+ |
76 |
|
77 |
diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2-r1.ebuild |
78 |
similarity index 95% |
79 |
rename from app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2.ebuild |
80 |
rename to app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2-r1.ebuild |
81 |
index 822d2452f93..a9ae177ba5a 100644 |
82 |
--- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2.ebuild |
83 |
+++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2-r1.ebuild |
84 |
@@ -1,4 +1,4 @@ |
85 |
-# Copyright 1999-2018 Gentoo Foundation |
86 |
+# Copyright 1999-2019 Gentoo Authors |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
|
89 |
EAPI=7 |
90 |
@@ -27,6 +27,10 @@ RDEPEND="sys-apps/iproute2 |
91 |
apm? ( sys-apps/apmd ) |
92 |
bluetooth? ( net-wireless/bluez:= )" |
93 |
|
94 |
+PATCHES=( |
95 |
+ "${FILESDIR}/0001-Fix-case-sensitive-name-for-lmt.py.patch" |
96 |
+) |
97 |
+ |
98 |
S="${WORKDIR}/${MY_P}" |
99 |
|
100 |
src_prepare() { |