diff options
| author | Matt Barnett | 2011-04-01 19:34:37 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-14 13:58:54 -0700 |
| commit | 3048e2f249f7768f706f722379303d1d73ee2e3a (patch) | |
| tree | d1495322ee17c88820358ca247867d634ea1f710 /Library/Formula | |
| parent | e00734bf631c3ad0d92f9ab93e3dd0f173057e70 (diff) | |
| download | homebrew-3048e2f249f7768f706f722379303d1d73ee2e3a.tar.bz2 | |
mit-scheme 9.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mit-scheme.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/mit-scheme.rb b/Library/Formula/mit-scheme.rb new file mode 100644 index 000000000..508e9d7b2 --- /dev/null +++ b/Library/Formula/mit-scheme.rb @@ -0,0 +1,35 @@ +require 'formula' + +class MitScheme < Formula + url 'http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-c-9.0.1.tar.gz' + homepage 'http://www.gnu.org/software/mit-scheme/' + md5 '92884092806dd075f103cd1e9996413c' + + # Do not strip the binaries, this will cause missing symbol errors on launch + skip_clean :all + + 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 configure + edwin/techinfo.scm edwin/unix.scm lib/include/configure lib/include/option.c + 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" + + system "etc/make-liarc.sh", "--disable-debug", "--prefix=#{prefix}", "--mandir=#{man}" + system "make install" + end +end |
