No more subshells and cleaner grouping of conditionals.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
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