diff options
author | Davide Pesavento <pesa@gentoo.org> | 2015-11-23 00:07:29 +0100 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2016-02-02 19:34:49 +0100 |
commit | ad30d3bace6259482ccafd5e87021c367b77c544 (patch) | |
tree | 57438ec8c3d8b1b8bc074e27d35d33fe3342e6fd /eclass/qt5-build.eclass | |
parent | qt5-build.eclass: minor configure updates for 5.6 and later (diff) | |
download | gentoo-ad30d3bace6259482ccafd5e87021c367b77c544.tar.gz gentoo-ad30d3bace6259482ccafd5e87021c367b77c544.tar.bz2 gentoo-ad30d3bace6259482ccafd5e87021c367b77c544.zip |
qt5-build.eclass: add missing die when using cat with heredocs
(cherry picked from proj/qt commit f3886df8a10a03548efb3941c84aefc51fb4b195)
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r-- | eclass/qt5-build.eclass | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index c03daf331f90..6534f8106d2b 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_ |