commit:     78170de967069b766241fa7793b46e031c3a761d
Author:     Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Thu Apr 27 19:42:57 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu May  4 16:27:17 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78170de9

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 e13ffde3161..9d23b6c88d5 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

Reply via email to