blob: 03c1d03720eda0019649b3ce2af80e2370f8ed8a (
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
  | 
require 'formula'
class Scsh < Formula
  homepage 'http://www.scsh.net/'
  url 'http://ftp.scsh.net/pub/scsh/0.6/scsh-0.6.7.tar.gz'
  sha1 'a1eaf0d0593e14914824898a0c3ec166429affd7'
  head do
    url 'https://github.com/scheme/scsh.git'
    depends_on 'autoconf' => :build
    depends_on 'automake' => :build
    depends_on 'scheme48'
  end
  conflicts_with 'scheme48', :because => 'both install include/scheme48.h'
  # stable segfaults when built 64-bit; see #21351
  env :std unless build.head?
  def install
    if build.head?
      system "autoreconf"
    else
      # will not build 64-bit
      ENV.m32
    end
    # build system is not parallel-safe
    ENV.deparallelize
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--infodir=#{info}",
                          "--mandir=#{man}"
    system "make install"
  end
end
  |