diff options
| author | Adam Vandenberg | 2013-11-22 11:39:58 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-22 11:40:15 -0800 |
| commit | e2f3d64e0293756e641f162da3e4430a59a1ea48 (patch) | |
| tree | 85736c8002db8f692b271746ac8f89322ebe2666 /Library | |
| parent | bb01fc9ffae6b73e7817eb835d4c528e5b06a905 (diff) | |
| download | homebrew-e2f3d64e0293756e641f162da3e4430a59a1ea48.tar.bz2 | |
swi-prolog: install to libexec and wrap
swi-prolog does not like being called through a symlink, so don't
Fixes #24323.
Diffstat (limited to 'Library')
| -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 |
