aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pure.rb
blob: efcdc683885743bec3f02a20387ee1250f7a8cf4 (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
require 'formula'

class PureDocs < Formula
  url 'http://pure-lang.googlecode.com/files/pure-docs-0.56.tar.gz'
  sha1 '8feaf83269d4f7f1287268c3c0c6fa83669c8d80'
end

class Pure < Formula
  homepage 'http://code.google.com/p/pure-lang/'
  url 'http://pure-lang.googlecode.com/files/pure-0.56.tar.gz'
  sha1 '224fa4057a5ec931a97ba5f938f96a4a9ab3bf1a'

  depends_on 'llvm'
  depends_on 'gmp'
  depends_on 'readline'
  depends_on 'mpfr'

  def install
    system "./configure", "--disable-debug",
                          "--prefix=#{prefix}",
                          "--enable-release",
                          "--without-elisp"
    system "make"
    system "make check"
    system "make install"

    PureDocs.new.brew { system "make", "prefix=#{prefix}", "install" }
  end
end