ghostscript: minor update, a little refactoring
Builds fine, I tried running some apps depending on it.
This commit is contained in:
parent
504a68f821
commit
b8d00ac153
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, libjpeg, libpng, libtiff, zlib, pkgconfig, fontconfig, openssl
|
{ stdenv, fetchurl, pkgconfig, zlib, expat, openssl
|
||||||
, lcms, freetype, libpaper, jbig2dec, expat, libiconvOrEmpty
|
, libjpeg, libpng, libtiff, freetype, fontconfig, lcms2, libpaper, jbig2dec
|
||||||
, x11Support, x11 ? null
|
, libiconvOrEmpty
|
||||||
|
, x11Support ? false, x11 ? null
|
||||||
, cupsSupport ? false, cups ? null
|
, cupsSupport ? false, cups ? null
|
||||||
, gnuFork ? true
|
, gnuFork ? true
|
||||||
}:
|
}:
|
||||||
@ -40,10 +41,10 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
mainlineSrc = rec {
|
mainlineSrc = rec {
|
||||||
name = "ghostscript-9.06";
|
name = "ghostscript-9.08";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://downloads.ghostscript.com/public/${name}.tar.bz2";
|
url = "http://downloads.ghostscript.com/public/${name}.tar.bz2";
|
||||||
sha256 = "014f10rxn4ihvcr1frby4szd1jvkrwvmdhnbivpp55c9fssx3b05";
|
sha256 = "0k1rvnvmiz456hiixfm130p3irbp1ddd0ycf7rf6bx7nzkp6sxb1";
|
||||||
};
|
};
|
||||||
meta = meta_common // {
|
meta = meta_common // {
|
||||||
homepage = "http://www.ghostscript.com/";
|
homepage = "http://www.ghostscript.com/";
|
||||||
@ -51,7 +52,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
rm -R libpng jpeg lcms{,2} tiff freetype jbig2dec expat jasper openjpeg
|
rm -R libpng jpeg lcms{,2} tiff freetype jbig2dec expat openjpeg
|
||||||
|
|
||||||
substituteInPlace base/unix-aux.mak --replace "INCLUDE=/usr/include" "INCLUDE=/no-such-path"
|
substituteInPlace base/unix-aux.mak --replace "INCLUDE=/usr/include" "INCLUDE=/no-such-path"
|
||||||
sed "s@if ( test -f \$(INCLUDE)[^ ]* )@if ( true )@" -i base/unix-aux.mak
|
sed "s@if ( test -f \$(INCLUDE)[^ ]* )@if ( true )@" -i base/unix-aux.mak
|
||||||
@ -79,9 +80,9 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libjpeg libpng libtiff zlib pkgconfig fontconfig openssl lcms
|
pkgconfig zlib expat openssl
|
||||||
libpaper jbig2dec expat
|
libjpeg libpng libtiff freetype fontconfig lcms2 libpaper jbig2dec
|
||||||
] ++ stdenv.lib.optionals x11Support [x11 freetype]
|
] ++ stdenv.lib.optional x11Support x11
|
||||||
++ stdenv.lib.optional cupsSupport cups
|
++ stdenv.lib.optional cupsSupport cups
|
||||||
++ libiconvOrEmpty
|
++ libiconvOrEmpty
|
||||||
# [] # maybe sometimes jpeg2000 support
|
# [] # maybe sometimes jpeg2000 support
|
||||||
@ -101,9 +102,11 @@ stdenv.mkDerivation rec {
|
|||||||
makeFlagsArray=(CUPSSERVERBIN=$out/lib/cups CUPSSERVERROOT=$out/etc/cups CUPSDATA=$out/share/cups)
|
makeFlagsArray=(CUPSSERVERBIN=$out/lib/cups CUPSSERVERROOT=$out/etc/cups CUPSDATA=$out/share/cups)
|
||||||
'' + stdenv.lib.optionalString (variant ? preConfigure) variant.preConfigure;
|
'' + stdenv.lib.optionalString (variant ? preConfigure) variant.preConfigure;
|
||||||
|
|
||||||
configureFlags = [ "--with-system-libtiff" ] ++
|
configureFlags = [
|
||||||
(if x11Support then [ "--with-x" ] else [ "--without-x" ]) ++
|
"--with-system-libtiff"
|
||||||
(if cupsSupport then [ "--enable-cups" "--with-install-cups" ] else [ "--disable-cups" ]);
|
(if x11Support then "--with-x" else "--without-x")
|
||||||
|
(if cupsSupport then "--enable-cups" else "--disable-cups")
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
@ -9606,7 +9606,6 @@ let
|
|||||||
gensgs = callPackage_i686 ../misc/emulators/gens-gs { };
|
gensgs = callPackage_i686 ../misc/emulators/gens-gs { };
|
||||||
|
|
||||||
ghostscript = callPackage ../misc/ghostscript {
|
ghostscript = callPackage ../misc/ghostscript {
|
||||||
lcms = lcms2;
|
|
||||||
x11Support = false;
|
x11Support = false;
|
||||||
cupsSupport = config.ghostscript.cups or true;
|
cupsSupport = config.ghostscript.cups or true;
|
||||||
gnuFork = config.ghostscript.gnu or false;
|
gnuFork = config.ghostscript.gnu or false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user