diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2014-04-14 15:45:16 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2014-04-14 15:45:16 +0000 |
commit | 5eb2a1bd8dbdb3fd1eefeb4134d0d6bced1a135f (patch) | |
tree | 7a01eb18a94fcf5a5416db225f5c020736c7caa0 /eclass/leechcraft.eclass | |
parent | Add dep on libsdl[opengl] for screenshot code, bug #507600. (diff) | |
download | gentoo-2-5eb2a1bd8dbdb3fd1eefeb4134d0d6bced1a135f.tar.gz gentoo-2-5eb2a1bd8dbdb3fd1eefeb4134d0d6bced1a135f.tar.bz2 gentoo-2-5eb2a1bd8dbdb3fd1eefeb4134d0d6bced1a135f.zip |
Require at least gcc-4.8 for new LeechCraft packages
Diffstat (limited to 'eclass/leechcraft.eclass')
-rw-r--r-- | eclass/leechcraft.eclass | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/leechcraft.eclass b/eclass/leechcraft.eclass index b80301b693bf..01b77cda3897 100644 --- a/eclass/leechcraft.eclass +++ b/eclass/leechcraft.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.12 2013/09/24 15:39:43 maksbotan Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.13 2014/04/14 15:45:16 maksbotan Exp $ # # @ECLASS: leechcraft.eclass # @MAINTAINER: @@ -80,4 +80,13 @@ leechcraft_pkg_pretend() { && die "Sorry, but gcc 4.6 or higher is required." fi fi + if version_is_at_least 0.6.66 || ( [[ ${PN} == lc-monocle ]] && version_is_at_least 0.6.65 ); then + echo "lalalalala" + # 0.6.65 monocle and all later plugins require at least gcc 4.8 + if [[ ${MERGE_TYPE} != binary ]]; then + [[ $(gcc-major-version) -lt 4 ]] || \ + ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]] ) \ + && die "Sorry, but gcc 4.8 or higher is required." + fi + fi } |