aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authornonowarn2010-03-25 06:45:48 +0900
committerAdam Vandenberg2010-06-30 10:14:33 -0700
commit7cd4c147130432e9de02cf2f5664cda75fd9b4c0 (patch)
tree5ad103ebcba709b93d13e2afd6f7bcfe0f2fc452 /Library
parent17a63e004e42ecc4dc031b9d6648d19db1b87696 (diff)
downloadhomebrew-7cd4c147130432e9de02cf2f5664cda75fd9b4c0.tar.bz2
New fomula: haskell-platform
The standard Haskell development environment Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/haskell-platform.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/haskell-platform.rb b/Library/Formula/haskell-platform.rb
new file mode 100644
index 000000000..698e8c35a
--- /dev/null
+++ b/Library/Formula/haskell-platform.rb
@@ -0,0 +1,21 @@
+require 'formula'
+
+class HaskellPlatform <Formula
+ url 'http://hackage.haskell.org/platform/2010.1.0.0/haskell-platform-2010.1.0.0.tar.gz'
+ homepage 'http://hackage.haskell.org/platform/'
+ md5 'ad96a12535b955f2f5e11769b02e0f76'
+ version '2010.1.0.0'
+
+ depends_on 'ghc'
+
+ def install
+ # haskell-platform expects 6.12.1 but we have 6.12.3, so force the issue.
+ # libdir doesn't work if passed to configure, needs to be passed to make install
+ system "./configure", "--prefix=#{prefix}", "--enable-unsupported-ghc-version"
+ system %Q(EXTRA_CONFIGURE_OPTS="--libdir=#{lib}/ghc" make install)
+ end
+
+ def caveats
+ "Run `cabal update` to initialize the package list."
+ end
+end