1 |
commit: 1da451458ddc4f927b16a8877b44cf4ca15d7a56 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 24 14:34:08 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 24 14:34:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1da45145 |
7 |
|
8 |
dev-util/mingw64-runtime: use $(alt_prefix) when cross-building |
9 |
|
10 |
It's one of the steps to be able to cross-build 'dev-util/mingw64-runtime' |
11 |
("CBUILD != (CHOST = CTARGET)" case). |
12 |
|
13 |
Noticed by Marty E. Plummer. |
14 |
|
15 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
16 |
|
17 |
dev-util/mingw64-runtime/mingw64-runtime-5.0.3-r1.ebuild | 11 +++++++---- |
18 |
1 file changed, 7 insertions(+), 4 deletions(-) |
19 |
|
20 |
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.3-r1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.3-r1.ebuild |
21 |
index 0dcbcfe06ee..68655a1ed3a 100644 |
22 |
--- a/dev-util/mingw64-runtime/mingw64-runtime-5.0.3-r1.ebuild |
23 |
+++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.3-r1.ebuild |
24 |
@@ -35,7 +35,10 @@ is_crosscompile() { |
25 |
[[ ${CHOST} != ${CTARGET} ]] |
26 |
} |
27 |
just_headers() { |
28 |
- use headers-only && [[ ${CHOST} != ${CTARGET} ]] |
29 |
+ is_crosscompile && use headers-only |
30 |
+} |
31 |
+alt_prefix() { |
32 |
+ is_crosscompile && echo /usr/${CTARGET} |
33 |
} |
34 |
crt_with() { |
35 |
just_headers && echo --without-$1 || echo --with-$1 |
36 |
@@ -74,9 +77,9 @@ src_configure() { |
37 |
fi |
38 |
|
39 |
CHOST=${CTARGET} econf \ |
40 |
- --prefix="${EPREFIX}"/usr/${CTARGET} \ |
41 |
- --includedir="${EPREFIX}"/usr/${CTARGET}/usr/include \ |
42 |
- --libdir="${EPREFIX}"/usr/${CTARGET}/usr/lib \ |
43 |
+ --prefix="${EPREFIX}"$(alt_prefix) \ |
44 |
+ --includedir="${EPREFIX}"$(alt_prefix)/usr/include \ |
45 |
+ --libdir="${EPREFIX}"$(alt_prefix)/usr/lib \ |
46 |
--with-headers \ |
47 |
--enable-sdk \ |
48 |
$(crt_with crt) \ |