diff options
author | cl <cl@pkgsrc.org> | 2004-05-08 18:50:09 +0000 |
---|---|---|
committer | cl <cl@pkgsrc.org> | 2004-05-08 18:50:09 +0000 |
commit | 31a1bdfc13b180b2325c0a19773bd8b94bc2a714 (patch) | |
tree | 364d0a748eeee58b03bda4626edbb87625aff42a /sysutils/xentools12/patches | |
parent | 2df1c922f37361192cecd6b0571e5588df06e995 (diff) | |
download | pkgsrc-31a1bdfc13b180b2325c0a19773bd8b94bc2a714.tar.gz |
use ${PYTHON} instead of python to use python
patch provided by: FUKAUMI Naoki fun at naobsd dot org
Diffstat (limited to 'sysutils/xentools12/patches')
-rw-r--r-- | sysutils/xentools12/patches/patch-an | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/xentools12/patches/patch-an b/sysutils/xentools12/patches/patch-an new file mode 100644 index 00000000000..4a81264787f --- /dev/null +++ b/sysutils/xentools12/patches/patch-an @@ -0,0 +1,26 @@ +$NetBSD: patch-an,v 1.1 2004/05/08 18:50:09 cl Exp $ + +--- xc/py/Makefile.orig 2004-04-18 04:29:16.000000000 +0200 ++++ xc/py/Makefile +@@ -1,17 +1,17 @@ + + all: ../lib/libxc.so.1.2.0 ../lib/xc.h +- python setup.py build ++ ${PYTHON} setup.py build + + install: all +- if [ "$(prefix)" = "" ]; then python setup.py install; \ +- else python setup.py install --root "$(prefix)"; fi ++ if [ "$(prefix)" = "" ]; then ${PYTHON} setup.py install; \ ++ else ${PYTHON} setup.py install --root "$(prefix)"; fi + + dist: all + mkdir -p ../../../../install/lib/python + for i in `find . -name 'Xc.so'` ; do \ + install --mode=755 $$i ../../../../install/lib/python/`basename $$i` ; \ + done +- python -c 'import py_compile, sys; py_compile.compile("XenoUtil.py")' ++ ${PYTHON} -c 'import py_compile, sys; py_compile.compile("XenoUtil.py")' + install --mode=444 XenoUtil.py ../../../../install/lib/python + install --mode=644 XenoUtil.pyc ../../../../install/lib/python + clean: |