From: Andreas Sturmlechner Date: Sat, 6 Feb 2016 13:56:30 +0000 (+0100) Subject: app-text/libetonyek: Check for GCC >= 4.8, bug 557348 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b872c592e255afa57e63f140ba322847b4a5c694;p=gentoo.git app-text/libetonyek: Check for GCC >= 4.8, bug 557348 Pin mdds DEPEND to slot 0. Package-Manager: portage-2.2.27 --- diff --git a/app-text/libetonyek/libetonyek-0.1.3.ebuild b/app-text/libetonyek/libetonyek-0.1.3.ebuild index b28954866d73..295a5d8ed2c2 100644 --- a/app-text/libetonyek/libetonyek-0.1.3.ebuild +++ b/app-text/libetonyek/libetonyek-0.1.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -25,7 +25,7 @@ RDEPEND=" " DEPEND="${RDEPEND} >=dev-libs/boost-1.46 - >=dev-util/mdds-0.12.1 + >=dev-util/mdds-0.12.1:0 media-libs/glm sys-devel/libtool virtual/pkgconfig @@ -33,6 +33,15 @@ DEPEND="${RDEPEND} test? ( dev-util/cppunit ) " +pkg_pretend() { + if [[ $(gcc-major-version) -lt 4 ]] || { + [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]]; } + then + eerror "Compilation with gcc older than 4.8 is not supported" + die "Too old gcc found." + fi +} + src_prepare() { [[ -d m4 ]] || mkdir "m4" base_src_prepare diff --git a/app-text/libetonyek/libetonyek-9999.ebuild b/app-text/libetonyek/libetonyek-9999.ebuild index 649d81202695..210690067492 100644 --- a/app-text/libetonyek/libetonyek-9999.ebuild +++ b/app-text/libetonyek/libetonyek-9999.ebuild @@ -33,6 +33,15 @@ DEPEND="${RDEPEND} test? ( dev-util/cppunit ) " +pkg_pretend() { + if [[ $(gcc-major-version) -lt 4 ]] || { + [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]]; } + then + eerror "Compilation with gcc older than 4.8 is not supported" + die "Too old gcc found." + fi +} + src_prepare() { [[ -d m4 ]] || mkdir "m4" base_src_prepare diff --git a/app-text/libetonyek/metadata.xml b/app-text/libetonyek/metadata.xml index 9d67a9d55246..13ce236ee519 100644 --- a/app-text/libetonyek/metadata.xml +++ b/app-text/libetonyek/metadata.xml @@ -1,8 +1,8 @@ - - office@gentoo.org - Gentoo Office project - + + office@gentoo.org + Gentoo Office project +