commit:     4fd3a7a20573fefa208ebfe0599620c42eef51d8
Author:     Zetok Zalbavar <zetok <AT> openmailbox <DOT> org>
AuthorDate: Sun Jul 10 00:56:52 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Jul 13 18:22:14 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fd3a7a2

net-im/qtox: properly detect whether GCC is used for compiling

Package-Manager: portage-2.2.28

 net-im/qtox/qtox-1.3.0.ebuild | 2 +-
 net-im/qtox/qtox-1.4.0.ebuild | 2 +-
 net-im/qtox/qtox-9999.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-im/qtox/qtox-1.3.0.ebuild b/net-im/qtox/qtox-1.3.0.ebuild
index 5c25a9f..8c6a714 100644
--- a/net-im/qtox/qtox-1.3.0.ebuild
+++ b/net-im/qtox/qtox-1.3.0.ebuild
@@ -47,7 +47,7 @@ DEPEND="${RDEPEND}
 
 pkg_pretend() {
        if [[ ${MERGE_TYPE} != binary ]]; then
-               if [[ $(tc-getCXX) == *g++ ]] ; then
+               if tc-is-gcc ; then
                        if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) 
-lt 8 || $(gcc-major-version) -lt 4 ]] ; then
                                eerror "You need at least sys-devel/gcc-4.8.3"
                                die "You need at least sys-devel/gcc-4.8.3"

diff --git a/net-im/qtox/qtox-1.4.0.ebuild b/net-im/qtox/qtox-1.4.0.ebuild
index ec6d329..eabc0c9 100644
--- a/net-im/qtox/qtox-1.4.0.ebuild
+++ b/net-im/qtox/qtox-1.4.0.ebuild
@@ -48,7 +48,7 @@ DEPEND="${RDEPEND}
 
 pkg_pretend() {
        if [[ ${MERGE_TYPE} != binary ]]; then
-               if [[ $(tc-getCXX) == *g++ ]] ; then
+               if tc-is-gcc ; then
                        if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) 
-lt 8 || $(gcc-major-version) -lt 4 ]] ; then
                                eerror "You need at least sys-devel/gcc-4.8.3"
                                die "You need at least sys-devel/gcc-4.8.3"

diff --git a/net-im/qtox/qtox-9999.ebuild b/net-im/qtox/qtox-9999.ebuild
index 0c69c91..281c524 100644
--- a/net-im/qtox/qtox-9999.ebuild
+++ b/net-im/qtox/qtox-9999.ebuild
@@ -47,7 +47,7 @@ DEPEND="${RDEPEND}
 
 pkg_pretend() {
        if [[ ${MERGE_TYPE} != binary ]]; then
-               if [[ $(tc-getCXX) == *g++ ]] ; then
+               if tc-is-gcc ; then
                        if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) 
-lt 8 || $(gcc-major-version) -lt 4 ]] ; then
                                eerror "You need at least sys-devel/gcc-4.8.3"
                                die "You need at least sys-devel/gcc-4.8.3"

Reply via email to