[141824] trunk/dports/science/ompl

mmoll at macports.org mmoll at macports.org
Sat Dec 12 03:09:50 PST 2015


Revision: 141824
          https://trac.macports.org/changeset/141824
Author:   mmoll at macports.org
Date:     2015-10-29 08:05:46 -0700 (Thu, 29 Oct 2015)
Log Message:
-----------
ompl: make build more verbose to help diagnose build problems

Modified Paths:
--------------
    trunk/dports/science/ompl/Portfile

Added Paths:
-----------
    trunk/dports/science/ompl/files/
    trunk/dports/science/ompl/files/patch-CMakeModules-PythonBindingUtils-cmake.diff

Modified: trunk/dports/science/ompl/Portfile
===================================================================
--- trunk/dports/science/ompl/Portfile	2015-10-29 15:03:22 UTC (rev 141823)
+++ trunk/dports/science/ompl/Portfile	2015-10-29 15:05:46 UTC (rev 141824)
@@ -67,6 +67,11 @@
     "
 }
 
+patchfiles patch-CMakeModules-PythonBindingUtils-cmake.diff
+if { ![variant_isset app] } {
+    patch.pre_args      -p1
+}
+
 set pythons_suffixes {27 34}
 
 set pythons_ports {}
@@ -85,17 +90,6 @@
     error "Python support not enabled."
 }
 
-post-patch {
-    # make build more verbose to help diagnose build problems
-    if { [variant_isset app] } {
-        reinplace "s|1>\$\{CMAKE_BINARY_DIR\}|\|tee\" \"\$\{CMAKE_BINARY_DIR\}|g" \
-            ${worksrcpath}/ompl/CMakeModules/PythonBindingsUtils.cmake
-    } else {
-        reinplace "s|1>\$\{CMAKE_BINARY_DIR\}|\|tee\" \"\$\{CMAKE_BINARY_DIR\}|g" \
-            ${worksrcpath}/CMakeModules/PythonBindingsUtils.cmake
-    }
-}
-
 foreach s ${pythons_suffixes} {
     set p python${s}
     set v [string index ${s} 0].[string index ${s} 1]

Added: trunk/dports/science/ompl/files/patch-CMakeModules-PythonBindingUtils-cmake.diff
===================================================================
--- trunk/dports/science/ompl/files/patch-CMakeModules-PythonBindingUtils-cmake.diff	                        (rev 0)
+++ trunk/dports/science/ompl/files/patch-CMakeModules-PythonBindingUtils-cmake.diff	2015-10-29 15:05:46 UTC (rev 141824)
@@ -0,0 +1,12 @@
+diff -r 72ff4ee4fea6 CMakeModules/PythonBindingsUtils.cmake
+--- ompl/CMakeModules/PythonBindingsUtils.cmake	Wed Oct 28 20:04:41 2015 -0500
++++ ompl/CMakeModules/PythonBindingsUtils.cmake	Thu Oct 29 09:59:21 2015 -0500
+@@ -80,7 +80,7 @@
+         PYTHONPATH="${PROJECT_BINARY_DIR}/pyplusplus/lib/python${PYTHON_VERSION}/site-packages:$ENV{PYTHONPATH}"
+         ${PYTHON_EXEC}
+         "${CMAKE_CURRENT_SOURCE_DIR}/generate_bindings.py" "${module}"
+-        "1>${CMAKE_BINARY_DIR}/pyplusplus_${module}.log" "2>&1"
++        "|tee" "${CMAKE_BINARY_DIR}/pyplusplus_${module}.log" "2>&1"
+         COMMAND ${CMAKE_COMMAND} -D "PATH=${dir}/bindings/${module}"
+         -P "${OMPL_CMAKE_UTIL_DIR}/workaround_for_gccxml_bug.cmake"
+         COMMAND ${CMAKE_COMMAND} ${CMAKE_BINARY_DIR}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/96653800/attachment.html>


More information about the macports-changes mailing list