commit:     64095b1dfcc2d960025fd5accd3fe8d96d6431d2
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 21 17:32:10 2018 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Sat Apr 21 17:32:54 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64095b1d

sys-apps/i2c-tools: respect AR/CFLAGS

Closes: https://bugs.gentoo.org/651528
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-apps/i2c-tools/i2c-tools-4.0.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-apps/i2c-tools/i2c-tools-4.0.ebuild 
b/sys-apps/i2c-tools/i2c-tools-4.0.ebuild
index 32dffbf1e2b..3cd2a7f5508 100644
--- a/sys-apps/i2c-tools/i2c-tools-4.0.ebuild
+++ b/sys-apps/i2c-tools/i2c-tools-4.0.ebuild
@@ -32,9 +32,9 @@ src_configure() {
 }
 
 src_compile() {
-       emake all-lib CC=$(tc-getCC) # parallel make
+       emake all-lib AR=$(tc-getAR) CC=$(tc-getCC) # parallel make
        emake CC=$(tc-getCC)
-       emake -C eepromer CC=$(tc-getCC)
+       emake -C eepromer CC=$(tc-getCC) CFLAGS="${CFLAGS}"
        if use python ; then
                cd py-smbus || die
                append-cppflags -I../include
@@ -45,7 +45,7 @@ src_compile() {
 src_install() {
        emake install-lib install libdir="${D}"/usr/$(get_libdir) 
prefix="${D}"/usr
        dosbin eepromer/eeprom{,er}
-       rm -rf "${D}"/usr/include # part of linux-headers
+       rm -rf "${D}"/usr/include || die # part of linux-headers
        dodoc CHANGES README
        local d
        for d in eeprom eepromer ; do

Reply via email to