[139825] trunk/dports/science

michaelld at macports.org michaelld at macports.org
Fri Aug 28 12:41:55 PDT 2015


Revision: 139825
          https://trac.macports.org/changeset/139825
Author:   michaelld at macports.org
Date:     2015-08-28 12:41:55 -0700 (Fri, 28 Aug 2015)
Log Message:
-----------
gr-pyqt: new port.

Added Paths:
-----------
    trunk/dports/science/gr-pyqt/
    trunk/dports/science/gr-pyqt/Portfile
    trunk/dports/science/gr-pyqt/files/
    trunk/dports/science/gr-pyqt/files/patches.diff

Added: trunk/dports/science/gr-pyqt/Portfile
===================================================================
--- trunk/dports/science/gr-pyqt/Portfile	                        (rev 0)
+++ trunk/dports/science/gr-pyqt/Portfile	2015-08-28 19:41:55 UTC (rev 139825)
@@ -0,0 +1,67 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+PortGroup           github 1.0
+
+github.setup        osh gr-pyqt fea8f7652eebe95f708c43ea58cbf0bf1caec4bd
+version             20150810
+checksums           rmd160 61bfe05e9c6c4c8e19bdaa92fea7343bdc884300 \
+                    sha256 f1672b3c7c7897aabfd19f1367484a7add7bbe41d26fabd651a93bf738a8dd23
+
+# allow gr-pyqt to work with both gnuradio and gnuradio-devel ...
+
+depends_lib-append  path:lib/libgnuradio-runtime.dylib:gnuradio
+
+# ... but not with gnuradio-legacy or gnuradio-next
+
+pre-fetch {
+    if {![catch {set installed [lindex [registry_active gnuradio-legacy] 0]}]} {
+        # gnuradio-legacy is installed; this version of gr-pyqt does not work with gnuradio-legacy
+        ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-legacy port.  deactivate gnuradio-legacy, and then install or activate gnuradio or gnuradio-devel.\n"
+        return -code error "Invalid port dependency: gnuradio-legacy"
+    }
+    if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} {
+        # gnuradio-next is installed; this version of gr-pyqt does not work with gnuradio-next
+        ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-next port.  deactivate gnuradio-next, and then install or activate gnuradio or gnuradio-devel.\n"
+            return -code error "Invalid port dependency: gnuradio-next"
+    }
+}
+
+categories          science comms
+maintainers         michaelld openmaintainer
+description         Provides augmented functionality for GNU Radio: pyqt based plotters intended for plotting bursted events.
+long_description    ${description}
+license             GPL-3
+platforms           darwin
+
+depends_build-append port:pkgconfig
+depends_lib-append	port:boost
+
+# do VPATH (out of source tree) build
+
+cmake.out_of_source yes
+
+# temporary patch to fix CMake stuff on OSX
+
+patchfiles-append   patches.diff
+
+# remove top-level library path, such that internal libraries are used
+# instead of any already-installed ones.
+
+configure.ldflags-delete -L${prefix}/lib
+
+# specify the Python dependencies
+
+depends_lib-append \
+    port:python27
+
+# specify the Python version to use
+
+configure.args-append \
+    -DPYTHON_EXECUTABLE=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 \
+    -DPYTHON_INCLUDE_DIR=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers \
+    -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Python \
+    -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages \
+    -DCMAKE_MODULES_DIR=${prefix}/share/cmake


Property changes on: trunk/dports/science/gr-pyqt/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/gr-pyqt/files/patches.diff
===================================================================
--- trunk/dports/science/gr-pyqt/files/patches.diff	                        (rev 0)
+++ trunk/dports/science/gr-pyqt/files/patches.diff	2015-08-28 19:41:55 UTC (rev 139825)
@@ -0,0 +1,30 @@
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -145,6 +145,10 @@ add_subdirectory(docs)
+ ########################################################################
+ # Install cmake search helper for this library
+ ########################################################################
++if(NOT CMAKE_MODULES_DIR)
++  set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
++endif(NOT CMAKE_MODULES_DIR)
++
+ install(FILES cmake/Modules/pyqtConfig.cmake        
+-    DESTINATION lib/cmake/pyqt
++    DESTINATION ${CMAKE_MODULES_DIR}/gnuradio/pyqt
+ )
+--- cmake/Modules/GrPython.cmake.orig
++++ cmake/Modules/GrPython.cmake
+@@ -95,11 +95,13 @@ endmacro(GR_PYTHON_CHECK_MODULE)
+ ########################################################################
+ # Sets the python installation directory GR_PYTHON_DIR
+ ########################################################################
++if(NOT DEFINED GR_PYTHON_DIR)
+ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "
+ from distutils import sysconfig
+ print sysconfig.get_python_lib(plat_specific=True, prefix='')
+ " OUTPUT_VARIABLE GR_PYTHON_DIR OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
++endif()
+ file(TO_CMAKE_PATH ${GR_PYTHON_DIR} GR_PYTHON_DIR)
+ 
+ ########################################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150828/fe6f1834/attachment.html>


More information about the macports-changes mailing list