summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2017-02-05 13:18:29 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2017-02-05 13:19:43 +0100
commit3fba2dfaac848be10a36b94ad7e5844857d6f3ea (patch)
tree51b967b9202379d4660551eb4721b5afbe6a6e97 /dev-libs/icu
parentdev-libs/libwapcaplet: Remove old version. (diff)
downloadgentoo-3fba2dfaac848be10a36b94ad7e5844857d6f3ea.tar.gz
gentoo-3fba2dfaac848be10a36b94ad7e5844857d6f3ea.tar.bz2
gentoo-3fba2dfaac848be10a36b94ad7e5844857d6f3ea.zip
dev-libs/icu: Add gcc version check
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-libs/icu')
-rw-r--r--dev-libs/icu/icu-58.1-r1.ebuild16
-rw-r--r--dev-libs/icu/icu-58.2.ebuild18
2 files changed, 33 insertions, 1 deletions
diff --git a/dev-libs/icu/icu-58.1-r1.ebuild b/dev-libs/icu/icu-58.1-r1.ebuild
index 98327a1856e3..fc0a00e43998 100644
--- a/dev-libs/icu/icu-58.1-r1.ebuild
+++ b/dev-libs/icu/icu-58.1-r1.ebuild
@@ -35,6 +35,15 @@ PATCHES=(
"${FILESDIR}/${PN}-58.1-iterator.patch"
)
+pkg_pretend() {
+ if tc-is-gcc ; then
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \
+ || $(gcc-major-version) -lt 4 ]] ; then
+ die "You need at least sys-devel/gcc-4.8.3"
+ fi
+ fi
+}
+
src_prepare() {
# apply patches
default
@@ -63,6 +72,13 @@ src_configure() {
# Use C++14
append-cxxflags -std=c++14
+ if tc-is-gcc ; then
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \
+ || $(gcc-major-version) -lt 4 ]] ; then
+ die "You need at least sys-devel/gcc-4.8.3"
+ fi
+ fi
+
if tc-is-cross-compiler; then
mkdir "${WORKDIR}"/host || die
pushd "${WORKDIR}"/host >/dev/null || die
diff --git a/dev-libs/icu/icu-58.2.ebuild b/dev-libs/icu/icu-58.2.ebuild
index 449b5d5ef374..ed2bf037731e 100644
--- a/dev-libs/icu/icu-58.2.ebuild
+++ b/dev-libs/icu/icu-58.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -35,6 +35,15 @@ PATCHES=(
"${FILESDIR}/${PN}-58.1-iterator.patch"
)
+pkg_pretend() {
+ if tc-is-gcc ; then
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \
+ || $(gcc-major-version) -lt 4 ]] ; then
+ die "You need at least sys-devel/gcc-4.8.3"
+ fi
+ fi
+}
+
src_prepare() {
# apply patches
default
@@ -63,6 +72,13 @@ src_configure() {
# Use C++14
append-cxxflags -std=c++14
+ if tc-is-gcc ; then
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \
+ || $(gcc-major-version) -lt 4 ]] ; then
+ die "You need at least sys-devel/gcc-4.8.3"
+ fi
+ fi
+
if tc-is-cross-compiler; then
mkdir "${WORKDIR}"/host || die
pushd "${WORKDIR}"/host >/dev/null || die