Update swi-prolog
* Install JPL bridge by default, change switch to turn it off Needs Apple's Java Developer Update 3 * 10.5 needs a newer version of expat than the system versionmaster
parent
4e9a3d5341
commit
eff831ba00
|
@ -10,28 +10,21 @@ class SwiProlog <Formula
|
|||
depends_on 'readline'
|
||||
depends_on 'gmp'
|
||||
depends_on 'jpeg'
|
||||
depends_on 'fontconfig' if MACOS_VERSION < 10.6
|
||||
depends_on 'mcrypt'
|
||||
depends_on 'gawk'
|
||||
|
||||
# 10.5 versions of these are too old
|
||||
depends_on 'fontconfig' if MACOS_VERSION < 10.6
|
||||
depends_on 'expat' if MACOS_VERSION < 10.6
|
||||
|
||||
def options
|
||||
[['--lite', "Don't install any packages; overrides --with-jpl"],
|
||||
['--with-jpl', "Include JPL, the Java-Prolog Bridge"]]
|
||||
['--without-jpl', "Include JPL, the Java-Prolog Bridge"]]
|
||||
end
|
||||
|
||||
def install
|
||||
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
|
||||
|
||||
# It looks like Apple has borked the Java JNI headers in Java 1.6.0_22-b04-37.
|
||||
# Will not install the JPL bridge by default, which depends on them.
|
||||
unless ARGV.include? "--with-jpl"
|
||||
ohai <<-EOS.undent
|
||||
JPL, the Java-Prolog bridge, is not installed by this formula by default.
|
||||
If you want to indclude the Java-Prolog bridge, add the --with-jpl option.
|
||||
EOS
|
||||
|
||||
ENV.append 'DISABLE_PKGS', "jpl"
|
||||
end
|
||||
ENV.append 'DISABLE_PKGS', "jpl" if ARGV.include? "--without-jpl"
|
||||
|
||||
if x11_installed?
|
||||
# SWI-Prolog requires X11 for XPCE
|
||||
|
@ -58,4 +51,13 @@ class SwiProlog <Formula
|
|||
system "make"
|
||||
system "make install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
By default, this formula installs the JPL bridge.
|
||||
On 10.6, this requires the "Java Developer Update" from Apple:
|
||||
* https://github.com/mxcl/homebrew/wiki/new-issue
|
||||
|
||||
Use the "--without-jpl" switch to skip installing this component.
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue