[142082] trunk/dports/devel/akonadi/Portfile

nicos at macports.org nicos at macports.org
Sat Dec 12 04:15:16 PST 2015


Revision: 142082
          https://trac.macports.org/changeset/142082
Author:   nicos at macports.org
Date:     2015-11-03 02:22:07 -0800 (Tue, 03 Nov 2015)
Log Message:
-----------
akonadi: fully enforcing the requirement of c++11 with the cxx11 PortGroup

Modified Paths:
--------------
    trunk/dports/devel/akonadi/Portfile

Modified: trunk/dports/devel/akonadi/Portfile
===================================================================
--- trunk/dports/devel/akonadi/Portfile	2015-11-03 10:19:27 UTC (rev 142081)
+++ trunk/dports/devel/akonadi/Portfile	2015-11-03 10:22:07 UTC (rev 142082)
@@ -3,6 +3,7 @@
 
 PortSystem          1.0
 PortGroup           kde4    1.1
+PortGroup           cxx11   1.0
 
 #Fetch from git repository to follow updates after the end of KDE4 public releases
 fetch.type          git
@@ -26,39 +27,10 @@
                     port:boost \
                     port:shared-mime-info
 
-# require c++11
-
 post-patch {
     reinplace "s/c++0x/c++11/" ${worksrcpath}/CMakeLists.txt
 }
 
-if {${configure.cxx_stdlib} eq "libstdc++"} {
-
-    # *clang* when using libstdc++ do not seem to support C++11;
-    # C++11 support seems to need GCC 4.7+ when using libstdc++;
-    # could use C++0x support on GCC4.[56], but just ignore it since
-    # there are newer compilers already in place as defaults.
-
-    # Blacklist GCC compilers not supporting C++11 and all CLANG.
-    # This is probably not necessary, but it's good practice.
-
-    compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]}
-
-    # and whitelist GCC compilers that support C++11. wish there were
-    # a better way.  these will be used in the order provided.
-
-    compiler.whitelist macports-gcc-5 macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7
-
-} else {
-
-    # using libc++;
-    # Blacklist Clang not supporting C++11 in some form and all GCC.
-    # Just use the cxx11 PortGroup for this specific case.
-
-    PortGroup cxx11 1.0
-
-}
-
 configure.args-append  -DPOSTGRES_PATH=Off
 # mute akonadiserver which is usually overly chatty:
 configure.cflags-append     -DQT_NO_DEBUG_OUTPUT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/9ce8e1ad/attachment.html>


More information about the macports-changes mailing list