* ImageMagick: code cleanup and added another source URL
(ftp.imagemagick.org seems to be down now). svn path=/nixpkgs/trunk/; revision=11835
This commit is contained in:
parent
86b0350dba
commit
4bbd9bab29
@ -1,26 +1,36 @@
|
|||||||
args: with args;
|
args: with args;
|
||||||
|
|
||||||
stdenv.mkDerivation (rec {
|
stdenv.mkDerivation (rec {
|
||||||
name = "ImageMagick-${version}";
|
name = "ImageMagick-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "ftp://ftp.imagemagick.org/pub/ImageMagick/${name}.tar.bz2";
|
urls = [
|
||||||
|
"ftp://ftp.imagemagick.org/pub/ImageMagick/${name}.tar.bz2"
|
||||||
|
"http://ftp.surfnet.nl/pub/ImageMagick/${name}.tar.bz2"
|
||||||
|
];
|
||||||
sha256 = "0ynn8gxixjb16xhg60hp2sbfymh03y5qxxgffwlchciiylw9dlvd";
|
sha256 = "0ynn8gxixjb16xhg60hp2sbfymh03y5qxxgffwlchciiylw9dlvd";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = " --with-dots --with-gs-font-dir="+ ghostscript +
|
configureFlags = ''
|
||||||
"/share/ghostscript/fonts --with-gslib " +(
|
--with-dots
|
||||||
if args ? tetex then " --with-frozenpaths " else ""
|
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
|
||||||
);
|
--with-gslib
|
||||||
|
${if args ? tetex then "--with-frozenpaths" else ""}
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [bzip2 freetype ghostscript graphviz libjpeg libpng
|
buildInputs =
|
||||||
libtiff libX11 libxml2 zlib libtool] ++ (if args ? tetex then [args.tetex] else [])
|
[ bzip2 freetype ghostscript graphviz libjpeg libpng
|
||||||
++ (if args ? librsvg then [args.librsvg] else []);
|
libtiff libX11 libxml2 zlib libtool
|
||||||
|
]
|
||||||
|
++ stdenv.lib.optional (args ? tetex) args.tetex
|
||||||
|
++ stdenv.lib.optional (args ? librsvg) args.librsvg;
|
||||||
|
|
||||||
|
preConfigure = if args ? tetex then
|
||||||
|
''
|
||||||
|
export DVIDecodeDelegate=${args.tetex}/bin/dvips
|
||||||
|
'' else "";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.imagemagick.org;
|
homepage = http://www.imagemagick.org;
|
||||||
};
|
};
|
||||||
} // (if args ? tetex then {
|
})
|
||||||
preConfigure = "
|
|
||||||
export DVIDecodeDelegate=${args.tetex}/bin/dvips
|
|
||||||
";
|
|
||||||
} else {}))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user