2010-10-30 19:10:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Hugs98 < Formula
|
2013-01-28 04:49:17 +00:00
|
|
|
homepage 'http://www.haskell.org/hugs/'
|
2010-10-30 19:10:42 +00:00
|
|
|
url 'http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz'
|
|
|
|
version 'plus-Sep2006'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '1464a80c715bc5f786ea5a4e4257b2ff0dc7e1e9'
|
2010-10-30 19:10:42 +00:00
|
|
|
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2010-10-30 19:10:42 +00:00
|
|
|
|
2012-09-03 04:54:00 +00:00
|
|
|
fails_with :clang do
|
2013-04-30 17:12:01 +00:00
|
|
|
build 425
|
|
|
|
cause %[ERROR "libraries/bootlib/Data/Dynamic.hs" - Module "Main" already loaded]
|
2012-09-03 04:54:00 +00:00
|
|
|
end
|
|
|
|
|
2010-10-30 19:10:42 +00:00
|
|
|
def patches
|
2013-01-28 04:49:17 +00:00
|
|
|
{:p0 => [
|
2011-07-07 18:35:50 +00:00
|
|
|
"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"
|
2013-01-28 04:49:17 +00:00
|
|
|
]}
|
2010-10-30 19:10:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2013-01-28 04:49:17 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-10-30 19:10:42 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|