pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/py-nkdfu
Module Name: pkgsrc
Committed By: wiz
Date: Thu May 18 13:04:45 UTC 2023
Modified Files:
pkgsrc/sysutils/py-nkdfu: Makefile
Log Message:
py-nkdfu: some cleanups
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/py-nkdfu/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/py-nkdfu/Makefile
diff -u pkgsrc/sysutils/py-nkdfu/Makefile:1.1 pkgsrc/sysutils/py-nkdfu/Makefile:1.2
--- pkgsrc/sysutils/py-nkdfu/Makefile:1.1 Thu May 18 12:39:49 2023
+++ pkgsrc/sysutils/py-nkdfu/Makefile Thu May 18 13:04:45 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2023/05/18 12:39:49 nikita Exp $
+# $NetBSD: Makefile,v 1.2 2023/05/18 13:04:45 wiz Exp $
DISTNAME= nkdfu-0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -10,7 +10,7 @@ HOMEPAGE= https://pypi.org/project/nkdfu
COMMENT= Python DFU tool for updating Nitrokeys' firmware
LICENSE= gnu-gpl-v2
-BUILD_DEPENDS+= ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core
+TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core
DEPENDS+= ${PYPKGPREFIX}-libusb1-[0-9]*:../../devel/py-libusb1
DEPENDS+= ${PYPKGPREFIX}-intelhex-[0-9]*:../../devel/py-intelhex
DEPENDS+= ${PYPKGPREFIX}-tqdm-[0-9]*:../../misc/py-tqdm
@@ -21,18 +21,11 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_LANGUAGES= # none
-#FIXME
-#REPLACE_PYTHON+= nkdfu/dfu_flash.py
-
-SUBST_CLASSES+= python
-SUBST_STAGE.python= pre-build
-SUBST_MESSAGE.python= Fix python invocation
-SUBST_FILES.python+= nkdfu/dfu_flash.py
-SUBST_SED.python+= -e 's,/usr/bin/env.*,${PYTHONBIN},g'
-
+REPLACE_PYTHON+= nkdfu/dfu_flash.py
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/nkdfu ${DESTDIR}${PREFIX}/bin/nkdfu-${PYVERSSUFFIX} || ${TRUE}
+.include "../../lang/python/application.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index