ports/misc/netron/Makefile
Po-Chuan Hsieh 09455e7e5c
misc/netron: Use PYTHON_SUFFIX and remove unnecessary PLIST_SUB
Approved by:	portmgr (blanket)
With hat:	python
2023-06-30 15:08:41 +08:00

43 lines
1.2 KiB
Makefile

PORTNAME= netron
DISTVERSIONPREFIX= v
DISTVERSION= 4.1.9
CATEGORIES= misc python # machine-learning
MASTER_SITES= LOCAL/yuri/:js
DISTFILES= netron-${DISTVERSION}-node_modules.tgz:js
MAINTAINER= yuri@FreeBSD.org
COMMENT= Visualizer for neural network, deep learning, machine learning models
WWW= https://github.com/lutzroeder/netron
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
USE_GITHUB= yes
GH_ACCOUNT= lutzroeder
USE_PYTHON= distutils noflavors
NO_ARCH= yes
post-extract:
@${RLN} ${WRKDIR}/node_modules ${WRKSRC}/node_modules
#
# To update the netron-${DISTVERSION}-node_modules.tgz archive:
# 1. Comment out the DISTFILES and post-extract lines
# 2. Run 'make makesum regenerate-node_modules-distfile clean'
# 3. Upload the archive
# 4. Uncomment the lines from step #1
# 5. Run 'make makesum'
#
regenerate-node_modules-distfile: patch # requires npm installed by www/npm
@${MAKE} clean patch && \
cd ${WRKSRC} && \
${RM} -r node_modules && \
npm install -l && \
${TAR} czf ${DISTDIR}/netron-${DISTVERSION}-node_modules.tgz node_modules && \
${ECHO} "Please upload the file ${DISTDIR}/netron-${DISTVERSION}-node_modules.tgz"
.include <bsd.port.mk>