homebrew-core/Formula/pure.rb
Jack Nagel 8c29982153 Revert "Rename readline to gnu-readline"
This reverts commit adee5315265cc46aa6a3057071527abb16e1cd94.

Turns out one of the "other things" is a dealbreaker.

We only create kegs using a formula's canonical name. However, we do not
check that this is the case when mapping existing kegs back to formula
objects, and thus a keg with a name that happens to be an alias can fool
Homebrew into thinking the canonically-named keg exists.

So anything that enumerates kegs and then tries to do stuff with the
resulting formula objects will just break. This is obviously worse than
the debugger being broken, so reverting this for the time being.
2012-11-10 21:12:26 -06:00

29 lines
782 B
Ruby

require 'formula'
class PureDocs < Formula
url 'http://pure-lang.googlecode.com/files/pure-docs-0.55.tar.gz'
sha1 'f16d5b7dd6bbf5294d0e1d9258421574d33d7e09'
end
class Pure < Formula
homepage 'http://code.google.com/p/pure-lang/'
url 'http://pure-lang.googlecode.com/files/pure-0.55.tar.gz'
sha1 '3786b7708956fa981605d078833d638a8e4216c3'
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