Annotation of pkgsrc/lang/python/application.mk, revision 1.13
1.13 ! rillig 1: # $NetBSD: application.mk,v 1.12 2017/07/03 18:13:43 joerg 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.11 wiz 21: .if defined(REPLACE_PYTHON)
1.6 drochner 22: REPLACE_INTERPRETER+= python
1.12 joerg 23: REPLACE.python.old= .*python3\{0,1\}[^ ]*
1.7 ghen 24: REPLACE.python.new= ${PYTHONBIN}
1.11 wiz 25: REPLACE_FILES.python= ${REPLACE_PYTHON}
1.1 jlam 26: .endif
CVSweb <webmaster@jp.NetBSD.org>