media-video/vlc: fix compiler type check
authorAmy Winston <amynka@gentoo.org>
Sun, 24 Jul 2016 10:00:23 +0000 (12:00 +0200)
committerAmy Winston <amynka@gentoo.org>
Sun, 24 Jul 2016 10:00:23 +0000 (12:00 +0200)
Package-Manager: portage-2.2.28

media-video/vlc/vlc-2.2.1-r1.ebuild
media-video/vlc/vlc-2.2.4.ebuild
media-video/vlc/vlc-2.2.9999.ebuild
media-video/vlc/vlc-9999.ebuild

index b2dbdf0af4ced9d9bfaf79c0befc227842dd019e..76fe9c6433d3195813b32f6cf55a31f88be564fe 100644 (file)
@@ -213,7 +213,7 @@ REQUIRED_USE="
 S="${WORKDIR}/${MY_P}"
 
 pkg_setup() {
-       if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then
+       if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == "*gcc*" ]] ; then
                if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then
                        die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
                fi
@@ -236,7 +236,7 @@ src_prepare() {
        # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
        #
        # https://gcc.gnu.org/c99status.html
-       if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
+       if [[ "$(tc-getCC)" == "*gcc*" ]] ; then
                sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
        fi
 
index 39681588dcea157e4acbe35248d8974e6e80a576..35b42eba6a2b6e0e5a3106850150693538aec0ff 100644 (file)
@@ -239,7 +239,7 @@ PATCHES=(
 S="${WORKDIR}/${MY_P}"
 
 pkg_setup() {
-       if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then
+       if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == "*gcc*" ]] ; then
                if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then
                        die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
                fi
@@ -262,7 +262,7 @@ src_prepare() {
        # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
        #
        # https://gcc.gnu.org/c99status.html
-       if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
+       if [[ "$(tc-getCC)" == "*gcc*" ]] ; then
                sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
        fi
 
index 2ca5cafb01e342a822d82ce6c1dd7156267dc922..62cc01049f3aa17ccdef81a5b0aa5430ef2bc7f1 100644 (file)
@@ -209,7 +209,7 @@ REQUIRED_USE="
 S="${WORKDIR}/${MY_P}"
 
 pkg_setup() {
-       if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then
+       if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == "*gcc*" ]] ; then
                if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then
                        die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
                fi
@@ -232,7 +232,7 @@ src_prepare() {
        # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
        #
        # https://gcc.gnu.org/c99status.html
-       if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
+       if [[ "$(tc-getCC)" == "*gcc*" ]] ; then
                sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
        fi
 
index 0ad493800418766bd9a8f0e567fe44f9abafa44a..1b4e268fc94c0a4641d289d15f6308681466a0de 100644 (file)
@@ -212,7 +212,7 @@ REQUIRED_USE="
 S="${WORKDIR}/${MY_P}"
 
 pkg_setup() {
-       if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then
+       if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == "*gcc*" ]] ; then
                if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then
                        die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
                fi
@@ -235,7 +235,7 @@ src_prepare() {
        # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
        #
        # https://gcc.gnu.org/c99status.html
-       if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
+       if [[ "$(tc-getCC)" == "*gcc*" ]] ; then
                sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
        fi