8c29982153
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.
28 lines
916 B
Ruby
28 lines
916 B
Ruby
require 'formula'
|
|
|
|
class Hugs98 < Formula
|
|
url 'http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz'
|
|
version 'plus-Sep2006'
|
|
homepage 'http://www.haskell.org/hugs/'
|
|
sha1 '1464a80c715bc5f786ea5a4e4257b2ff0dc7e1e9'
|
|
|
|
depends_on 'readline'
|
|
|
|
fails_with :clang do
|
|
build 421
|
|
cause %[runhugs: Error occurred\nERROR "libraries/bootlib/Data/Bits.hs":192 - Syntax error in declaration (unexpected `}', possibly due to bad layout)]
|
|
end
|
|
|
|
def patches
|
|
{ :p0 => [
|
|
"https://trac.macports.org/export/80246/trunk/dports/lang/hugs98/files/patch-packages-base-include-HsBase.h.diff",
|
|
"https://trac.macports.org/export/80246/trunk/dports/lang/hugs98/files/patch-libraries-tools-make-bootlib.diff"
|
|
] }
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|