Received: by mail.netbsd.org (Postfix, from userid 605) id 0694484ECD; Sat, 27 Jan 2024 02:08:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 300B484E8D for ; Sat, 27 Jan 2024 02:08:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id OoSKpMb4klVi for ; Sat, 27 Jan 2024 02:08:28 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 77E7484CE8 for ; Sat, 27 Jan 2024 02:08:28 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 6F856FA42; Sat, 27 Jan 2024 02:08:28 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1706321308113810" MIME-Version: 1.0 Date: Sat, 27 Jan 2024 02:08:28 +0000 From: "Taylor R Campbell" Subject: CVS commit: pkgsrc/lang/python To: pkgsrc-changes@NetBSD.org Reply-To: riastradh@netbsd.org X-Mailer: log_accum Message-Id: <20240127020828.6F856FA42@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1706321308113810 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: riastradh Date: Sat Jan 27 02:08:28 UTC 2024 Modified Files: pkgsrc/lang/python: application.mk Log Message: lang/python: New REPLACE_TOOL_PYTHON. Like REPLACE_PYTHON but for scripts that run at build-time, rather than scripts that get installed in the package. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/python/application.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1706321308113810 Content-Disposition: inline Content-Length: 1255 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/python/application.mk diff -u pkgsrc/lang/python/application.mk:1.14 pkgsrc/lang/python/application.mk:1.15 --- pkgsrc/lang/python/application.mk:1.14 Tue Jun 27 10:31:21 2023 +++ pkgsrc/lang/python/application.mk Sat Jan 27 02:08:28 2024 @@ -1,4 +1,4 @@ -# $NetBSD: application.mk,v 1.14 2023/06/27 10:31:21 riastradh Exp $ +# $NetBSD: application.mk,v 1.15 2024/01/27 02:08:28 riastradh Exp $ # # Replace the #! interpreter for Python scripts. # @@ -13,15 +13,25 @@ # A list of filename patterns for Python scripts to be installed, # relative to ${WRKSRC}. # +# REPLACE_TOOL_PYTHON +# A list of filename patterns for Python scripts to be run at +# build time, relative to ${WRKSRC}. +# # Keywords: python # .include "../../lang/python/pyversion.mk" -# XXX Handle TOOL_PYTHONBIN replacement too. .if defined(REPLACE_PYTHON) REPLACE_INTERPRETER+= python REPLACE.python.old= .*python3\{0,1\}[^ ]* REPLACE.python.new= ${PYTHONBIN} REPLACE_FILES.python= ${REPLACE_PYTHON} .endif + +.if defined(REPLACE_TOOL_PYTHON) +REPLACE_INTERPRETER+= tool-python +REPLACE.tool-python.old= .*python3\{0,1\}[^ ]* +REPLACE.tool-python.new= ${TOOL_PYTHONBIN} +REPLACE_FILES.tool-python= ${REPLACE_TOOL_PYTHON} +.endif --_----------=_1706321308113810--