From: Ilya Tumaykin Date: Thu, 27 Apr 2017 19:42:57 +0000 (+0300) Subject: media-video/mpv: cleanup messy GCC check in 9999 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=78170de967069b766241fa7793b46e031c3a761d;p=gentoo.git media-video/mpv: cleanup messy GCC check in 9999 No more subshells and cleaner grouping of conditionals. Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild index e13ffde31611..9d23b6c88d54 100644 --- a/media-video/mpv/mpv-9999.ebuild +++ b/media-video/mpv/mpv-9999.ebuild @@ -138,8 +138,8 @@ PATCHES=( mpv_check_compiler() { if [[ ${MERGE_TYPE} != "binary" ]]; then - if tc-is-gcc && ( [[ $(gcc-major-version) -lt 4 ]] || \ - ( [[ $(gcc-major-version) -eq 4 ]] && [[ $(gcc-minor-version) -lt 5 ]] ) ); then + if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || \ + ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 5 ) ]]; then die "${PN} requires GCC>=4.5." fi if ( use opengl || use egl ) && ! tc-has-tls; then