app-text/calibre: require at least gcc 6
authorZac Medico <zmedico@gentoo.org>
Mon, 8 Jan 2018 06:40:45 +0000 (22:40 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 8 Jan 2018 06:45:13 +0000 (22:45 -0800)
Closes: https://bugs.gentoo.org/589720
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-text/calibre/calibre-2.78.0.ebuild
app-text/calibre/calibre-3.15.0.ebuild
app-text/calibre/calibre-3.3.0.ebuild
app-text/calibre/calibre-3.8.0.ebuild

index 1e03a38661bfa0a11df32be92b4154470c8aa725..0470a20521e0edec60563e033123e0f58aedf879 100644 (file)
@@ -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
index 87d9fc99591517ad786f1cb43199c38c18832079..c209a7863de23f4c7baf95c5a930a552afcb03f6 100644 (file)
@@ -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
index 8cf1377596980aa1a283d44d72e0231845617cd1..c0d8da0d40b30fab0b2d5e506526a7a4c372bc7b 100644 (file)
@@ -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
index f57de91b60039bae89eee418d8c1d8780d12f21a..09ba809e224b8da931504a692a3e52b57240bfbb 100644 (file)
@@ -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