1 |
commit: ad30d3bace6259482ccafd5e87021c367b77c544 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 22 23:07:29 2015 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 2 18:34:49 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad30d3ba |
7 |
|
8 |
qt5-build.eclass: add missing die when using cat with heredocs |
9 |
|
10 |
(cherry picked from proj/qt commit f3886df8a10a03548efb3941c84aefc51fb4b195) |
11 |
|
12 |
eclass/qt5-build.eclass | 11 ++++------- |
13 |
1 file changed, 4 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass |
16 |
index c03daf3..6534f81 100644 |
17 |
--- a/eclass/qt5-build.eclass |
18 |
+++ b/eclass/qt5-build.eclass |
19 |
@@ -17,12 +17,9 @@ case ${EAPI} in |
20 |
*) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;; |
21 |
esac |
22 |
|
23 |
+[[ ${EAPI} == 5 ]] && inherit multilib |
24 |
inherit eutils flag-o-matic toolchain-funcs versionator virtualx |
25 |
|
26 |
-if [[ ${EAPI} == 5 ]]; then |
27 |
- inherit multilib |
28 |
-fi |
29 |
- |
30 |
HOMEPAGE="https://www.qt.io/" |
31 |
LICENSE="|| ( LGPL-2.1 LGPL-3 ) FDL-1.3" |
32 |
|
33 |
@@ -241,12 +238,12 @@ qt5-build_src_test() { |
34 |
# create a custom testrunner script that correctly sets |
35 |
# {,DY}LD_LIBRARY_PATH before executing the given test |
36 |
local testrunner=${QT5_BUILD_DIR}/gentoo-testrunner |
37 |
- cat <<-EOF > "${testrunner}" |
38 |
+ cat > "${testrunner}" <<-_EOF_ || die |
39 |
#!/bin/sh |
40 |
export LD_LIBRARY_PATH="${QT5_BUILD_DIR}/lib:${QT5_LIBDIR}" |
41 |
export DYLD_LIBRARY_PATH="${QT5_BUILD_DIR}/lib:${QT5_LIBDIR}" |
42 |
"\$@" |
43 |
- EOF |
44 |
+ _EOF_ |
45 |
chmod +x "${testrunner}" |
46 |
|
47 |
_qt5_test_runner() { |
48 |
@@ -291,7 +288,7 @@ qt5-build_src_install() { |
49 |
|| die "sed failed (qconfig.h)" |
50 |
|
51 |
# install qtchooser configuration file |
52 |
- cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ |
53 |
+ cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ || die |
54 |
${QT5_BINDIR} |
55 |
${QT5_LIBDIR} |
56 |
_EOF_ |