From f62335822ccf4a4d124229066cf784a21ea7ac40 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 7 Jul 2011 12:13:16 +0000 Subject: [PATCH] * Qt 4.7.3. svn path=/nixpkgs/branches/kde-4.7/; revision=27619 --- .../libraries/qt-4.x/4.7/default.nix | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/pkgs/development/libraries/qt-4.x/4.7/default.nix b/pkgs/development/libraries/qt-4.x/4.7/default.nix index d6a4afc3fcae..98e460c65efa 100644 --- a/pkgs/development/libraries/qt-4.x/4.7/default.nix +++ b/pkgs/development/libraries/qt-4.x/4.7/default.nix @@ -5,10 +5,11 @@ , zlib, libjpeg, libpng, libmng, which, mesa, openssl, dbus, cups, pkgconfig, libtiff, glib , mysql, postgresql, sqlite , perl, coreutils, libXi -, buildDemos ? false, buildExamples ? false, useDocs ? true}: +, buildDemos ? false, buildExamples ? false, useDocs ? false +}: let - v = "4.7.2"; + v = "4.7.3"; in stdenv.mkDerivation rec { @@ -16,12 +17,29 @@ stdenv.mkDerivation rec { src = fetchurl { url = "ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${v}.tar.gz"; - sha256 = "0dlknhzcslymqbmlkpmmgv29c5mmbw6s7rznriqd5g4h9d93ny6l"; + sha256 = "0zlk0lcrkhi8wdb5j2lqz3nclk07blbiial7lzs03708kpb6yayh"; }; - preConfigure = '' - export LD_LIBRARY_PATH="`pwd`/lib:$LD_LIBRARY_PATH" - configureFlags+=" + preConfigure = + '' + export LD_LIBRARY_PATH="`pwd`/lib:$LD_LIBRARY_PATH" + ''; + + configureFlags = + '' + -v -no-separate-debug-info -release -fast -confirm-license -opensource + -system-zlib -system-libpng -system-libjpeg -qt-gif -system-libmng + -opengl -xrender -xrandr -xinerama -xcursor + -plugin-sql-mysql -system-sqlite + -qdbus -cups -glib -xfixes -dbus-linked -openssl-linked + -fontconfig -I${freetype}/include/freetype2 + -exceptions -xmlpatterns + -multimedia -audio-backend -phonon -phonon-backend + -webkit -javascript-jit + -make libs -make tools -make translations + ${if buildDemos == true then "-make demos" else "-nomake demos"} + ${if buildExamples == true then "-make examples" else "-nomake examples"} + ${if useDocs then "-make docs" else "-nomake docs"} -docdir $out/share/doc/${name} -plugindir $out/lib/qt4/plugins -importdir $out/lib/qt4/imports @@ -29,8 +47,7 @@ stdenv.mkDerivation rec { -demosdir $out/share/doc/${name}/demos -datadir $out/share/${name} -translationdir $out/share/${name}/translations - " - ''; + ''; propagatedBuildInputs = [ alsaLib @@ -75,21 +92,6 @@ stdenv.mkDerivation rec { prefixKey = "-prefix "; - configureFlags = '' - -v -no-separate-debug-info -release -fast -confirm-license -opensource - -system-zlib -system-libpng -system-libjpeg -qt-gif -system-libmng - -opengl -xrender -xrandr -xinerama -xcursor - -plugin-sql-mysql -system-sqlite - -qdbus -cups -glib -xfixes -dbus-linked -openssl-linked - -fontconfig -I${freetype}/include/freetype2 - -exceptions -xmlpatterns - -multimedia -audio-backend -phonon -phonon-backend - -webkit -javascript-jit - -make libs -make tools -make translations - ${if buildDemos == true then "-make demos" else "-nomake demos"} - ${if buildExamples == true then "-make examples" else "-nomake examples"} - ${if useDocs then "-make docs" else "-nomake docs"}''; - prePatch = '' substituteInPlace configure --replace /bin/pwd pwd substituteInPlace src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls @@ -98,7 +100,8 @@ stdenv.mkDerivation rec { postInstall = '' ${if useDocs then "rm -rfv $out/share/doc/${name}/{html,src}" else ""} - ln -sv phonon $out/include/Phonon''; + ln -sv phonon $out/include/Phonon + ''; enableParallelBuilding = true; @@ -108,6 +111,5 @@ stdenv.mkDerivation rec { license = "GPL/LGPL"; maintainers = with maintainers; [ urkud sander ]; platforms = platforms.linux; - priority = 10; }; }