1 |
commit: 3fba2dfaac848be10a36b94ad7e5844857d6f3ea |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 5 12:18:29 2017 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 5 12:19:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fba2dfa |
7 |
|
8 |
dev-libs/icu: Add gcc version check |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-libs/icu/icu-58.1-r1.ebuild | 16 ++++++++++++++++ |
13 |
dev-libs/icu/icu-58.2.ebuild | 18 +++++++++++++++++- |
14 |
2 files changed, 33 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-libs/icu/icu-58.1-r1.ebuild b/dev-libs/icu/icu-58.1-r1.ebuild |
17 |
index 98327a1..fc0a00e 100644 |
18 |
--- a/dev-libs/icu/icu-58.1-r1.ebuild |
19 |
+++ b/dev-libs/icu/icu-58.1-r1.ebuild |
20 |
@@ -35,6 +35,15 @@ PATCHES=( |
21 |
"${FILESDIR}/${PN}-58.1-iterator.patch" |
22 |
) |
23 |
|
24 |
+pkg_pretend() { |
25 |
+ if tc-is-gcc ; then |
26 |
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ |
27 |
+ || $(gcc-major-version) -lt 4 ]] ; then |
28 |
+ die "You need at least sys-devel/gcc-4.8.3" |
29 |
+ fi |
30 |
+ fi |
31 |
+} |
32 |
+ |
33 |
src_prepare() { |
34 |
# apply patches |
35 |
default |
36 |
@@ -63,6 +72,13 @@ src_configure() { |
37 |
# Use C++14 |
38 |
append-cxxflags -std=c++14 |
39 |
|
40 |
+ if tc-is-gcc ; then |
41 |
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ |
42 |
+ || $(gcc-major-version) -lt 4 ]] ; then |
43 |
+ die "You need at least sys-devel/gcc-4.8.3" |
44 |
+ fi |
45 |
+ fi |
46 |
+ |
47 |
if tc-is-cross-compiler; then |
48 |
mkdir "${WORKDIR}"/host || die |
49 |
pushd "${WORKDIR}"/host >/dev/null || die |
50 |
|
51 |
diff --git a/dev-libs/icu/icu-58.2.ebuild b/dev-libs/icu/icu-58.2.ebuild |
52 |
index 449b5d5..ed2bf03 100644 |
53 |
--- a/dev-libs/icu/icu-58.2.ebuild |
54 |
+++ b/dev-libs/icu/icu-58.2.ebuild |
55 |
@@ -1,4 +1,4 @@ |
56 |
-# Copyright 1999-2016 Gentoo Foundation |
57 |
+# Copyright 1999-2017 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
# $Id$ |
60 |
|
61 |
@@ -35,6 +35,15 @@ PATCHES=( |
62 |
"${FILESDIR}/${PN}-58.1-iterator.patch" |
63 |
) |
64 |
|
65 |
+pkg_pretend() { |
66 |
+ if tc-is-gcc ; then |
67 |
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ |
68 |
+ || $(gcc-major-version) -lt 4 ]] ; then |
69 |
+ die "You need at least sys-devel/gcc-4.8.3" |
70 |
+ fi |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
src_prepare() { |
75 |
# apply patches |
76 |
default |
77 |
@@ -63,6 +72,13 @@ src_configure() { |
78 |
# Use C++14 |
79 |
append-cxxflags -std=c++14 |
80 |
|
81 |
+ if tc-is-gcc ; then |
82 |
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ |
83 |
+ || $(gcc-major-version) -lt 4 ]] ; then |
84 |
+ die "You need at least sys-devel/gcc-4.8.3" |
85 |
+ fi |
86 |
+ fi |
87 |
+ |
88 |
if tc-is-cross-compiler; then |
89 |
mkdir "${WORKDIR}"/host || die |
90 |
pushd "${WORKDIR}"/host >/dev/null || die |