Annotation of pkgsrc/lang/python/application.mk, revision 1.12
1.12 ! joerg 1: # $NetBSD: application.mk,v 1.11 2014/01/25 10:45:50 wiz 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: #
15: # Keywords: python
16: #
1.1 jlam 17:
1.9 rillig 18: .include "../../lang/python/pyversion.mk"
19:
1.11 wiz 20: .if defined(REPLACE_PYTHON)
1.6 drochner 21: REPLACE_INTERPRETER+= python
1.12 ! joerg 22: REPLACE.python.old= .*python3\{0,1\}[^ ]*
1.7 ghen 23: REPLACE.python.new= ${PYTHONBIN}
1.11 wiz 24: REPLACE_FILES.python= ${REPLACE_PYTHON}
1.1 jlam 25: .endif
CVSweb <webmaster@jp.NetBSD.org>