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

1.10    ! gdt         1: # $NetBSD: application.mk,v 1.9 2007/02/20 11:30:43 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
                     13: #      A list of Python scripts to be installed, relative to ${WRKSRC}.
1.8       rillig     14: #
1.9       rillig     15: # PYTHON_PATCH_SCRIPTS
                     16: #      The same as REPLACE_PYTHON.
1.8       rillig     17: #
                     18: # Keywords: python
                     19: #
1.1       jlam       20: 
1.9       rillig     21: .include "../../lang/python/pyversion.mk"
                     22: 
                     23: .if defined(PYTHON_PATCH_SCRIPTS) || defined(REPLACE_PYTHON)
1.6       drochner   24: REPLACE_INTERPRETER+=  python
1.7       ghen       25: REPLACE.python.old=    .*python[^ ]*
                     26: REPLACE.python.new=    ${PYTHONBIN}
1.9       rillig     27: REPLACE_FILES.python=  ${PYTHON_PATCH_SCRIPTS} ${REPLACE_PYTHON}
1.1       jlam       28: .endif

CVSweb <webmaster@jp.NetBSD.org>