Merge pull request #105271 from veprbl/pr/LaTeXML_darwin_fix
perlPackages.LaTeXML: patch shebangs to use full path to perl on darwin
This commit is contained in:
@@ -10710,14 +10710,18 @@ let
|
|||||||
url = "mirror://cpan/authors/id/B/BR/BRMILLER/${pname}-${version}.tar.gz";
|
url = "mirror://cpan/authors/id/B/BR/BRMILLER/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0dr69rgl4si9i9ww1r4dc7apgb7y6f7ih808w4g0924cvz823s0x";
|
sha256 = "0dr69rgl4si9i9ww1r4dc7apgb7y6f7ih808w4g0924cvz823s0x";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ shortenPerlShebang ArchiveZip DBFile FileWhich IOString ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ];
|
propagatedBuildInputs = [ ArchiveZip DBFile FileWhich IOString ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ];
|
||||||
doCheck = false; # epub test fails
|
preCheck = ''
|
||||||
postInstall = ''
|
rm t/931_epub.t # epub test fails
|
||||||
shortenPerlShebang $out/bin/latexml
|
'';
|
||||||
shortenPerlShebang $out/bin/latexmlc
|
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||||
shortenPerlShebang $out/bin/latexmlfind
|
# shebangs need to be patched before executables are copied to $out
|
||||||
shortenPerlShebang $out/bin/latexmlmath
|
preBuild = ''
|
||||||
shortenPerlShebang $out/bin/latexmlpost
|
patchShebangs bin/
|
||||||
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
for file in bin/*; do
|
||||||
|
shortenPerlShebang "$file"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
description = "Transforms TeX and LaTeX into XML/HTML/MathML";
|
description = "Transforms TeX and LaTeX into XML/HTML/MathML";
|
||||||
|
|||||||
Reference in New Issue
Block a user