blob: 3b843158a45c34c231148306e0c0099f882c8856 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
require "formula"
class MitScheme < Formula
homepage "http://www.gnu.org/software/mit-scheme/"
url "http://ftpmirror.gnu.org/mit-scheme/stable.pkg/9.2/mit-scheme-c-9.2.tar.gz"
mirror "http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-c-9.2.tar.gz"
sha1 "d2820ee76da109d370535fec6e19910a673aa7ee"
bottle do
revision 1
sha1 "af57614a2fba575d897aead31686ee5cd363fb4f" => :yosemite
sha1 "7bdca846c5d7efb137b05fa6bff6b755e8eed3fa" => :mavericks
sha1 "f1c8d3788f6308be61948350ea33dd7ce085307f" => :mountain_lion
end
conflicts_with "tinyscheme", :because => "both install a `scheme` binary"
depends_on "openssl"
depends_on :x11
def install
# The build breaks __HORRIBLY__ with parallel make -- one target will erase something
# before another target gets it, so it's easier to change the environment than to
# change_make_var, because there are Makefiles littered everywhere
ENV.j1
# Liarc builds must launch within the src dir, not using the top-level Makefile
cd "src"
# Take care of some hard-coded paths
inreplace %w(6001/edextra.scm 6001/floppy.scm compiler/etc/disload.scm microcode/configure
edwin/techinfo.scm edwin/unix.scm lib/include/configure
swat/c/tk3.2-custom/Makefile swat/c/tk3.2-custom/tcl/Makefile swat/scheme/other/btest.scm) do |s|
s.gsub! "/usr/local", prefix
end
# The configure script will add "-isysroot" to CPPFLAGS, so it didn't check .h here
# by default even Homebrew is installed in /usr/local. This breaks things when gdbm
# or other optional dependencies was installed using Homebrew
ENV.prepend "CPPFLAGS", "-I#{HOMEBREW_PREFIX}/include"
ENV["MACOSX_SYSROOT"] = MacOS.sdk_path
system "etc/make-liarc.sh", "--disable-debug", "--prefix=#{prefix}", "--mandir=#{man}"
system "make", "install"
end
end
|