Received: by mail.netbsd.org (Postfix, from userid 605) id B318884DA0; Sun, 24 Nov 2019 11:41:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3AF5B84D9C for ; Sun, 24 Nov 2019 11:41:16 +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 amPACAVSHT0b for ; Sun, 24 Nov 2019 11:41:15 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 929EC84D93 for ; Sun, 24 Nov 2019 11:41:15 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8CCAEFA97; Sun, 24 Nov 2019 11:41:15 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_15745956755510" MIME-Version: 1.0 Date: Sun, 24 Nov 2019 11:41:15 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/lang/python To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20191124114115.8CCAEFA97@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_15745956755510 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Sun Nov 24 11:41:15 UTC 2019 Modified Files: pkgsrc/lang/python: tool.mk Log Message: python/tool.mk: Create linux-style python[2/3] wrappers automatically To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/python/tool.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_15745956755510 Content-Disposition: inline Content-Length: 1084 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/python/tool.mk diff -u pkgsrc/lang/python/tool.mk:1.1 pkgsrc/lang/python/tool.mk:1.2 --- pkgsrc/lang/python/tool.mk:1.1 Fri Oct 14 08:55:54 2011 +++ pkgsrc/lang/python/tool.mk Sun Nov 24 11:41:15 2019 @@ -1,9 +1,9 @@ -# $NetBSD: tool.mk,v 1.1 2011/10/14 08:55:54 obache Exp $ +# $NetBSD: tool.mk,v 1.2 2019/11/24 11:41:15 nia Exp $ # # Create `python' interpreter wrapper for applicable Python bin. # # This mk fragment can be included in all packages that uses `python' -# as a tool without version suffix. +# as a tool without a pkgsrc-style version suffix. # # Keywords: python # @@ -19,11 +19,12 @@ BUILDLINK_TARGETS+= buildlink-bin-python .PHONY: buildlink-bin-python buildlink-bin-python: +.for bin in python python${PYVERSSUFFIX:R} ${RUN} \ - f="${PYTHONBIN}"; \ - t="${BUILDLINK_DIR}/bin/python"; \ - if ${TEST} -f $$f -a ! -f $$t ; then \ - ${LN} -sf $$f $$t; \ + t=${BUILDLINK_DIR}/bin/${bin}; \ + if ${TEST} -f "${PYTHONBIN}" -a ! -f $$t; then \ + ${LN} -sf "${PYTHONBIN}" $$t; \ fi +.endfor .endif # PYTHON_TOOL_MK --_----------=_15745956755510--