From owner-svn-ports-all@freebsd.org Tue Jun 19 07:28:45 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ABAE610028BC; Tue, 19 Jun 2018 07:28:45 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C0D47016E; Tue, 19 Jun 2018 07:28:45 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 201A0105EC; Tue, 19 Jun 2018 07:28:45 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5J7Si3V099777; Tue, 19 Jun 2018 07:28:44 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5J7Sh7X099768; Tue, 19 Jun 2018 07:28:43 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201806190728.w5J7Sh7X099768@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 19 Jun 2018 07:28:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r472763 - in head/misc: . py-SoapySDR py-SoapySDR/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/misc: . py-SoapySDR py-SoapySDR/files X-SVN-Commit-Revision: 472763 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2018 07:28:45 -0000 Author: yuri Date: Tue Jun 19 07:28:42 2018 New Revision: 472763 URL: https://svnweb.freebsd.org/changeset/ports/472763 Log: New port: misc/py-SoapySDR: Vendor and platform neutral SDR support library (python binding) Added: head/misc/py-SoapySDR/ head/misc/py-SoapySDR/Makefile (contents, props changed) head/misc/py-SoapySDR/distinfo (contents, props changed) head/misc/py-SoapySDR/files/ head/misc/py-SoapySDR/files/patch-CMakeLists.txt (contents, props changed) head/misc/py-SoapySDR/files/patch-python3_CMakeLists.txt (contents, props changed) head/misc/py-SoapySDR/files/patch-python3_FindPython3Interp.cmake (contents, props changed) head/misc/py-SoapySDR/files/patch-python3_FindPython3Libs.cmake (contents, props changed) head/misc/py-SoapySDR/files/patch-python_CMakeLists.txt (contents, props changed) head/misc/py-SoapySDR/pkg-descr (contents, props changed) Modified: head/misc/Makefile Modified: head/misc/Makefile ============================================================================== --- head/misc/Makefile Tue Jun 19 06:56:12 2018 (r472762) +++ head/misc/Makefile Tue Jun 19 07:28:42 2018 (r472763) @@ -402,6 +402,7 @@ SUBDIR += pubs SUBDIR += py-PyUserInput SUBDIR += py-SimpleSoapy + SUBDIR += py-SoapySDR SUBDIR += py-YABT SUBDIR += py-cinder SUBDIR += py-colorbrewer Added: head/misc/py-SoapySDR/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/py-SoapySDR/Makefile Tue Jun 19 07:28:42 2018 (r472763) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= SoapySDR +DISTVERSIONPREFIX= soapy-sdr- +DISTVERSION= 0.6.1-71 +DISTVERSIONSUFFIX= -g69c16e9 +CATEGORIES= misc python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Vendor and platform neutral SDR support library (python binding) + +LICENSE= BSL +LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt + +BROKEN_FreeBSD_10= error: redefinition of 'swig::traits' + +BUILD_DEPENDS= swig3.0:devel/swig30 +LIB_DEPENDS= libSoapySDR.so:misc/soapysdr + +USES= cmake:outsource python +USE_GITHUB= yes +GH_ACCOUNT= pothosware +USE_PYTHON= flavors + +CMAKE_ARGS= -DFREEBSD_PYTHON_VERSION:INTEGER=${PYTHON_VER:S/.//} \ + -DFREEBSD_PYTHON_VER2:STRING=${PYTHON_VER} +CMAKE_OFF= ENABLE_DOCS + +PLIST_FILES= ${PYTHON_SITELIBDIR}/SoapySDR.py \ + ${PYTHON_SITELIBDIR}/_SoapySDR.so + +post-install: # Until fixed, just delete libs: https://github.com/pothosware/SoapySDR/issues/169 + @cd ${STAGEDIR}${PREFIX} && ${RM} -r bin include lib/lib* libdata share + +.include Added: head/misc/py-SoapySDR/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/py-SoapySDR/distinfo Tue Jun 19 07:28:42 2018 (r472763) @@ -0,0 +1,3 @@ +TIMESTAMP = 1529384177 +SHA256 (pothosware-SoapySDR-soapy-sdr-0.6.1-71-g69c16e9_GH0.tar.gz) = 308ea401054eb52bcce828012393fe143174f7b25d0e04ce189c00713645e1b5 +SIZE (pothosware-SoapySDR-soapy-sdr-0.6.1-71-g69c16e9_GH0.tar.gz) = 119259 Added: head/misc/py-SoapySDR/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/py-SoapySDR/files/patch-CMakeLists.txt Tue Jun 19 07:28:42 2018 (r472763) @@ -0,0 +1,26 @@ +--- CMakeLists.txt.orig 2018-06-19 06:16:03 UTC ++++ CMakeLists.txt +@@ -121,19 +121,23 @@ add_subdirectory(docs) + ######################################################################## + # Python support (optional) + ######################################################################## ++if (${FREEBSD_PYTHON_VERSION} LESS 30) + message(STATUS "") + message(STATUS "#############################################") + message(STATUS "## Begin configuration for Python support...") + message(STATUS "#############################################") + message(STATUS "Enabling optional Python bindings if possible...") + add_subdirectory(python) ++endif() + ++if (${FREEBSD_PYTHON_VERSION} GREATER_EQUAL 30) + message(STATUS "") + message(STATUS "#############################################") + message(STATUS "## Begin configuration for Python3 support...") + message(STATUS "#############################################") + message(STATUS "Enabling optional Python3 bindings if possible...") + add_subdirectory(python3) ++endif() + + + ######################################################################## Added: head/misc/py-SoapySDR/files/patch-python3_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/py-SoapySDR/files/patch-python3_CMakeLists.txt Tue Jun 19 07:28:42 2018 (r472763) @@ -0,0 +1,11 @@ +--- python3/CMakeLists.txt.orig 2018-05-13 06:02:48 UTC ++++ python3/CMakeLists.txt +@@ -55,7 +55,7 @@ endif() + ######################################################################## + include(FeatureSummary) + include(CMakeDependentOption) +-cmake_dependent_option(ENABLE_PYTHON3 "Enable python bindings" ON "ENABLE_LIBRARY;SWIG_FOUND;PYTHON3INTERP_FOUND;PYTHON3LIBS_FOUND;PYTHON3_DEBUG_OK;BUILD_PYTHON3" OFF) ++option(ENABLE_PYTHON3 "Enable python bindings" ON) + add_feature_info(Python3 ENABLE_PYTHON3 "python3 bindings") + if (NOT ENABLE_PYTHON3) + return() Added: head/misc/py-SoapySDR/files/patch-python3_FindPython3Interp.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/py-SoapySDR/files/patch-python3_FindPython3Interp.cmake Tue Jun 19 07:28:42 2018 (r472763) @@ -0,0 +1,20 @@ +--- python3/FindPython3Interp.cmake.orig 2018-06-19 06:38:27 UTC ++++ python3/FindPython3Interp.cmake +@@ -39,7 +39,7 @@ + # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + FIND_PROGRAM(PYTHON3_EXECUTABLE +- NAMES python3.2mu python3.2m python3.2u python3.2 python3.1 python3.0 python3 ++ NAMES python${FREEBSD_PYTHON_VER2} + PATHS + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.2\\InstallPath] + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.1\\InstallPath] +@@ -47,7 +47,7 @@ FIND_PROGRAM(PYTHON3_EXECUTABLE + ) + + FIND_PROGRAM(PYTHON3_DBG_EXECUTABLE +- NAMES python3.2dmu python3.2dm python3.2du python3.2d python3.1-dbg python3.0-dbg python3-dbg ++ NAMES python${FREEBSD_PYTHON_VER2}-dbg + PATHS + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.2\\InstallPath] + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.1\\InstallPath] Added: head/misc/py-SoapySDR/files/patch-python3_FindPython3Libs.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/py-SoapySDR/files/patch-python3_FindPython3Libs.cmake Tue Jun 19 07:28:42 2018 (r472763) @@ -0,0 +1,11 @@ +--- python3/FindPython3Libs.cmake.orig 2018-06-19 06:36:21 UTC ++++ python3/FindPython3Libs.cmake +@@ -46,7 +46,7 @@ INCLUDE(CMakeFindFrameworks) + # Search for the python framework on Apple. + # CMAKE_FIND_FRAMEWORKS(Python) + +-FOREACH(_CURRENT_VERSION 3.5 3.4 3.3 3.2 3.1 3.0) ++FOREACH(_CURRENT_VERSION ${FREEBSD_PYTHON_VER2}) + IF(_CURRENT_VERSION GREATER 3.1) + SET(_32FLAGS "m" "u" "mu" "dm" "du" "dmu" "") + ELSE() Added: head/misc/py-SoapySDR/files/patch-python_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/py-SoapySDR/files/patch-python_CMakeLists.txt Tue Jun 19 07:28:42 2018 (r472763) @@ -0,0 +1,11 @@ +--- python/CMakeLists.txt.orig 2018-06-19 07:11:01 UTC ++++ python/CMakeLists.txt +@@ -121,7 +121,7 @@ set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_FLAGS} + ######################################################################## + include(FeatureSummary) + include(CMakeDependentOption) +-cmake_dependent_option(ENABLE_PYTHON "Enable python bindings" ON "ENABLE_LIBRARY;SWIG_FOUND;PYTHONINTERP_FOUND;PYTHONLIBS_FOUND;PYTHON_DEBUG_OK;PYTHON_VERSION_MATCH" OFF) ++option(ENABLE_PYTHON "Enable python bindings" ON) + add_feature_info(Python ENABLE_PYTHON "python bindings v${PYTHON_VERSION_STRING}") + if (NOT ENABLE_PYTHON) + return() Added: head/misc/py-SoapySDR/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/py-SoapySDR/pkg-descr Tue Jun 19 07:28:42 2018 (r472763) @@ -0,0 +1,4 @@ +Python binding of SoapySDR, an open-source generalized C/C++ API and runtime +library for interfacing with SDR devices. + +WWW: https://github.com/pothosware/SoapySDR