Annotation of pkgsrc/lang/python/application.mk, revision 1.14

1.14    ! riastrad    1: # $NetBSD: application.mk,v 1.13 2020/03/24 04:40:34 rillig 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: #
                     16: # Keywords: python
                     17: #
1.1       jlam       18: 
1.9       rillig     19: .include "../../lang/python/pyversion.mk"
                     20: 
1.14    ! riastrad   21: # XXX Handle TOOL_PYTHONBIN replacement too.
1.11      wiz        22: .if defined(REPLACE_PYTHON)
1.6       drochner   23: REPLACE_INTERPRETER+=  python
1.12      joerg      24: REPLACE.python.old=    .*python3\{0,1\}[^ ]*
1.7       ghen       25: REPLACE.python.new=    ${PYTHONBIN}
1.11      wiz        26: REPLACE_FILES.python=  ${REPLACE_PYTHON}
1.1       jlam       27: .endif

CVSweb <webmaster@jp.NetBSD.org>