Cairo: Add dependency on Gettext on non-GNU systems; build it.
svn path=/nixpkgs/trunk/; revision=29495
This commit is contained in:
parent
b7d32054da
commit
e8a30536b6
@ -5,6 +5,7 @@
|
|||||||
, gobjectSupport ? true, glib
|
, gobjectSupport ? true, glib
|
||||||
, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype, xlibs
|
, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype, xlibs
|
||||||
, zlib, libpng, pixman, libxcb ? null, xcbutil ? null
|
, zlib, libpng, pixman, libxcb ? null, xcbutil ? null
|
||||||
|
, gettext
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert postscriptSupport -> zlib != null;
|
assert postscriptSupport -> zlib != null;
|
||||||
@ -22,7 +23,10 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig x11 fontconfig pixman xlibs.libXrender ]
|
[ pkgconfig x11 fontconfig pixman xlibs.libXrender ]
|
||||||
++ stdenv.lib.optionals xcbSupport [ libxcb xcbutil ]
|
++ 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 =
|
propagatedBuildInputs =
|
||||||
[ freetype ] ++
|
[ freetype ] ++
|
||||||
@ -62,5 +66,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://cairographics.org/;
|
homepage = http://cairographics.org/;
|
||||||
|
|
||||||
licenses = [ "LGPLv2+" "MPLv1" ];
|
licenses = [ "LGPLv2+" "MPLv1" ];
|
||||||
|
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user