2018-02-03 21:55:08 +01:00
|
|
|
PORTNAME= pyfda
|
|
|
|
PORTVERSION= 0.1
|
2022-02-02 21:42:46 +01:00
|
|
|
PORTREVISION= 10
|
2018-02-03 21:55:08 +01:00
|
|
|
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
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/chipmuenk/pyFDA
|
2018-02-03 21:55:08 +01:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2018-06-20 19:05:41 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
|
2018-02-03 21:55:08 +01:00
|
|
|
${PYNUMPY} \
|
2018-06-20 19:05:41 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
|
2018-02-03 21:55:08 +01:00
|
|
|
|
2021-05-10 22:06:35 +02:00
|
|
|
USES= python:3.7+ pyqt:5
|
2018-02-03 22:43:16 +01:00
|
|
|
USE_PYTHON= distutils autoplist
|
2022-09-11 12:20:14 +02:00
|
|
|
USE_PYQT= pyqt5:run
|
2018-02-03 21:55:08 +01:00
|
|
|
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>
|