2018-06-19 09:47:51 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= QSpectrumAnalyzer
|
|
|
|
DISTVERSION= 2.1.0
|
Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.
This includes ports
- featuring USE_GCC=yes or USE_GCC=any,
- featuring USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and those
- with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.
PR: 222542
2018-07-30 00:18:44 +02:00
|
|
|
PORTREVISION= 1
|
2018-07-01 18:28:14 +02:00
|
|
|
CATEGORIES= misc hamradio python
|
2018-06-19 09:47:51 +02:00
|
|
|
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>
|