summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2015-11-23 00:07:29 +0100
committerDavide Pesavento <pesa@gentoo.org>2016-02-02 19:34:49 +0100
commitad30d3bace6259482ccafd5e87021c367b77c544 (patch)
tree57438ec8c3d8b1b8bc074e27d35d33fe3342e6fd /eclass
parent72edb80bf398dbc00671417c95155b551f579d1f (diff)
downloadgentoo-ad30d3bace6259482ccafd5e87021c367b77c544.tar.gz
gentoo-ad30d3bace6259482ccafd5e87021c367b77c544.tar.xz
qt5-build.eclass: add missing die when using cat with heredocs
(cherry picked from proj/qt commit f3886df8a10a03548efb3941c84aefc51fb4b195)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass11
1 files changed, 4 insertions, 7 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index c03daf331f9..6534f8106d2 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -17,12 +17,9 @@ case ${EAPI} in
*) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
esac
+[[ ${EAPI} == 5 ]] && inherit multilib
inherit eutils flag-o-matic toolchain-funcs versionator virtualx
-if [[ ${EAPI} == 5 ]]; then
- inherit multilib
-fi
-
HOMEPAGE="https://www.qt.io/"
LICENSE="|| ( LGPL-2.1 LGPL-3 ) FDL-1.3"
@@ -241,12 +238,12 @@ qt5-build_src_test() {
# create a custom testrunner script that correctly sets
# {,DY}LD_LIBRARY_PATH before executing the given test
local testrunner=${QT5_BUILD_DIR}/gentoo-testrunner
- cat <<-EOF > "${testrunner}"
+ cat > "${testrunner}" <<-_EOF_ || die
#!/bin/sh
export LD_LIBRARY_PATH="${QT5_BUILD_DIR}/lib:${QT5_LIBDIR}"
export DYLD_LIBRARY_PATH="${QT5_BUILD_DIR}/lib:${QT5_LIBDIR}"
"\$@"
- EOF
+ _EOF_
chmod +x "${testrunner}"
_qt5_test_runner() {
@@ -291,7 +288,7 @@ qt5-build_src_install() {
|| die "sed failed (qconfig.h)"
# install qtchooser configuration file
- cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_
+ cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ || die
${QT5_BINDIR}
${QT5_LIBDIR}
_EOF_