-
Notifications
You must be signed in to change notification settings - Fork 116
/
inform6.rb
32 lines (26 loc) · 1.01 KB
/
inform6.rb
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 Inform6 < Formula
homepage 'http://www.inform-fiction.org/inform6.html'
stable do
url 'http://ifarchive.flavorplex.com/if-archive/infocom/compilers/inform6/source/inform-6.32.1.tar.gz'
sha1 '251cf057ddbf750a286802d2cfbccf5e80e25295'
patch do
# Fixes case-insensitivity issue that removes critical inform6 library files
# https://github.com/DavidGriffith/inform6unix/pull/1 (fixed in HEAD)
url "https://gist.githubusercontent.com/ziz/f2c0554ab0fefffab54b/raw/53182f68cfb7670ab5c99ff6238e9bdd19519f0d/inform6unix-6.32.1.patch"
sha1 "e49cf1c0c5d6ff9bdd5b1232c22f968bd4a334a8"
end
end
head do
url 'https://github.com/DavidGriffith/inform6unix.git'
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end