1 |
commit: 7f9685828644dce80dd8afabe1a885a6b467718b |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 27 11:01:09 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 11:01:15 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f968582 |
7 |
|
8 |
app-laptop/pbbuttonsd: honor user's AR setting |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild | 16 ++++++++++------ |
14 |
1 file changed, 10 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild b/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild |
17 |
index 8a17130c054..f2e26d756df 100644 |
18 |
--- a/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild |
19 |
+++ b/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild |
20 |
@@ -1,8 +1,8 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=6 |
26 |
-inherit autotools flag-o-matic |
27 |
+inherit autotools flag-o-matic toolchain-funcs |
28 |
|
29 |
DESCRIPTION="Handles power management and special keys on laptops" |
30 |
HOMEPAGE="http://pbbuttons.berlios.de" |
31 |
@@ -74,15 +74,18 @@ src_compile() { |
32 |
# Thanks to Stefan Bruda for this workaround |
33 |
# Using -j1 fixes a parallel build issue with the docs |
34 |
if use doc; then |
35 |
- emake -j1 |
36 |
+ emake -j1 AR="$(tc-getAR)" |
37 |
else |
38 |
- emake |
39 |
+ emake AR="$(tc-getAR)" |
40 |
fi |
41 |
} |
42 |
|
43 |
src_install() { |
44 |
dodir /etc/power |
45 |
- use ibam && dodir /var/lib/ibam |
46 |
+ if use ibam; then |
47 |
+ dodir /var/lib/ibam |
48 |
+ keepdir /var/lib/ibam |
49 |
+ fi |
50 |
|
51 |
default |
52 |
|
53 |
@@ -93,8 +96,9 @@ src_install() { |
54 |
use doc && dodoc -r doc/ |
55 |
|
56 |
dodir /etc/power/resume.d |
57 |
+ keepdir /etc/power/resume.d |
58 |
dodir /etc/power/suspend.d |
59 |
- dodir /etc/power/scripts.d |
60 |
+ keepdir /etc/power/suspend.d |
61 |
exeinto /etc/power/scripts.d |
62 |
doexe "${FILESDIR}"/wireless |
63 |
ln -s "${D}"/etc/power/scripts.d/wireless "${D}"/etc/power/resume.d/wireless |