aboutsummaryrefslogtreecommitdiffstats
path: root/cad/py-pyfda/Makefile
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-02-04 04:55:08 +0800
committeryuri <yuri@FreeBSD.org>2018-02-04 04:55:08 +0800
commit31443a9fd8beb1f15aff3cf079e34d9c415f4ca1 (patch)
tree0e034ba568833e23e5278495f67aeed513dfc3f4 /cad/py-pyfda/Makefile
parentf899909e6066ce5092273a1a73b7bfa8a81d529a (diff)
downloadfreebsd-ports-gnome-31443a9fd8beb1f15aff3cf079e34d9c415f4ca1.tar.gz
freebsd-ports-gnome-31443a9fd8beb1f15aff3cf079e34d9c415f4ca1.tar.zst
freebsd-ports-gnome-31443a9fd8beb1f15aff3cf079e34d9c415f4ca1.zip
New port: cad/py-pyfda: GUI tool for designing and analysing discrete time filters
pyFDA allows to design digital filters for signals in digital signal processing. Screenshot: https://raw.githubusercontent.com/chipmuenk/pyFDA/master/images/pyFDA_screenshot_3.PNG The patching is mostly due to the fact that pyFDA doesn't have an installation procedure, and expects users to just run locally. PR: 222442 Submitted by: myself Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D14176
Diffstat (limited to 'cad/py-pyfda/Makefile')
-rw-r--r--cad/py-pyfda/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/cad/py-pyfda/Makefile b/cad/py-pyfda/Makefile
new file mode 100644
index 000000000000..bf7b521d3448
--- /dev/null
+++ b/cad/py-pyfda/Makefile
@@ -0,0 +1,47 @@
+# $FreeBSD$
+
+PORTNAME= pyfda
+PORTVERSION= 0.1
+DISTVERSIONSUFFIX= rc6
+CATEGORIES= cad python devel
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= GUI tool for designing and analysing discrete time filters
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils@${FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${FLAVOR}
+
+USES= python:3.4+ pyqt:5
+USE_PYTHON= distutils autoplist noflavors
+USE_PYQT= core_run gui_run widgets_run
+NO_ARCH= yes
+
+post-extract:
+ @${MV} ${WRKSRC}/pyfda/pyfda_log.conf ${WRKSRC}/pyfda/pyfda_log.conf.sample
+ @${MV} ${WRKSRC}/pyfda/pyfda_log_debug.conf ${WRKSRC}/pyfda/pyfda_log_debug.conf.sample
+
+post-patch:
+ @${REINPLACE_CMD} -e " \
+ s|package_data={'pyfda': \['pyfda_log.conf', 'pyfda_log_debug.conf',|package_data={'pyfda': [|; \
+ s|data_files = \[|data_files = [('${PREFIX}/etc', ['pyfda/pyfda_log.conf.sample', 'pyfda/pyfda_log_debug.conf.sample'])|" \
+ ${WRKSRC}/setup.py
+ @${REINPLACE_CMD} -e " \
+ s|logging.config.fileConfig(os.path.join(base_dir, rc.log_config_file))|logging.config.fileConfig(os.path.join('${PREFIX}/etc', rc.log_config_file))|" \
+ ${WRKSRC}/pyfda/pyfdax.py
+ @${REINPLACE_CMD} -e " \
+ s|'pyfda.log'|'/tmp/pyfda.log'|" \
+ ${WRKSRC}/pyfda/*.conf.sample
+
+post-stage:
+ @${REINPLACE_CMD} -E " \
+ s|(.*\.sample)$$|@sample \1|" \
+ ${WRKDIR}/.PLIST.pymodtmp
+
+.include <bsd.port.mk>