aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAric Belsito <lluixhi@gmail.com>2017-05-26 10:32:50 -0700
committerAric Belsito <lluixhi@gmail.com>2017-05-26 10:32:50 -0700
commitc0682ce0cce6f5dd55da71c9b445dd137147aa0a (patch)
tree517bd778bc402770c172ceea108863c1fb845d07 /dev-libs/icu/icu-58.2.ebuild
parentmedia-sound/ncmpcpp: remove id field (diff)
downloadmusl-c0682ce0cce6f5dd55da71c9b445dd137147aa0a.tar.gz
musl-c0682ce0cce6f5dd55da71c9b445dd137147aa0a.tar.bz2
musl-c0682ce0cce6f5dd55da71c9b445dd137147aa0a.zip
dev-libs/icu: version bump to 58.2-r1
Diffstat (limited to 'dev-libs/icu/icu-58.2.ebuild')
-rw-r--r--dev-libs/icu/icu-58.2.ebuild19
1 files changed, 17 insertions, 2 deletions
diff --git a/dev-libs/icu/icu-58.2.ebuild b/dev-libs/icu/icu-58.2.ebuild
index 86c8276a..4eaa1138 100644
--- a/dev-libs/icu/icu-58.2.ebuild
+++ b/dev-libs/icu/icu-58.2.ebuild
@@ -1,6 +1,5 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id$
EAPI=6
@@ -36,6 +35,15 @@ PATCHES=(
"${FILESDIR}/${PN}-58.2-no-xlocale.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.9"
+ fi
+ fi
+}
+
src_prepare() {
# apply patches
default
@@ -64,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.9"
+ fi
+ fi
+
if tc-is-cross-compiler; then
mkdir "${WORKDIR}"/host || die
pushd "${WORKDIR}"/host >/dev/null || die