commit:     7f9685828644dce80dd8afabe1a885a6b467718b
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 27 11:01:09 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Dec 27 11:01:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f968582

app-laptop/pbbuttonsd: honor user's AR setting

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild 
b/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild
index 8a17130c054..f2e26d756df 100644
--- a/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild
+++ b/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1a.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit autotools flag-o-matic
+inherit autotools flag-o-matic toolchain-funcs
 
 DESCRIPTION="Handles power management and special keys on laptops"
 HOMEPAGE="http://pbbuttons.berlios.de";
@@ -74,15 +74,18 @@ src_compile() {
        # Thanks to Stefan Bruda for this workaround
        # Using -j1 fixes a parallel build issue with the docs
        if use doc; then
-               emake -j1
+               emake -j1 AR="$(tc-getAR)"
        else
-               emake
+               emake AR="$(tc-getAR)"
        fi
 }
 
 src_install() {
        dodir /etc/power
-       use ibam && dodir /var/lib/ibam
+       if use ibam; then
+               dodir /var/lib/ibam
+               keepdir /var/lib/ibam
+       fi
 
        default
 
@@ -93,8 +96,9 @@ src_install() {
        use doc && dodoc -r doc/
 
        dodir /etc/power/resume.d
+       keepdir /etc/power/resume.d
        dodir /etc/power/suspend.d
-       dodir /etc/power/scripts.d
+       keepdir /etc/power/suspend.d
        exeinto /etc/power/scripts.d
        doexe "${FILESDIR}"/wireless
        ln -s "${D}"/etc/power/scripts.d/wireless 
"${D}"/etc/power/resume.d/wireless

Reply via email to