Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/
Date: Thu, 04 May 2017 16:28:34
Message-Id: 1493915237.78170de967069b766241fa7793b46e031c3a761d.soap@gentoo
1 commit: 78170de967069b766241fa7793b46e031c3a761d
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 27 19:42:57 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu May 4 16:27:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78170de9
7
8 media-video/mpv: cleanup messy GCC check in 9999
9
10 No more subshells and cleaner grouping of conditionals.
11
12 Package-Manager: Portage-2.3.5, Repoman-2.3.2
13
14 media-video/mpv/mpv-9999.ebuild | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17 diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild
18 index e13ffde3161..9d23b6c88d5 100644
19 --- a/media-video/mpv/mpv-9999.ebuild
20 +++ b/media-video/mpv/mpv-9999.ebuild
21 @@ -138,8 +138,8 @@ PATCHES=(
22
23 mpv_check_compiler() {
24 if [[ ${MERGE_TYPE} != "binary" ]]; then
25 - if tc-is-gcc && ( [[ $(gcc-major-version) -lt 4 ]] || \
26 - ( [[ $(gcc-major-version) -eq 4 ]] && [[ $(gcc-minor-version) -lt 5 ]] ) ); then
27 + if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || \
28 + ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 5 ) ]]; then
29 die "${PN} requires GCC>=4.5."
30 fi
31 if ( use opengl || use egl ) && ! tc-has-tls; then