Subject: xentools12 patch
To: None <port-xen@netbsd.org>
From: FUKAUMI Naoki <fun@naobsd.org>
List: port-xen
Date: 05/09/2004 03:37:02
------=_20040509033702_23414
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit

Hi,

I couldn't build xentools12 package. Patch attached.
# python is python2.3 on my machine.

# Please add xentools12 to pkgsrc.
## Please add port-xen category to /usr/share/gnats/netbsd
##   for send-pr(1) :)

Regards,

--
FUKAUMI Naoki
------=_20040509033702_23414
Content-Type: text/plain; name="xentools12-patch.txt"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="xentools12-patch.txt"

$NetBSD$

--- xc/py/Makefile.orig	2004-04-18 11:29:16.000000000 +0900
+++ xc/py/Makefile	2004-05-09 01:08:33.000000000 +0900
@@ -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:
------=_20040509033702_23414--