diff options
author | Sander van der Burg <s.vanderburg@tudelft.nl> | 2009-03-09 13:29:37 +0000 |
---|---|---|
committer | Sander van der Burg <s.vanderburg@tudelft.nl> | 2009-03-09 13:29:37 +0000 |
commit | 2c11f47c8cb620fc5b38ddd1dfa748e24cf2921a (patch) | |
tree | a82e68fbfc7ab2c1768b76a8aea9341350da10ec /pkgs/development/python-modules | |
parent | f8c360148e582baa6d30413c8f0d3434330f9377 (diff) |
Added CUPS administration tools in kdeadmin
svn path=/nixpkgs/trunk/; revision=14457
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/rhpl/builder.sh | 12 | ||||
-rw-r--r-- | pkgs/development/python-modules/rhpl/default.nix | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/rhpl/builder.sh b/pkgs/development/python-modules/rhpl/builder.sh new file mode 100644 index 0000000000000..d458500b4efb4 --- /dev/null +++ b/pkgs/development/python-modules/rhpl/builder.sh @@ -0,0 +1,12 @@ +source $stdenv/setup + +rpm2cpio $src | cpio -idv +tar xfvj rhpl-*.tar.bz2 +rm rhpl-*.tar.bz2 +cd rhpl-* +sed -i -e "s@/usr/include/\$(PYTHON)@$python/include/python2.5@" \ + -e "s@PYTHONLIBDIR = /usr/\$(LIBDIR)/\$(PYTHON)/site-packages@PYTHONLIBDIR = $out/lib/python2.5/site-packages@" Makefile.inc +sed -i -e "s@/usr/bin/install@install@g" \ + -e "s@\$(DESTDIR)/usr/share/locale@$out/share/locale@" po/Makefile +make PREFIX=$out +make PREFIX=$out install diff --git a/pkgs/development/python-modules/rhpl/default.nix b/pkgs/development/python-modules/rhpl/default.nix new file mode 100644 index 0000000000000..a577d3ac7b976 --- /dev/null +++ b/pkgs/development/python-modules/rhpl/default.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, rpm, cpio, python, wirelesstools, gettext}: + +stdenv.mkDerivation { + name = "rhpl-0.218"; + src = fetchurl { + url = http://ftp.stw-bonn.de/pub/fedora/linux/releases/10/Everything/source/SRPMS/rhpl-0.218-1.src.rpm; + md5 = "a72c6b66df782ca1d4950959d2aad292"; + }; + inherit python; + builder = ./builder.sh; + buildInputs = [ rpm cpio python wirelesstools gettext ]; +} |