diff options
Diffstat (limited to 'sci-mathematics/Macaulay2/files/9999-paths-of-external-programs.patch')
-rw-r--r-- | sci-mathematics/Macaulay2/files/9999-paths-of-external-programs.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sci-mathematics/Macaulay2/files/9999-paths-of-external-programs.patch b/sci-mathematics/Macaulay2/files/9999-paths-of-external-programs.patch index 34376c19b..9b16e5a51 100644 --- a/sci-mathematics/Macaulay2/files/9999-paths-of-external-programs.patch +++ b/sci-mathematics/Macaulay2/files/9999-paths-of-external-programs.patch @@ -6,7 +6,7 @@ diff -U 3 -dHrN M2source.orig/Macaulay2/packages/FourTiTwo.m2 M2source.patches/M path'4ti2 = (options FourTiTwo).Configuration#"path" -- NOTE: the absolute path should be put into the .init file for 4ti2 inside the .Macaulay2 directory. -if path'4ti2 == "" then path'4ti2 = prefixDirectory | currentLayout#"programs" -+if path'4ti2 == "" then path'4ti2 = "/usr/bin" ++if path'4ti2 == "" then path'4ti2 = "/usr/bin/" getFilename = () -> ( filename := temporaryFileName(); @@ -18,7 +18,7 @@ diff -U 3 -dHrN M2source.orig/Macaulay2/packages/gfanInterface.m2 M2source.patch gfan'path = gfanInterface#Options#Configuration#"path" -if gfan'path == "" then gfan'path = prefixDirectory | currentLayout#"programs" -+if gfan'path == "" then gfan'path = "/usr/bin" ++if gfan'path == "" then gfan'path = "/usr/bin/" if instance(gfan'path, String) then gfan'path = {gfan'path} if not instance(gfan'path,List) then error "expected configuration option gfan'path to be a list of strings or a string" gfan'path = join( @@ -30,7 +30,7 @@ diff -U 3 -dHrN M2source.orig/Macaulay2/packages/Nauty.m2 M2source.patches/Macau -- If it's not there, then use the M2-Programs directory. nauty'path = (options Nauty).Configuration#"path"; -if nauty'path == "" then nauty'path = prefixDirectory | currentLayout#"programs"; -+if nauty'path == "" then nauty'path = "/usr/bin"; ++if nauty'path == "" then nauty'path = "/usr/bin/"; + ------------------- @@ -43,7 +43,7 @@ diff -U 3 -dHrN M2source.orig/Macaulay2/packages/Normaliz.m2 M2source.patches/Ma ); -- return nmzExec; - return prefixDirectory | currentLayout#"programs" | nmzExec; -+ return "/usr/bin" | nmzExec; ++ return "/usr/bin/" | nmzExec; ); @@ -55,7 +55,7 @@ diff -U 3 -dHrN M2source.orig/Macaulay2/packages/StatePolytope.m2 M2source.patch gfanCommand = (options StatePolytope)#Configuration#"gfan command" -if gfanCommand === "gfan" then gfanCommand = prefixDirectory | currentLayout#"programs" | gfanCommand -+if gfanCommand === "gfan" then gfanCommand = "/usr/bin" | gfanCommand ++if gfanCommand === "gfan" then gfanCommand = "/usr/bin/" | gfanCommand gfanCommand = "!" | gfanCommand --The next two functions print out the ring and the ideal in the format required by gfan |