aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMichael Dippery2010-11-12 17:56:09 -0500
committerAdam Vandenberg2010-11-12 15:00:07 -0800
commit8101912ed700b916406da6522779b15290b964af (patch)
treee76b0949800a5de79c4a0dd0d3a837911ba0f2e3 /Library
parent2d35029edd618c20326cd01d2228f965d592dca8 (diff)
downloadhomebrew-8101912ed700b916406da6522779b15290b964af.tar.bz2
swi-prolog: Add HEAD build
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/swi-prolog.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/swi-prolog.rb b/Library/Formula/swi-prolog.rb
index e6d86bce9..f07ee5c93 100644
--- a/Library/Formula/swi-prolog.rb
+++ b/Library/Formula/swi-prolog.rb
@@ -2,6 +2,7 @@ require 'formula'
class SwiProlog <Formula
url 'http://www.swi-prolog.org/download/stable/src/pl-5.10.2.tar.gz'
+ head 'git://www.swi-prolog.org/home/pl/git/pl.git'
homepage 'http://www.swi-prolog.org/'
md5 '7973bcfd3854ae0cb647cc62f2faabcf'
@@ -49,6 +50,10 @@ class SwiProlog <Formula
# Build the packages unless --lite option specified
args << "--with-world" unless ARGV.include? "--lite"
+ # './prepare' prompts the user to build documentation
+ # (which requires other modules). '3' is the option
+ # to ignore documentation.
+ system "echo '3' | ./prepare" if ARGV.build_head?
system "./configure", *args
system "make"
system "make install"