summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2014-04-14 15:45:16 +0000
committerMaxim Koltsov <maksbotan@gentoo.org>2014-04-14 15:45:16 +0000
commit5b3ebb23027eb99ccffa1b5bd1c025bc3f35b411 (patch)
treeda1e312677b3b2ba48f2686c6d0df8bfcb12c6bc /eclass
parentAdd dep on libsdl[opengl] for screenshot code, bug #507600. (diff)
downloadhistorical-5b3ebb23027eb99ccffa1b5bd1c025bc3f35b411.tar.gz
historical-5b3ebb23027eb99ccffa1b5bd1c025bc3f35b411.tar.bz2
historical-5b3ebb23027eb99ccffa1b5bd1c025bc3f35b411.zip
Require at least gcc-4.8 for new LeechCraft packages
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/leechcraft.eclass13
2 files changed, 15 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index a94de3f1921c..9fc825c26459 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1204 2014/04/11 08:30:44 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1205 2014/04/14 15:45:16 maksbotan Exp $
+
+ 14 Apr 2014; Maxim Koltsov <maksbotan@gentoo.org> leechcraft.eclass:
+ Require at least gcc-4.8 for new LeechCraft packages
11 Apr 2014; Michał Górny <mgorny@gentoo.org> multibuild.eclass:
Enable reflinking in multibuild_copy_sources.
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
}