3
0
Fork 0
forked from mirrors/nixpkgs

* Added mod_python.

svn path=/nixpkgs/trunk/; revision=4549
This commit is contained in:
Eelco Dolstra 2006-01-15 12:03:00 +00:00
parent 7a8ea3f12b
commit b803253ddd
5 changed files with 49 additions and 1 deletions

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation {
inherit flex bison libxml2 apacheHttpd;
buildInputs = [flex bison libxml2 apacheHttpd];
builder = ./builder.sh ;
builder = ./builder.sh;
patches = [./fix.patch];
}

View file

@ -0,0 +1,7 @@
source $stdenv/setup
installFlags="LIBEXECDIR=$out/modules $installFlags"
ensureDir $out/modules
genericBuild

View file

@ -0,0 +1,17 @@
{stdenv, fetchurl, apacheHttpd, python}:
stdenv.mkDerivation {
name = "mod_python-3.1.4";
builder = ./builder.sh;
src = fetchurl {
url = http://apache.mirror.intouch.nl/httpd/modpython/mod_python-3.1.4.tgz;
md5 = "607175958137b06bcda91110414c82a1";
};
patches = [./install.patch];
inherit apacheHttpd;
buildInputs = [apacheHttpd python];
}

View file

@ -0,0 +1,20 @@
diff -rc mod_python-3.1.4-orig/dist/Makefile.in mod_python-3.1.4/dist/Makefile.in
*** mod_python-3.1.4-orig/dist/Makefile.in 2005-01-29 22:25:28.000000000 +0100
--- mod_python-3.1.4/dist/Makefile.in 2006-01-15 12:07:40.000000000 +0100
***************
*** 34,40 ****
install_py_lib: mod_python src
@cd src; $(MAKE) psp_parser.c
if test -z "$(DESTDIR)" ; then \
! $(PYTHON_BIN) setup.py install --optimize 2 --force ; \
else \
$(PYTHON_BIN) setup.py install --optimize 2 --force --root $(DESTDIR) ; \
fi
--- 34,40 ----
install_py_lib: mod_python src
@cd src; $(MAKE) psp_parser.c
if test -z "$(DESTDIR)" ; then \
! $(PYTHON_BIN) setup.py install --optimize 2 --force --prefix $(out) ; \
else \
$(PYTHON_BIN) setup.py install --optimize 2 --force --root $(DESTDIR) ; \
fi

View file

@ -1447,6 +1447,10 @@ rec {
db4Support = true;
};
mod_python = import ../servers/http/apache-modules/mod_python {
inherit fetchurl stdenv apacheHttpd python;
};
xorg = import ../servers/x11/xorg {
inherit fetchurl stdenv pkgconfig freetype fontconfig
expat libdrm libpng zlib perl mesa;