xpdf: fix configure-time bug that prevented the man pages from being installed
This commit is contained in:
parent
897329fc47
commit
757161cb81
@ -18,26 +18,20 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
(if enableGUI then [x11 motif] else []) ++
|
stdenv.lib.optionals enableGUI [x11 motif] ++
|
||||||
(if useT1Lib then [t1lib] else []);
|
stdenv.lib.optional useT1Lib t1lib ++
|
||||||
|
stdenv.lib.optional enablePDFtoPPM freetype;
|
||||||
|
|
||||||
# Debian uses '-fpermissive' to bypass some errors on char* constantness.
|
# Debian uses '-fpermissive' to bypass some errors on char* constantness.
|
||||||
CXXFLAGS = "-O2 -fpermissive";
|
CXXFLAGS = "-O2 -fpermissive";
|
||||||
|
|
||||||
configureFlags =
|
configureFlags = "--enable-a4-paper";
|
||||||
"--infodir=$out/share/info --mandir=$out/share/man --enable-a4-paper"
|
|
||||||
+ (if enablePDFtoPPM then
|
|
||||||
" --with-freetype2-library=${freetype}/lib"
|
|
||||||
+ " --with-freetype2-includes=${freetype}/include/freetype2"
|
|
||||||
else "");
|
|
||||||
|
|
||||||
postInstall = "
|
postInstall = stdenv.lib.optionalString (base14Fonts != null) ''
|
||||||
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 '#fontFile' fontFile
|
||||||
--replace '#fontFile' fontFile
|
'';
|
||||||
fi
|
|
||||||
";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.foolabs.com/xpdf/";
|
homepage = "http://www.foolabs.com/xpdf/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user