Skip to content

Commit

Permalink
media-video/mpv: cleanup messy GCC check in 9999
Browse files Browse the repository at this point in the history
No more subshells and cleaner grouping of conditionals.

Package-Manager: Portage-2.3.5, Repoman-2.3.2
  • Loading branch information
Coacher authored and SoapGentoo committed May 4, 2017
1 parent 9af33e4 commit 78170de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media-video/mpv/mpv-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78170de

Please sign in to comment.