diff options
author | 2019-01-07 19:44:06 +0100 | |
---|---|---|
committer | 2019-01-07 21:08:47 +0200 | |
commit | d87b4b444b121e83cd1d8bf513c60ef8ab238c46 (patch) | |
tree | bd86f7d687ea4e8c5e2f7f36c43bc95902431c96 /app-laptop | |
parent | app-crypt/certbot-nginx: 0.30.0 bump (diff) | |
download | gentoo-d87b4b444b121e83cd1d8bf513c60ef8ab238c46.tar.gz gentoo-d87b4b444b121e83cd1d8bf513c60ef8ab238c46.tar.bz2 gentoo-d87b4b444b121e83cd1d8bf513c60ef8ab238c46.zip |
app-laptop/laptop-mode-tools: pick upstream commit to enable gui
The ebuild ships a gui and a corresponding .desktop file, but the whole
thing does not work because of an upstream issue. In fact that issue has
been solved upstream, in the first commit after the relase.
https://github.com/rickysarraf/laptop-mode-tools/commit/f1c44c8fca177b
Closes: https://github.com/gentoo/gentoo/pull/10766
Signed-off-by: Henning Schild <henning@hennsch.de>
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/laptop-mode-tools/files/0001-Fix-case-sensitive-name-for-lmt.py.patch | 46 | ||||
-rw-r--r-- | app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2-r1.ebuild (renamed from app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2.ebuild) | 6 |
2 files changed, 51 insertions, 1 deletions
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 new file mode 100644 index 000000000000..14d2801240f4 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/0001-Fix-case-sensitive-name-for-lmt.py.patch @@ -0,0 +1,46 @@ +From f1c44c8fca177b399bc5cb889ff2dfba2427ae30 Mon Sep 17 00:00:00 2001 +From: Ritesh Raj Sarraf <rrs@debian.org> +Date: Mon, 5 Feb 2018 08:51:26 +0530 +Subject: [PATCH] Fix case sensitive name for lmt.py + +Closes: https://github.com/rickysarraf/laptop-mode-tools/issues/124 +--- + gui/{LMT.py => lmt.py} | 0 + install.sh | 2 +- + laptop-mode-tools.spec | 2 +- + 3 files changed, 2 insertions(+), 2 deletions(-) + rename gui/{LMT.py => lmt.py} (100%) + +diff --git a/gui/LMT.py b/gui/lmt.py +similarity index 100% +rename from gui/LMT.py +rename to gui/lmt.py +diff --git a/install.sh b/install.sh +index 5692646..b68424f 100755 +--- a/install.sh ++++ b/install.sh +@@ -209,7 +209,7 @@ if ( ! $INSTALL -m 644 gui/laptop-mode-tools.svg "$DESTDIR/usr/share/pixmaps" ) + exit 11 + fi + +-if ( ! $INSTALL -m 644 gui/LMT.py "$DESTDIR/usr/share/laptop-mode-tools" ) ; then ++if ( ! $INSTALL -m 644 gui/lmt.py "$DESTDIR/usr/share/laptop-mode-tools" ) ; then + echo "$0: Failed to install $DESTDIR/usr/share/laptop-mode-tools/lmt.py"; + exit 11 + fi +diff --git a/laptop-mode-tools.spec b/laptop-mode-tools.spec +index 2e4a164..72fa751 100644 +--- a/laptop-mode-tools.spec ++++ b/laptop-mode-tools.spec +@@ -83,7 +83,7 @@ fi + #%{_usr}/sbin/* + %{_sbindir}/* + %{_usr}/share/applications/laptop-mode-tools.desktop +-%{_usr}/share/laptop-mode-tools/LMT.py ++%{_usr}/share/laptop-mode-tools/lmt.py + %{_usr}/share/laptop-mode-tools/modules/* + %{_usr}/share/laptop-mode-tools/module-helpers/* + %{_usr}/share/pixmaps/laptop-mode-tools.svg +-- +2.19.2 + 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 index 822d2452f934..a9ae177ba5ad 100644 --- 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 @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -27,6 +27,10 @@ RDEPEND="sys-apps/iproute2 apm? ( sys-apps/apmd ) bluetooth? ( net-wireless/bluez:= )" +PATCHES=( + "${FILESDIR}/0001-Fix-case-sensitive-name-for-lmt.py.patch" +) + S="${WORKDIR}/${MY_P}" src_prepare() { |