mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-29 12:29:40 -05:00
This reverts commit adee531526.
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.
31 lines
726 B
Ruby
31 lines
726 B
Ruby
require 'formula'
|
|
|
|
class Newlisp < Formula
|
|
homepage 'http://www.newlisp.org/'
|
|
url 'http://www.newlisp.org/downloads/newlisp-10.4.4.tgz'
|
|
sha1 'eb1121aa49e5ef208855bd1ffdc3204eab974169'
|
|
|
|
depends_on 'readline'
|
|
|
|
def install
|
|
# Required to use our configuration
|
|
ENV.append_to_cflags "-DNEWCONFIG -c"
|
|
|
|
system "./configure-alt", "--prefix=#{prefix}", "--mandir=#{man}"
|
|
system "make"
|
|
system "make check"
|
|
system "make install"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
If you have brew in a custom prefix, the included examples
|
|
will need to be be pointed to your newlisp executable.
|
|
EOS
|
|
end
|
|
|
|
# Use the IDE to test a complete installation
|
|
def test
|
|
system "#{bin}/newlisp-edit"
|
|
end
|
|
end
|