app-crypt/pesign: Supply cross-compiling programs
authorDavid Michael <david.michael@coreos.com>
Thu, 15 Jun 2017 00:41:13 +0000 (17:41 -0700)
committerVirgil Dupras <vdupras@gentoo.org>
Sat, 29 Sep 2018 01:01:48 +0000 (21:01 -0400)
(with minor style changes from vdupras)

Closes: https://bugs.gentoo.org/621804
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
app-crypt/pesign/pesign-0.112.ebuild

index 314dcb7d8cd1572b03b4744c20911c424b29c27a..3937fb8fdcd653b3aaf75471b9bc1390358eef18 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -35,7 +35,13 @@ PATCHES=(
 )
 
 src_compile() {
-       emake CC="$(tc-getCC)"
+       emake AR="$(tc-is-gcc && echo "$(tc-getCC)-ar" || tc-getAR)" \
+               AS="$(tc-getAS)" \
+               CC="$(tc-getCC)" \
+               LD="$(tc-getLD)" \
+               OBJCOPY="$(tc-getOBJCOPY)" \
+               PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+               RANLIB="$(tc-getRANLIB)"
 }
 
 src_install() {
@@ -44,5 +50,5 @@ src_install() {
 
        # remove some files that don't make sense for Gentoo installs
        rm -rf "${ED%/}/etc/" "${ED%/}/var/" \
-          "${ED%/}/usr/share/doc/${PF}/COPYING" || die
+               "${ED%/}/usr/share/doc/${PF}/COPYING" || die
 }