mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
* 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() {
|
||||
# "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"
|
||||
|
@ -1,14 +1,18 @@
|
||||
{ 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";
|
||||
sha256 = "0zgvmhrxzdxc3lp7im7qcdmv0jlmbnp1fk0zs0hr3fqa943ywyg2";
|
||||
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user