* 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:
parent
dc8e9933f9
commit
e7a94d6fef
@ -4,6 +4,9 @@ preConfigure=preConfigure
|
|||||||
preConfigure() {
|
preConfigure() {
|
||||||
# "ijs" is impure: it contains symlinks to /usr/share/automake etc.!
|
# "ijs" is impure: it contains symlinks to /usr/share/automake etc.!
|
||||||
rm -rf ijs/ltmain.sh
|
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"
|
installTargets="install install-so install-data install-doc install-man"
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
{ stdenv, fetchurl, libjpeg, libpng, zlib
|
{ stdenv, fetchurl, libjpeg, libpng, libtiff, zlib, pkgconfig, fontconfig, openssl
|
||||||
, x11Support, x11 ? null
|
, x11Support, x11 ? null
|
||||||
|
, cupsSupport ? false, cups ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert x11Support -> x11 != null;
|
assert x11Support -> x11 != null;
|
||||||
|
assert cupsSupport -> cups != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ghostscript-8.62.0";
|
name = "ghostscript-8.62.0";
|
||||||
|
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
|
|
||||||
|
x = true;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/ghostscript/gnu-${name}.tar.bz2";
|
url = "mirror://gnu/ghostscript/gnu-${name}.tar.bz2";
|
||||||
@ -26,8 +30,9 @@ stdenv.mkDerivation rec {
|
|||||||
# ... add other fonts here
|
# ... add other fonts here
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [libjpeg libpng zlib]
|
buildInputs = [libjpeg libpng libtiff zlib pkgconfig fontconfig openssl]
|
||||||
++ stdenv.lib.optional x11Support x11;
|
++ stdenv.lib.optional x11Support x11
|
||||||
|
++ stdenv.lib.optional cupsSupport cups;
|
||||||
|
|
||||||
configureFlags = "
|
configureFlags = "
|
||||||
--disable-static
|
--disable-static
|
||||||
|
@ -8672,8 +8672,10 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
ghostscript = import ../misc/ghostscript {
|
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;
|
x11Support = false;
|
||||||
|
cupsSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
ghostscriptX = lowPrio (appendToName "with-X" (import ../misc/ghostscript {
|
ghostscriptX = lowPrio (appendToName "with-X" (import ../misc/ghostscript {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user