[125732] trunk/dports/lang/pure

ryandesign at macports.org ryandesign at macports.org
Thu Sep 25 03:16:34 PDT 2014


Revision: 125732
          https://trac.macports.org/changeset/125732
Author:   ryandesign at macports.org
Date:     2014-09-25 03:16:33 -0700 (Thu, 25 Sep 2014)
Log Message:
-----------
pure: fix build when using clang 3.3 or later on a system using libstdc++

Modified Paths:
--------------
    trunk/dports/lang/pure/Portfile

Added Paths:
-----------
    trunk/dports/lang/pure/files/patch-configure.diff

Modified: trunk/dports/lang/pure/Portfile
===================================================================
--- trunk/dports/lang/pure/Portfile	2014-09-25 08:57:32 UTC (rev 125731)
+++ trunk/dports/lang/pure/Portfile	2014-09-25 10:16:33 UTC (rev 125732)
@@ -51,9 +51,17 @@
     
     depends_run                 port:w3m
     
+    patchfiles-append           patch-configure.diff
+    
     configure.args              --without-elisp \
                                 --with-tool-prefix=${llvm_prefix}/bin
     
+    # Explicitly disable C++11 support because Pure doesn't need it and the
+    # auto-detection in the configure script gets it wrong when using clang
+    # 3.3 or later with libstdc++:
+    # https://bitbucket.org/purelang/pure-lang/issue/28/pure-fails-to-build-on-os-x-107-and-108
+    configure.args-append       --disable-c++11
+    
     # Prevent build failure when old llvm port is installed
     configure.cppflags          -I${llvm_prefix}/include ${configure.cppflags}
     configure.ldflags           -L${llvm_prefix}/lib ${configure.ldflags}

Added: trunk/dports/lang/pure/files/patch-configure.diff
===================================================================
--- trunk/dports/lang/pure/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/lang/pure/files/patch-configure.diff	2014-09-25 10:16:33 UTC (rev 125732)
@@ -0,0 +1,44 @@
+https://bitbucket.org/purelang/pure-lang/issue/28/pure-fails-to-build-on-os-x-107-and-108
+https://bitbucket.org/purelang/pure-lang/commits/c21ec28fd5f8
+--- configure.orig	2014-09-16 17:13:36.000000000 -0500
++++ configure	2014-09-25 05:03:27.000000000 -0500
+@@ -709,6 +709,7 @@
+ ac_subst_files=''
+ ac_user_opts='
+ enable_option_checking
++enable_c__11
+ with_elisp
+ with_texmacs
+ enable_fastcc
+@@ -1358,6 +1359,7 @@
+   --disable-option-checking  ignore unrecognized --enable/--with options
+   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
++  --enable-c++11          C++11 support (default, needed for LLVM 3.5+)
+   --enable-fastcc         enable fast calls/tail call optimization (default)
+   --enable-debug          enable the debug build
+   --enable-debug2         enable the maintenance build
+@@ -4176,6 +4178,15 @@
+ $as_echo "$as_me: WARNING: Cannot find emacs, won't be able to byte-compile pure-mode.el." >&2;}
+ fi
+ 
++cpp11check="yes"
++# Check whether --enable-c++11 was given.
++if test "${enable_c__11+set}" = set; then :
++  enableval=$enable_c__11; case "${enableval}" in
++     no)  cpp11check="no" ;;
++   esac
++fi
++
++if test "$cpp11check" = "yes"; then
+ save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS=""
+ 
+@@ -4322,6 +4333,7 @@
+ if test -n "$CXX11FLAG"; then
+   CXXFLAGS="$CXXFLAGS $CXX11FLAG"
+ fi
++fi
+ 
+ elcfiles="etc/pure-mode.elc"
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140925/33763dc9/attachment.html>


More information about the macports-changes mailing list