mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
Updating xpdf.
svn path=/nixpkgs/trunk/; revision=30157
This commit is contained in:
parent
8437718fbe
commit
4cf25b19de
@ -8,40 +8,19 @@ assert enablePDFtoPPM -> freetype != null;
|
|||||||
assert useT1Lib -> t1lib != null;
|
assert useT1Lib -> t1lib != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "xpdf-3.02pl5";
|
name = "xpdf-3.03";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz;
|
url = ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz;
|
||||||
sha256 = "000zq4ddbwyxiki4vdwpmxbnw5n9hsg9hvwra2p33hslyib7sfmk";
|
sha256 = "1jnfzdqc54wa73lw28kjv0m7120mksb0zkcn81jdlvijyvc67kq2";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
(if enableGUI then [x11 motif] else []) ++
|
(if enableGUI then [x11 motif] else []) ++
|
||||||
(if useT1Lib then [t1lib] else []);
|
(if useT1Lib then [t1lib] else []);
|
||||||
|
|
||||||
patches = [
|
# Debian uses '-fpermissive' to bypass some errors on char* constantness.
|
||||||
(fetchurl {
|
CXXFLAGS = "-O2 -fpermissive";
|
||||||
url = ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl1.patch;
|
|
||||||
sha256 = "1wxv9l0d2kkwi961ihpdwi75whdvk7cgqxkbfym8cjj11fq17xjq";
|
|
||||||
})
|
|
||||||
(fetchurl {
|
|
||||||
url = ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl2.patch;
|
|
||||||
sha256 = "1nfrgsh9xj0vryd8h65myzd94bjz117y89gq0hzji9dqn23xihfi";
|
|
||||||
})
|
|
||||||
(fetchurl {
|
|
||||||
url = ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl3.patch;
|
|
||||||
sha256 = "0jskkv8x6dqr9zj4azaglas8cziwqqrkbbnzrpm2kzrvsbxyhk2r";
|
|
||||||
})
|
|
||||||
(fetchurl {
|
|
||||||
url = ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl4.patch;
|
|
||||||
sha256 = "1c48h7aizx0ngmzlzw0mpja1w8vqyy3pg62hyxp7c60k86al715h";
|
|
||||||
})
|
|
||||||
(fetchurl {
|
|
||||||
url = ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl5.patch;
|
|
||||||
sha256 = "1fki66pw56yr6aw38f6amrx7wxwcxbx4704pjqq7pqqr784b7z4j";
|
|
||||||
})
|
|
||||||
./xpdf-3.02-protection.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
"--infodir=$out/share/info --mandir=$out/share/man --enable-a4-paper"
|
"--infodir=$out/share/info --mandir=$out/share/man --enable-a4-paper"
|
||||||
@ -54,7 +33,7 @@ stdenv.mkDerivation {
|
|||||||
if test -n \"${base14Fonts}\"; then
|
if test -n \"${base14Fonts}\"; then
|
||||||
substituteInPlace $out/etc/xpdfrc \\
|
substituteInPlace $out/etc/xpdfrc \\
|
||||||
--replace /usr/local/share/ghostscript/fonts ${base14Fonts} \\
|
--replace /usr/local/share/ghostscript/fonts ${base14Fonts} \\
|
||||||
--replace '#displayFontT1' displayFontT1
|
--replace '#displayFontT1' displayFontT2
|
||||||
fi
|
fi
|
||||||
";
|
";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user