Cairo: Add dependency on Gettext on non-GNU systems; build it.

svn path=/nixpkgs/trunk/; revision=29495
This commit is contained in:
Ludovic Courtès 2011-09-26 12:07:24 +00:00
parent b7d32054da
commit e8a30536b6

View file

@ -5,6 +5,7 @@
, gobjectSupport ? true, glib
, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype, xlibs
, zlib, libpng, pixman, libxcb ? null, xcbutil ? null
, gettext
}:
assert postscriptSupport -> zlib != null;
@ -22,7 +23,10 @@ stdenv.mkDerivation rec {
buildInputs =
[ pkgconfig x11 fontconfig pixman xlibs.libXrender ]
++ stdenv.lib.optionals xcbSupport [ libxcb xcbutil ]
++ stdenv.lib.optional gobjectSupport glib;
++ stdenv.lib.optional gobjectSupport glib
# On non-GNU systems we need GNU Gettext for libintl.
++ stdenv.lib.optional (!stdenv.isLinux) gettext;
propagatedBuildInputs =
[ freetype ] ++
@ -62,5 +66,7 @@ stdenv.mkDerivation rec {
homepage = http://cairographics.org/;
licenses = [ "LGPLv2+" "MPLv1" ];
platforms = stdenv.lib.platforms.all;
};
}