1 |
commit: ab3ba62b708cd6829fbe939eef827b56ad9411bc |
2 |
Author: David Michael <david.michael <AT> coreos <DOT> com> |
3 |
AuthorDate: Thu Jun 15 00:41:13 2017 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 29 01:01:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab3ba62b |
7 |
|
8 |
app-crypt/pesign: Supply cross-compiling programs |
9 |
|
10 |
(with minor style changes from vdupras) |
11 |
|
12 |
Closes: https://bugs.gentoo.org/621804 |
13 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
14 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
15 |
|
16 |
app-crypt/pesign/pesign-0.112.ebuild | 12 +++++++++--- |
17 |
1 file changed, 9 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/app-crypt/pesign/pesign-0.112.ebuild b/app-crypt/pesign/pesign-0.112.ebuild |
20 |
index 314dcb7d8cd..3937fb8fdcd 100644 |
21 |
--- a/app-crypt/pesign/pesign-0.112.ebuild |
22 |
+++ b/app-crypt/pesign/pesign-0.112.ebuild |
23 |
@@ -1,4 +1,4 @@ |
24 |
-# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Copyright 1999-2018 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=6 |
29 |
@@ -35,7 +35,13 @@ PATCHES=( |
30 |
) |
31 |
|
32 |
src_compile() { |
33 |
- emake CC="$(tc-getCC)" |
34 |
+ emake AR="$(tc-is-gcc && echo "$(tc-getCC)-ar" || tc-getAR)" \ |
35 |
+ AS="$(tc-getAS)" \ |
36 |
+ CC="$(tc-getCC)" \ |
37 |
+ LD="$(tc-getLD)" \ |
38 |
+ OBJCOPY="$(tc-getOBJCOPY)" \ |
39 |
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \ |
40 |
+ RANLIB="$(tc-getRANLIB)" |
41 |
} |
42 |
|
43 |
src_install() { |
44 |
@@ -44,5 +50,5 @@ src_install() { |
45 |
|
46 |
# remove some files that don't make sense for Gentoo installs |
47 |
rm -rf "${ED%/}/etc/" "${ED%/}/var/" \ |
48 |
- "${ED%/}/usr/share/doc/${PF}/COPYING" || die |
49 |
+ "${ED%/}/usr/share/doc/${PF}/COPYING" || die |
50 |
} |