Annotation of pkgsrc/lang/python/application.mk, revision 1.15
1.15 ! riastrad 1: # $NetBSD: application.mk,v 1.14 2023/06/27 10:31:21 riastradh Exp $
1.9 rillig 2: #
3: # Replace the #! interpreter for Python scripts.
4: #
1.10 gdt 5: # This mk fragment should be included in all python packages that
6: # install python scripts, or at least those that don't use setuptools
7: # or some other mechanism to set the real path. Specifically, it is
8: # reasonable to include both egg.mk and application.mk.
9: #
1.9 rillig 10: # Package-settable variables:
11: #
12: # REPLACE_PYTHON
1.13 rillig 13: # A list of filename patterns for Python scripts to be installed,
14: # relative to ${WRKSRC}.
1.8 rillig 15: #
1.15 ! riastrad 16: # REPLACE_TOOL_PYTHON
! 17: # A list of filename patterns for Python scripts to be run at
! 18: # build time, relative to ${WRKSRC}.
! 19: #
1.8 rillig 20: # Keywords: python
21: #
1.1 jlam 22:
1.9 rillig 23: .include "../../lang/python/pyversion.mk"
24:
1.11 wiz 25: .if defined(REPLACE_PYTHON)
1.6 drochner 26: REPLACE_INTERPRETER+= python
1.12 joerg 27: REPLACE.python.old= .*python3\{0,1\}[^ ]*
1.7 ghen 28: REPLACE.python.new= ${PYTHONBIN}
1.11 wiz 29: REPLACE_FILES.python= ${REPLACE_PYTHON}
1.1 jlam 30: .endif
1.15 ! riastrad 31:
! 32: .if defined(REPLACE_TOOL_PYTHON)
! 33: REPLACE_INTERPRETER+= tool-python
! 34: REPLACE.tool-python.old= .*python3\{0,1\}[^ ]*
! 35: REPLACE.tool-python.new= ${TOOL_PYTHONBIN}
! 36: REPLACE_FILES.tool-python= ${REPLACE_TOOL_PYTHON}
! 37: .endif
CVSweb <webmaster@jp.NetBSD.org>