diff options
| author | Jack Nagel | 2014-11-11 10:48:01 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-11-11 10:48:01 -0600 |
| commit | 200d7d7215f42e8b48761de370d6736b073fd1f9 (patch) | |
| tree | 3b84e665c9cc269ae32fcabb4e6b998ca25b06d1 /Library | |
| parent | bbf6472c5a4f79d0924ec9425bcd46d2d51a4b31 (diff) | |
| download | homebrew-200d7d7215f42e8b48761de370d6736b073fd1f9.tar.bz2 | |
logtalk 2.44.1, devel 3.00.0-rc4, github head
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/logtalk.rb | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/Library/Formula/logtalk.rb b/Library/Formula/logtalk.rb index 43d8d53c3..45a17b91a 100644 --- a/Library/Formula/logtalk.rb +++ b/Library/Formula/logtalk.rb @@ -1,30 +1,33 @@ -require 'formula' +require "formula" class Logtalk < Formula - homepage 'http://logtalk.org' - url 'http://logtalk.org/files/lgt2432.tar.bz2' - version '2.43.2' - sha1 'c5491754f4277c38ecf00d916eb0faba05d58442' + homepage "http://logtalk.org" + url "http://logtalk.org/files/lgt2441.tar.bz2" + sha256 "ca49d8e26a08dcf2a39358efa827789ecc5c47791035e5bb5830a6aec59b94e9" + version "2.44.1" + + devel do + url "http://logtalk.org/files/logtalk-3.00.0-rc4.tar.bz2" + sha256 "d40a52b79b4c82051287f4142d73b2a625652b8e712d1a2607ab7a89bca86e38" + version "3.00.0-rc4" + end + + head "https://github.com/LogtalkDotOrg/logtalk3.git" option "swi-prolog", "Build using SWI Prolog as backend" option "gnu-prolog", "Build using GNU Prolog as backend (Default)" - option "use-git-head", "Use GitHub mirror" if build.include?("swi-prolog") - depends_on 'swi-prolog' - else - depends_on 'gnu-prolog' - end - - if build.include?("use-git-head") - head 'https://github.com/pmoura/logtalk.git' + depends_on "swi-prolog" else - head 'http://svn.logtalk.org/logtalk/trunk' + depends_on "gnu-prolog" end def install - system "scripts/install.sh #{prefix}" - man1.install Dir['man/man1/*'] - bin.install Dir['bin/*'] + if build.stable? + cd("scripts") { system "./install.sh", prefix } + else + cd("scripts") { system "./install.sh", "-p", prefix } + end end end |
