diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/swi-prolog.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/swi-prolog.rb b/Library/Formula/swi-prolog.rb index ae9e28ade..b63e3b4ed 100644 --- a/Library/Formula/swi-prolog.rb +++ b/Library/Formula/swi-prolog.rb @@ -41,7 +41,7 @@ class SwiProlog < Formula end def install - args = ["--prefix=#{prefix}", "--mandir=#{man}"] + args = ["--prefix=#{libexec}", "--mandir=#{man}"] ENV.append 'DISABLE_PKGS', "jpl" unless build.include? "with-jpl" ENV.append 'DISABLE_PKGS', "xpce" unless build.include? 'with-xpce' @@ -61,6 +61,11 @@ class SwiProlog < Formula system "./configure", *args system "make" system "make install" + + (bin/'swipl').write <<-EOS.undent + #!/bin/bash + exec "#{libexec}/bin/swipl" "$@" + EOS end def test |
