Update to version 0.3.4
[pkgsrcv2.git] / www / ap-python / patches / patch-ad
1 $NetBSD: patch-ad,v 1.1.1.1 2002/02/05 21:05:58 drochner Exp $
2
3 --- Makefile.in.orig    2000-12-06 03:05:37.000000000 +0000
4 +++ Makefile.in
5 @@ -82,7 +82,7 @@ install_dso:  dso
6         @echo
7         @echo "Performing DSO installation."
8         @echo
9 -       $(INSTALL) src/mod_python.so $(LIBEXECDIR)
10 +       $(INSTALL) src/mod_python.so $(DESTDIR)$(LIBEXECDIR)
11         @$(MAKE) install_py_lib
12         @echo
13         @echo "Now don't forget to edit your main config and add"
14 @@ -114,12 +114,13 @@ install_static:   static
15         @echo
16  
17  install_py_lib:
18 -       $(INSTALL) -d $(PY_STD_LIB)/site-packages/mod_python
19 +       $(INSTALL) -d $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
20         @for f in `ls lib/python/mod_python/*.py`; \
21         do \
22 -               $(INSTALL) $$f $(PY_STD_LIB)/site-packages/mod_python; \
23 +               $(BSD_INSTALL_DATA) $$f $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python; \
24         done
25 -       python $(PY_STD_LIB)/compileall.py $(PY_STD_LIB)/site-packages/mod_python
26 +       @PYTHON_BIN@ $(PY_STD_LIB)/compileall.py $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
27 +       @PYTHON_BIN@ -O $(PY_STD_LIB)/compileall.py $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
28  
29  clean:
30         cd src && $(MAKE) clean