blob: 40ef003a6fd0afdfea1b481aafabb6bd4fcce8ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
require 'formula'
class Logtalk < Formula
homepage 'http://logtalk.org'
url 'http://logtalk.org/files/lgt2432.tar.bz2'
version '2.43.2'
sha1 'c5491754f4277c38ecf00d916eb0faba05d58442'
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"
case
when build.include?("swi-prolog")
depends_on 'swi-prolog'
else
depends_on 'gnu-prolog'
end
case
when build.include?("use-git-head")
head 'https://github.com/pmoura/logtalk.git'
else
head 'http://svn.logtalk.org/logtalk/trunk'
end
def install
system "scripts/install.sh #{prefix}"
man1.install Dir['man/man1/*']
bin.install Dir['bin/*']
end
end
|