summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libmirage')
-rw-r--r--dev-libs/libmirage/ChangeLog6
-rw-r--r--dev-libs/libmirage/libmirage-2.0.0.ebuild21
2 files changed, 24 insertions, 3 deletions
diff --git a/dev-libs/libmirage/ChangeLog b/dev-libs/libmirage/ChangeLog
index 451e3fe67811..90c3f9b54be9 100644
--- a/dev-libs/libmirage/ChangeLog
+++ b/dev-libs/libmirage/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/libmirage
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmirage/ChangeLog,v 1.26 2013/01/30 05:18:24 tetromino Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmirage/ChangeLog,v 1.27 2013/02/02 22:03:29 tetromino Exp $
+
+ 02 Feb 2013; Alexandre Rostovtsev <tetromino@gentoo.org>
+ libmirage-2.0.0.ebuild:
+ Require >=gcc-4.6 to build (bug #455108, thanks to Anton Romanov).
30 Jan 2013; Alexandre Rostovtsev <tetromino@gentoo.org>
libmirage-2.0.0.ebuild, +files/libmirage-2.0.0-gtk-doc.patch:
diff --git a/dev-libs/libmirage/libmirage-2.0.0.ebuild b/dev-libs/libmirage/libmirage-2.0.0.ebuild
index b0ace8425303..ec0353e45ad6 100644
--- a/dev-libs/libmirage/libmirage-2.0.0.ebuild
+++ b/dev-libs/libmirage/libmirage-2.0.0.ebuild
@@ -1,12 +1,12 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmirage/libmirage-2.0.0.ebuild,v 1.2 2013/01/30 05:18:24 tetromino Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmirage/libmirage-2.0.0.ebuild,v 1.3 2013/02/02 22:03:29 tetromino Exp $
EAPI="5"
CMAKE_MIN_VERSION="2.8.5"
-inherit cmake-utils eutils fdo-mime
+inherit cmake-utils eutils fdo-mime toolchain-funcs versionator
DESCRIPTION="CD and DVD image access library"
HOMEPAGE="http://cdemu.org"
@@ -28,6 +28,14 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
doc? ( dev-util/gtk-doc )"
+pkg_pretend() {
+ check_compiler
+}
+
+pkg_setup() {
+ check_compiler
+}
+
src_prepare() {
# Make sure gtk-doc and gobject-introspection are optional
# https://sourceforge.net/p/cdemu/patches/16/
@@ -57,3 +65,12 @@ pkg_postinst() {
pkg_postrm() {
fdo-mime_mime_database_update
}
+
+check_compiler() {
+ [[ ${MERGE_TYPE} == binary ]] && return
+
+ local v=$(gcc-version)
+ [[ ${v} ]] && ! version_is_at_least 4.6 "${v}" &&
+ die "${P} requires gcc-4.6 or higher to build. Please install a recent
+version of sys-devel/gcc, and set it as the system compiler using gcc-config"
+}