pkgsrc-ng/print/tex-musixtex/patches/patch-bin_musixtex
2016-10-14 07:49:11 +02:00

43 lines
1.5 KiB
Plaintext

$NetBSD: patch-bin_musixtex,v 1.6 2016/08/07 09:09:39 markd Exp $
Fix paths to commands.
--- bin/musixtex.orig 2016-06-10 23:19:38.000000000 +0000
+++ bin/musixtex
@@ -182,10 +182,10 @@ local dvips = "dvips -e0"
function defaults()
prepmx = "prepmx"
pmx = "pmxab"
- tex = "etex"
- musixflx = "musixflx"
- dvi = dvips
- ps2pdf = "ps2pdf"
+ tex = "@LOCALBASE@/bin/etex"
+ musixflx = "@LOCALBASE@/bin/musixflx"
+ dvi = @LOCALBASE@/bin/dvips
+ ps2pdf = "@LOCALBASE@/bin/ps2pdf"
cleanup = true -- clean up intermediate and log files
index = false
latex = false
@@ -339,9 +339,9 @@ function find_file(this_arg)
if not override:match"l" then latex = tex:match"latex" end
if not force_engine then -- select appropriate default engine
if latex then
- if dvi==nil then tex = "pdflatex" else tex = "latex" end
+ if dvi==nil then tex = "@LOCALBASE@/bin/pdflatex" else tex = "@LOCALBASE@/bin/latex" end
else
- if dvi==nil then tex = "pdfetex" else tex = "etex" end
+ if dvi==nil then tex = "@LOCALBASE@/bin/pdfetex" else tex = "@LOCALBASE@/bin/etex" end
end
end
end
@@ -408,7 +408,7 @@ function tex_process(tex,basename,extens
local latex = latex
if extension == "ltx" then
if not force_engine and not latex then
- if dvi then tex = "latex" else tex = "pdflatex" end
+ if dvi then tex = "@LOCALBASE@/bin/latex" else tex = "@LOCALBASE@/bin/pdflatex" end
end
latex = true
end