* Ghostscript: build the CUPS filter. This allows CUPS to print to

non-Postscript printers.

svn path=/nixpkgs/trunk/; revision=13793
This commit is contained in:
Eelco Dolstra 2009-01-17 13:08:51 +00:00
parent dc8e9933f9
commit e7a94d6fef
3 changed files with 14 additions and 4 deletions

View File

@ -4,6 +4,9 @@ preConfigure=preConfigure
preConfigure() {
# "ijs" is impure: it contains symlinks to /usr/share/automake etc.!
rm -rf ijs/ltmain.sh
# Don't install stuff in the Cups store path.
makeFlagsArray=(CUPSSERVERBIN=$out/lib/cups CUPSSERVERROOT=$out/etc/cups CUPSDATA=$out/share/cups)
}
installTargets="install install-so install-data install-doc install-man"

View File

@ -1,13 +1,17 @@
{ stdenv, fetchurl, libjpeg, libpng, zlib
{ stdenv, fetchurl, libjpeg, libpng, libtiff, zlib, pkgconfig, fontconfig, openssl
, x11Support, x11 ? null
, cupsSupport ? false, cups ? null
}:
assert x11Support -> x11 != null;
assert cupsSupport -> cups != null;
stdenv.mkDerivation rec {
name = "ghostscript-8.62.0";
builder = ./builder.sh;
x = true;
src = fetchurl {
url = "mirror://gnu/ghostscript/gnu-${name}.tar.bz2";
@ -26,8 +30,9 @@ stdenv.mkDerivation rec {
# ... add other fonts here
];
buildInputs = [libjpeg libpng zlib]
++ stdenv.lib.optional x11Support x11;
buildInputs = [libjpeg libpng libtiff zlib pkgconfig fontconfig openssl]
++ stdenv.lib.optional x11Support x11
++ stdenv.lib.optional cupsSupport cups;
configureFlags = "
--disable-static

View File

@ -8672,8 +8672,10 @@ let
};
ghostscript = import ../misc/ghostscript {
inherit fetchurl stdenv libjpeg libpng zlib x11;
inherit fetchurl stdenv libjpeg libpng libtiff zlib x11 pkgconfig
fontconfig cups openssl;
x11Support = false;
cupsSupport = true;
};
ghostscriptX = lowPrio (appendToName "with-X" (import ../misc/ghostscript {