diff options
Diffstat (limited to 'media-video/vlc/vlc-2.2.1-r1.ebuild')
-rw-r--r-- | media-video/vlc/vlc-2.2.1-r1.ebuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/media-video/vlc/vlc-2.2.1-r1.ebuild b/media-video/vlc/vlc-2.2.1-r1.ebuild index b2dbdf0af4ce..119a8244ece4 100644 --- a/media-video/vlc/vlc-2.2.1-r1.ebuild +++ b/media-video/vlc/vlc-2.2.1-r1.ebuild @@ -15,7 +15,7 @@ if [ "${PV%9999}" != "${PV}" ] ; then fi fi -inherit eutils multilib autotools toolchain-funcs flag-o-matic virtualx ${SCM} +inherit eutils multilib autotools toolchain-funcs flag-o-matic versionator virtualx ${SCM} MY_PV="${PV/_/-}" MY_PV="${MY_PV/-beta/-test}" @@ -213,8 +213,8 @@ REQUIRED_USE=" S="${WORKDIR}/${MY_P}" pkg_setup() { - if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then - if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then + if [[ "${MERGE_TYPE}" != "binary" ]] && tc-is-gcc ; then + if ! version_is_at_least 4.5 $(gcc-version) ; 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 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-is-gcc ; then sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die fi |