aboutsummaryrefslogtreecommitdiff
path: root/misc/netron/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/netron/Makefile')
-rw-r--r--misc/netron/Makefile39
1 files changed, 14 insertions, 25 deletions
diff --git a/misc/netron/Makefile b/misc/netron/Makefile
index b759fada6198..3d8628f543c5 100644
--- a/misc/netron/Makefile
+++ b/misc/netron/Makefile
@@ -1,43 +1,32 @@
PORTNAME= netron
DISTVERSIONPREFIX= v
-DISTVERSION= 4.1.9
-PORTREVISION= 1
-CATEGORIES= misc python # machine-learning
-MASTER_SITES= LOCAL/yuri/:js
-DISTFILES= netron-${DISTVERSION}-node_modules.tgz:js
+DISTVERSION= 9.0.7
+CATEGORIES= misc python
MAINTAINER= yuri@FreeBSD.org
COMMENT= Visualizer for neural network, deep learning, machine learning models
-WWW= https://github.com/lutzroeder/netron
+WWW= https://netron.app/ \
+ https://github.com/lutzroeder/netron
-LICENSE= APACHE20
+LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR}
+
USES= python
+USE_PYTHON= pep517 autoplist noflavors
+
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'
-#
+ @${MV} ${WRKSRC}/source ${WRKSRC}/netron
-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"
+post-patch:
+ @${REINPLACE_CMD} -e 's/0\.0\.0/${DISTVERSION}/g' ${WRKSRC}/pyproject.toml
.include <bsd.port.mk>