Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jan 2020 23:14:43 +0000 (UTC)
From:      Diane Bruce <db@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r521787 - in head/comms: . nanovna-saver nanovna-saver/files
Message-ID:  <202001012314.001NEhT1071907@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: db
Date: Wed Jan  1 23:14:43 2020
New Revision: 521787
URL: https://svnweb.freebsd.org/changeset/ports/521787

Log:
  NanoVNASaver
  
  A multiplatform tool to save Touchstone files from the NanoVNA, sweep
  frequency spans in segments to gain more than 101 data points, and
  generally display and analyze the resulting data.

Added:
  head/comms/nanovna-saver/
  head/comms/nanovna-saver/Makefile   (contents, props changed)
  head/comms/nanovna-saver/distinfo   (contents, props changed)
  head/comms/nanovna-saver/files/
  head/comms/nanovna-saver/files/patch-NanoVNASaver_NanoVNASaver.py   (contents, props changed)
  head/comms/nanovna-saver/files/patch-setup.py   (contents, props changed)
  head/comms/nanovna-saver/pkg-descr   (contents, props changed)
Modified:
  head/comms/Makefile

Modified: head/comms/Makefile
==============================================================================
--- head/comms/Makefile	Wed Jan  1 23:09:52 2020	(r521786)
+++ head/comms/Makefile	Wed Jan  1 23:14:43 2020	(r521787)
@@ -100,6 +100,7 @@
     SUBDIR += mlan3
     SUBDIR += morse
     SUBDIR += multimon-ng
+    SUBDIR += nanovna-saver
     SUBDIR += nasawash
     SUBDIR += ncid
     SUBDIR += nec2c

Added: head/comms/nanovna-saver/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/nanovna-saver/Makefile	Wed Jan  1 23:14:43 2020	(r521787)
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME=	nanovna-saver
+PORTVERSION=	0.2.1
+CATEGORIES=	comms hamradio
+
+MAINTAINER=	hamradio@FreeBSD.org
+COMMENT=	Multiplatform tool to save Touchstone files from the NanoVNA
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=0.13.2:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}serial>0:comms/py-serial@${PY_FLAVOR}
+RUN_DEPENDS=	${BUILD_DEPENDS}
+
+USES=		python:3.3+ pyqt:5 qt:5
+USE_PYTHON=	distutils autoplist
+USE_PYQT=	core_run gui_run widgets_run
+QT5_USE=	core gui widgets
+
+NO_ARCH=	yes
+USE_GITHUB=	yes
+GH_ACCOUNT=	mihtjel
+GH_TAGNAME=	47e95d1
+
+.include <bsd.port.mk>

Added: head/comms/nanovna-saver/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/nanovna-saver/distinfo	Wed Jan  1 23:14:43 2020	(r521787)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1577802970
+SHA256 (mihtjel-nanovna-saver-0.2.1-47e95d1_GH0.tar.gz) = bf2a9ebd1d78e940b49ecf3590291fb948ecaaffa173b51c799a420db39383b9
+SIZE (mihtjel-nanovna-saver-0.2.1-47e95d1_GH0.tar.gz) = 172939

Added: head/comms/nanovna-saver/files/patch-NanoVNASaver_NanoVNASaver.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/nanovna-saver/files/patch-NanoVNASaver_NanoVNASaver.py	Wed Jan  1 23:14:43 2020	(r521787)
@@ -0,0 +1,15 @@
+--- NanoVNASaver/NanoVNASaver.py.orig	2019-12-04 11:05:36 UTC
++++ NanoVNASaver/NanoVNASaver.py
+@@ -540,11 +540,7 @@ class NanoVNASaver(QtWidgets.QWidget):
+         return_ports = []
+         device_list = list_ports.comports()
+         for d in device_list:
+-            if (d.vid == VID and
+-                    d.pid == PID):
+-                port = d.device
+-                logger.info("Found NanoVNA (%04x %04x) on port %s", d.vid, d.pid, d.device)
+-                return_ports.append(port)
++            return_ports.append(d.device)
+         return return_ports
+ 
+     def exportFileS1P(self):

Added: head/comms/nanovna-saver/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/nanovna-saver/files/patch-setup.py	Wed Jan  1 23:14:43 2020	(r521787)
@@ -0,0 +1,36 @@
+--- setup.py.orig	2019-12-04 11:05:36 UTC
++++ setup.py
+@@ -15,10 +15,11 @@
+ #  along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ 
+ import sys
++import io
+ from NanoVNASaver.about import version
+ 
+-if sys.version_info < (3, 7):
+-    print("You need at least Python 3.7 for this application!")
++if sys.version_info < (3, 3):
++    print("You need at least Python 3.3 for this application!")
+     if sys.version_info[0] < 3:
+         print("try running with python3 {}".format(" ".join(sys.argv)))
+     sys.exit(1)
+@@ -30,7 +31,7 @@ except ImportError:
+     print("Try installing them with pip install setuptools")
+     sys.exit(1)
+ 
+-with open("README.md", "r") as fh:
++with io.open("README.md", "r", encoding="utf-8") as fh:
+     long_description = fh.read()
+ 
+ setup(
+@@ -48,10 +49,4 @@ setup(
+             'NanoVNASaver = NanoVNASaver.__main__:main'
+         ],
+     },
+-    install_requires=[
+-        'pyserial',
+-        'PyQt5',
+-        'numpy',
+-        'scipy'
+-    ],
+ )

Added: head/comms/nanovna-saver/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/nanovna-saver/pkg-descr	Wed Jan  1 23:14:43 2020	(r521787)
@@ -0,0 +1,7 @@
+NanoVNASaver
+
+A multiplatform tool to save Touchstone files from the NanoVNA, sweep
+frequency spans in segments to gain more than 101 data points, and
+generally display and analyze the resulting data.
+
+WWW: https://github.com/mihtjel/nanovna-saver



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001012314.001NEhT1071907>