commit:     1b1798bf24d7e2ad5cbc4b4b4eca8d394e328bd5
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  8 06:40:45 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Jan  8 06:45:13 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b1798bf

app-text/calibre: require at least gcc 6

Closes: https://bugs.gentoo.org/589720
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-text/calibre/calibre-2.78.0.ebuild | 8 ++++++++
 app-text/calibre/calibre-3.15.0.ebuild | 8 ++++++++
 app-text/calibre/calibre-3.3.0.ebuild  | 8 ++++++++
 app-text/calibre/calibre-3.8.0.ebuild  | 8 ++++++++
 4 files changed, 32 insertions(+)

diff --git a/app-text/calibre/calibre-2.78.0.ebuild 
b/app-text/calibre/calibre-2.78.0.ebuild
index 1e03a38661b..0470a20521e 100644
--- a/app-text/calibre/calibre-2.78.0.ebuild
+++ b/app-text/calibre/calibre-2.78.0.ebuild
@@ -81,6 +81,14 @@ DEPEND="${COMMON_DEPEND}
        >=virtual/podofo-build-0.8.2
        virtual/pkgconfig"
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then
+               eerror "Calibre cannot be built with this version of gcc."
+               eerror "You need at least gcc-6.0"
+               die "Your C compiler is too old for this package."
+       fi
+}
+
 src_prepare() {
        # no_updates: do not annoy user with "new version is availible all the 
time
        # disable_plugins: walking sec-hole, wait for upstream to use GHNS 
interface

diff --git a/app-text/calibre/calibre-3.15.0.ebuild 
b/app-text/calibre/calibre-3.15.0.ebuild
index 87d9fc99591..c209a7863de 100644
--- a/app-text/calibre/calibre-3.15.0.ebuild
+++ b/app-text/calibre/calibre-3.15.0.ebuild
@@ -94,6 +94,14 @@ DEPEND="${COMMON_DEPEND}
        >=virtual/podofo-build-0.9.4
        virtual/pkgconfig"
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then
+               eerror "Calibre cannot be built with this version of gcc."
+               eerror "You need at least gcc-6.0"
+               die "Your C compiler is too old for this package."
+       fi
+}
+
 src_prepare() {
        # no_updates: do not annoy user with "new version is availible all the 
time
        # disable_plugins: walking sec-hole, wait for upstream to use GHNS 
interface

diff --git a/app-text/calibre/calibre-3.3.0.ebuild 
b/app-text/calibre/calibre-3.3.0.ebuild
index 8cf13775969..c0d8da0d40b 100644
--- a/app-text/calibre/calibre-3.3.0.ebuild
+++ b/app-text/calibre/calibre-3.3.0.ebuild
@@ -91,6 +91,14 @@ DEPEND="${COMMON_DEPEND}
        >=virtual/podofo-build-0.9.4
        virtual/pkgconfig"
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then
+               eerror "Calibre cannot be built with this version of gcc."
+               eerror "You need at least gcc-6.0"
+               die "Your C compiler is too old for this package."
+       fi
+}
+
 src_prepare() {
        # no_updates: do not annoy user with "new version is availible all the 
time
        # disable_plugins: walking sec-hole, wait for upstream to use GHNS 
interface

diff --git a/app-text/calibre/calibre-3.8.0.ebuild 
b/app-text/calibre/calibre-3.8.0.ebuild
index f57de91b600..09ba809e224 100644
--- a/app-text/calibre/calibre-3.8.0.ebuild
+++ b/app-text/calibre/calibre-3.8.0.ebuild
@@ -92,6 +92,14 @@ DEPEND="${COMMON_DEPEND}
        >=virtual/podofo-build-0.9.4
        virtual/pkgconfig"
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then
+               eerror "Calibre cannot be built with this version of gcc."
+               eerror "You need at least gcc-6.0"
+               die "Your C compiler is too old for this package."
+       fi
+}
+
 src_prepare() {
        # no_updates: do not annoy user with "new version is availible all the 
time
        # disable_plugins: walking sec-hole, wait for upstream to use GHNS 
interface

Reply via email to