git: ec4d84ad8978 - main - textproc/py-qrcode: Fix stage-qa

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 03 Nov 2024 20:18:47 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ec4d84ad8978cc634ad0bdbf38ddc327cab2c2e8

commit ec4d84ad8978cc634ad0bdbf38ddc327cab2c2e8
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-11-03 20:16:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-11-03 20:16:04 +0000

    textproc/py-qrcode: Fix stage-qa
    
    - Bump PORTREVISION for package change
    
    ====> Running Q/A tests (stage-qa)
    Error: '/usr/bin/env python' is an invalid shebang you need USES=shebangfix for 'lib/python3.11/site-packages/qrcode/console_scripts.py'
    *** Error code 1
    
    Stop.
    make: stopped in /usr/ports/textproc/py-qrcode
    
    Approved by:    portmgr (blanket)
    With hat:       python
---
 textproc/py-qrcode/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/textproc/py-qrcode/Makefile b/textproc/py-qrcode/Makefile
index 68a08ba349cd..ada88b489060 100644
--- a/textproc/py-qrcode/Makefile
+++ b/textproc/py-qrcode/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	qrcode
 PORTVERSION=	8.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,13 +12,14 @@ WWW=		https://github.com/lincolnloop/python-qrcode
 LICENSE=	BSD3CLAUSE
 
 BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR}
-
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>=9.1.0:graphics/py-pillow@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}png>=0.0.17:graphics/py-png@${PY_FLAVOR}
 
-USES=		python
+USES=		python shebangfix
 USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
+SHEBANG_FILES=	qrcode/console_scripts.py
+
 .include <bsd.port.mk>