1 |
commit: 1b1798bf24d7e2ad5cbc4b4b4eca8d394e328bd5 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 8 06:40:45 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 8 06:45:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b1798bf |
7 |
|
8 |
app-text/calibre: require at least gcc 6 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/589720 |
11 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
12 |
|
13 |
app-text/calibre/calibre-2.78.0.ebuild | 8 ++++++++ |
14 |
app-text/calibre/calibre-3.15.0.ebuild | 8 ++++++++ |
15 |
app-text/calibre/calibre-3.3.0.ebuild | 8 ++++++++ |
16 |
app-text/calibre/calibre-3.8.0.ebuild | 8 ++++++++ |
17 |
4 files changed, 32 insertions(+) |
18 |
|
19 |
diff --git a/app-text/calibre/calibre-2.78.0.ebuild b/app-text/calibre/calibre-2.78.0.ebuild |
20 |
index 1e03a38661b..0470a20521e 100644 |
21 |
--- a/app-text/calibre/calibre-2.78.0.ebuild |
22 |
+++ b/app-text/calibre/calibre-2.78.0.ebuild |
23 |
@@ -81,6 +81,14 @@ DEPEND="${COMMON_DEPEND} |
24 |
>=virtual/podofo-build-0.8.2 |
25 |
virtual/pkgconfig" |
26 |
|
27 |
+pkg_pretend() { |
28 |
+ if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then |
29 |
+ eerror "Calibre cannot be built with this version of gcc." |
30 |
+ eerror "You need at least gcc-6.0" |
31 |
+ die "Your C compiler is too old for this package." |
32 |
+ fi |
33 |
+} |
34 |
+ |
35 |
src_prepare() { |
36 |
# no_updates: do not annoy user with "new version is availible all the time |
37 |
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
38 |
|
39 |
diff --git a/app-text/calibre/calibre-3.15.0.ebuild b/app-text/calibre/calibre-3.15.0.ebuild |
40 |
index 87d9fc99591..c209a7863de 100644 |
41 |
--- a/app-text/calibre/calibre-3.15.0.ebuild |
42 |
+++ b/app-text/calibre/calibre-3.15.0.ebuild |
43 |
@@ -94,6 +94,14 @@ DEPEND="${COMMON_DEPEND} |
44 |
>=virtual/podofo-build-0.9.4 |
45 |
virtual/pkgconfig" |
46 |
|
47 |
+pkg_pretend() { |
48 |
+ if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then |
49 |
+ eerror "Calibre cannot be built with this version of gcc." |
50 |
+ eerror "You need at least gcc-6.0" |
51 |
+ die "Your C compiler is too old for this package." |
52 |
+ fi |
53 |
+} |
54 |
+ |
55 |
src_prepare() { |
56 |
# no_updates: do not annoy user with "new version is availible all the time |
57 |
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
58 |
|
59 |
diff --git a/app-text/calibre/calibre-3.3.0.ebuild b/app-text/calibre/calibre-3.3.0.ebuild |
60 |
index 8cf13775969..c0d8da0d40b 100644 |
61 |
--- a/app-text/calibre/calibre-3.3.0.ebuild |
62 |
+++ b/app-text/calibre/calibre-3.3.0.ebuild |
63 |
@@ -91,6 +91,14 @@ DEPEND="${COMMON_DEPEND} |
64 |
>=virtual/podofo-build-0.9.4 |
65 |
virtual/pkgconfig" |
66 |
|
67 |
+pkg_pretend() { |
68 |
+ if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then |
69 |
+ eerror "Calibre cannot be built with this version of gcc." |
70 |
+ eerror "You need at least gcc-6.0" |
71 |
+ die "Your C compiler is too old for this package." |
72 |
+ fi |
73 |
+} |
74 |
+ |
75 |
src_prepare() { |
76 |
# no_updates: do not annoy user with "new version is availible all the time |
77 |
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
78 |
|
79 |
diff --git a/app-text/calibre/calibre-3.8.0.ebuild b/app-text/calibre/calibre-3.8.0.ebuild |
80 |
index f57de91b600..09ba809e224 100644 |
81 |
--- a/app-text/calibre/calibre-3.8.0.ebuild |
82 |
+++ b/app-text/calibre/calibre-3.8.0.ebuild |
83 |
@@ -92,6 +92,14 @@ DEPEND="${COMMON_DEPEND} |
84 |
>=virtual/podofo-build-0.9.4 |
85 |
virtual/pkgconfig" |
86 |
|
87 |
+pkg_pretend() { |
88 |
+ if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then |
89 |
+ eerror "Calibre cannot be built with this version of gcc." |
90 |
+ eerror "You need at least gcc-6.0" |
91 |
+ die "Your C compiler is too old for this package." |
92 |
+ fi |
93 |
+} |
94 |
+ |
95 |
src_prepare() { |
96 |
# no_updates: do not annoy user with "new version is availible all the time |
97 |
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |