[121635] trunk/dports/devel/cmake

sean at macports.org sean at macports.org
Wed Jul 2 16:09:59 PDT 2014


Revision: 121635
          https://trac.macports.org/changeset/121635
Author:   sean at macports.org
Date:     2014-07-02 16:09:59 -0700 (Wed, 02 Jul 2014)
Log Message:
-----------
cmake: add patch for swig bug; fixes #44217

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

Added Paths:
-----------
    trunk/dports/devel/cmake/files/patch-UseSWIG.cmake.diff

Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- trunk/dports/devel/cmake/Portfile	2014-07-02 23:00:52 UTC (rev 121634)
+++ trunk/dports/devel/cmake/Portfile	2014-07-02 23:09:59 UTC (rev 121635)
@@ -6,7 +6,7 @@
 
 name                cmake
 version             3.0.0
-revision            1
+revision            2
 set branch          [join [lrange [split ${version} .] 0 1] .]
 categories          devel
 license             BSD
@@ -37,6 +37,9 @@
                     patch-Modules-FindQt4.cmake.diff \
                     patch-Modules-noArchCheck.diff
 
+# fix for swig issues in 3.0.0; remove after 3.0.1 is released
+patchfiles-append   patch-UseSWIG.cmake.diff
+
 configure.env-append \
                     CMAKE_PREFIX_PATH=${prefix} \
                     CMAKE_INCLUDE_PATH=${prefix}/include/ncurses \

Added: trunk/dports/devel/cmake/files/patch-UseSWIG.cmake.diff
===================================================================
--- trunk/dports/devel/cmake/files/patch-UseSWIG.cmake.diff	                        (rev 0)
+++ trunk/dports/devel/cmake/files/patch-UseSWIG.cmake.diff	2014-07-02 23:09:59 UTC (rev 121635)
@@ -0,0 +1,11 @@
+--- Modules/UseSWIG.cmake
++++ Modules/UseSWIG.cmake
+@@ -57,7 +57,7 @@ macro(SWIG_MODULE_INITIALIZE name language)
+   set(SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG "${swig_lowercase_language}")
+ 
+   set(SWIG_MODULE_${name}_REAL_NAME "${name}")
+-  if (CMAKE_SWIG_FLAGS MATCHES "-noproxy")
++  if (";${CMAKE_SWIG_FLAGS};" MATCHES ";-noproxy;")
+     set (SWIG_MODULE_${name}_NOPROXY TRUE)
+   endif ()
+   if("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "UNKNOWN")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140702/8e916f09/attachment.html>


More information about the macports-changes mailing list