diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-06-19 07:47:51 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-06-19 07:47:51 +0000 |
commit | fb35a6366a046119f7d45a071d66f491fa5a8957 (patch) | |
tree | f3523485c39b3d20839842a04a6a9f1c7e798e02 /misc/py-QSpectrumAnalyzer | |
parent | 12e2bf8eb457fb028818ef192f449aab8f1da870 (diff) | |
download | ports-fb35a6366a046119f7d45a071d66f491fa5a8957.tar.gz ports-fb35a6366a046119f7d45a071d66f491fa5a8957.zip |
Notes
Diffstat (limited to 'misc/py-QSpectrumAnalyzer')
-rw-r--r-- | misc/py-QSpectrumAnalyzer/Makefile | 40 | ||||
-rw-r--r-- | misc/py-QSpectrumAnalyzer/distinfo | 3 | ||||
-rw-r--r-- | misc/py-QSpectrumAnalyzer/files/patch-setup.py | 12 | ||||
-rw-r--r-- | misc/py-QSpectrumAnalyzer/pkg-descr | 4 |
4 files changed, 59 insertions, 0 deletions
diff --git a/misc/py-QSpectrumAnalyzer/Makefile b/misc/py-QSpectrumAnalyzer/Makefile new file mode 100644 index 000000000000..9894cbe62cc0 --- /dev/null +++ b/misc/py-QSpectrumAnalyzer/Makefile @@ -0,0 +1,40 @@ +# $FreeBSD$ + +PORTNAME= QSpectrumAnalyzer +DISTVERSION= 2.1.0 +CATEGORIES= misc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Spectrum analyzer for multiple SDR platforms + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}pyqtgraph>=0.10.0:graphics/py-pyqtgraph@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}soapy_power>=1.5.0:misc/py-soapy_power@${PY_FLAVOR} + +USES= fortran python:3.4+ pyqt:5 +USE_PYQT= core gui widgets +USE_PYTHON= distutils concurrent autoplist + +PLIST_FILES= bin/${PORTNAME:tl}.shadow + +post-patch: # change from Qt.py that doesn't work to PyQt5 + @${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} -i '' -e ' \ + s|from Qt import |from PyQt5 import | ; \ + s|, __binding__|| ; \ + s|QtCore.Signal|QtCore.pyqtSignal| ; \ + s|QtCore.Slot|QtCore.pyqtSlot|' + +post-install: + @${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME:tl} ${STAGEDIR}${PREFIX}/bin/${PORTNAME:tl}.shadow + @(echo "#!/bin/sh"; \ + echo ""; \ + echo "LD_PRELOAD=${PREFIX}/lib/gcc6/libgcc_s.so ${PREFIX}/bin/${PORTNAME:tl}.shadow \"$$@\"" \ + ) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME:tl} + @${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME:tl} + +.include <bsd.port.mk> diff --git a/misc/py-QSpectrumAnalyzer/distinfo b/misc/py-QSpectrumAnalyzer/distinfo new file mode 100644 index 000000000000..5f455735db13 --- /dev/null +++ b/misc/py-QSpectrumAnalyzer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1529285292 +SHA256 (QSpectrumAnalyzer-2.1.0.tar.gz) = c042dc2530ee96052ff54a883c4dd4c59fb553dfd1d3a84a2a639f4fee4714ae +SIZE (QSpectrumAnalyzer-2.1.0.tar.gz) = 49137 diff --git a/misc/py-QSpectrumAnalyzer/files/patch-setup.py b/misc/py-QSpectrumAnalyzer/files/patch-setup.py new file mode 100644 index 000000000000..1cd5f483ca83 --- /dev/null +++ b/misc/py-QSpectrumAnalyzer/files/patch-setup.py @@ -0,0 +1,12 @@ +--- setup.py.orig 2018-06-18 03:27:59 UTC ++++ setup.py +@@ -31,8 +31,7 @@ setup( + }, + install_requires=[ + "soapy_power>=1.5.0", +- "pyqtgraph>=0.10.0", +- "Qt.py" ++ "pyqtgraph>=0.10.0" + ], + classifiers=[ + "Development Status :: 4 - Beta", diff --git a/misc/py-QSpectrumAnalyzer/pkg-descr b/misc/py-QSpectrumAnalyzer/pkg-descr new file mode 100644 index 000000000000..1a3f930f3ee2 --- /dev/null +++ b/misc/py-QSpectrumAnalyzer/pkg-descr @@ -0,0 +1,4 @@ +Spectrum analyzer for multiple SDR platforms (PyQtGraph based GUI for +soapy_power, hackrf_sweep, rtl_power, rx_power and other backends). + +WWW: https://github.com/xmikos/qspectrumanalyzer |