From 78170de967069b766241fa7793b46e031c3a761d Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Thu, 27 Apr 2017 22:42:57 +0300 Subject: [PATCH] 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 --- media-video/mpv/mpv-9999.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2