2010-05-16 17:15:29 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-04-28 23:14:41 +00:00
|
|
|
class PureDocs < Formula
|
2012-12-02 22:32:35 +00:00
|
|
|
url 'http://pure-lang.googlecode.com/files/pure-docs-0.56.tar.gz'
|
|
|
|
sha1 '8feaf83269d4f7f1287268c3c0c6fa83669c8d80'
|
2012-04-28 23:14:41 +00:00
|
|
|
end
|
|
|
|
|
2010-05-16 17:15:29 +00:00
|
|
|
class Pure < Formula
|
|
|
|
homepage 'http://code.google.com/p/pure-lang/'
|
2012-12-02 22:32:35 +00:00
|
|
|
url 'http://pure-lang.googlecode.com/files/pure-0.56.tar.gz'
|
|
|
|
sha1 '224fa4057a5ec931a97ba5f938f96a4a9ab3bf1a'
|
2010-05-16 17:15:29 +00:00
|
|
|
|
|
|
|
depends_on 'llvm'
|
|
|
|
depends_on 'gmp'
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2012-03-10 21:48:48 +00:00
|
|
|
depends_on 'mpfr'
|
2010-05-16 17:15:29 +00:00
|
|
|
|
|
|
|
def install
|
2010-10-22 03:50:45 +00:00
|
|
|
system "./configure", "--disable-debug",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--prefix=#{prefix}",
|
2011-04-05 03:54:06 +00:00
|
|
|
"--enable-release",
|
|
|
|
"--without-elisp"
|
2010-05-16 17:15:29 +00:00
|
|
|
system "make"
|
2012-04-26 00:20:26 +00:00
|
|
|
system "make check"
|
2010-05-16 17:15:29 +00:00
|
|
|
system "make install"
|
2012-04-28 23:14:41 +00:00
|
|
|
|
|
|
|
PureDocs.new.brew { system "make", "prefix=#{prefix}", "install" }
|
2010-05-16 17:15:29 +00:00
|
|
|
end
|
|
|
|
end
|