pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-img2pdf: Use REPLACE_PYTHON



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sat Sep 5 17:25:51 2026 +0200
Changeset:	a9a033dcf605a0467522597943467cc022f5a569

Modified Files:
	py-img2pdf/Makefile

Log Message:
py-img2pdf: Use REPLACE_PYTHON

lang/python/application.mk defines REPLACE_PYTHON that we can reuse
instead of redefining it.

NFCI.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a9a033dcf605a0467522597943467cc022f5a569

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-img2pdf/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diffs:
diff --git a/py-img2pdf/Makefile b/py-img2pdf/Makefile
index 1aa897b11f..c14013f6ee 100644
--- a/py-img2pdf/Makefile
+++ b/py-img2pdf/Makefile
@@ -12,10 +12,8 @@ LICENSE=	gnu-lgpl-v3
 
 USE_TOOLS+=	pkg-config
 
-REPLACE_INTERPRETER+=	python
-REPLACE.python.old=	/usr/bin/env
-REPLACE.python.new=	${PYTHONBIN}
-REPLACE_FILES.python=	src/img2pdf.py
+REPLACE_PYTHON+=	src/img2pdf.py
 
+.include "../../lang/python/application.mk"
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index