parent
c67a2fe380
commit
7443b67b2a
1 changed files with 5 additions and 3 deletions
|
@ -2,14 +2,16 @@ require 'formula'
|
||||||
|
|
||||||
class HaskellPlatform < Formula
|
class HaskellPlatform < Formula
|
||||||
homepage 'http://hackage.haskell.org/platform/'
|
homepage 'http://hackage.haskell.org/platform/'
|
||||||
url 'http://lambda.haskell.org/platform/download/2012.4.0.0/haskell-platform-2012.4.0.0.tar.gz'
|
url 'http://lambda.haskell.org/platform/download/2013.2.0.0/haskell-platform-2013.2.0.0.tar.gz'
|
||||||
sha1 '7976508c50305969f64c721a1d095ae22efff8b7'
|
sha1 '8669bb5add1826c0523fb130c095fb8bf23a30ce'
|
||||||
|
|
||||||
depends_on 'ghc'
|
depends_on 'ghc'
|
||||||
|
|
||||||
|
conflicts_with 'cabal-install'
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# libdir doesn't work if passed to configure, needs to be set in the environment
|
# libdir doesn't work if passed to configure, needs to be set in the environment
|
||||||
system "./configure", "--prefix=#{prefix}", "--enable-unsupported-ghc-version"
|
system "./configure", "--prefix=#{prefix}"
|
||||||
ENV['EXTRA_CONFIGURE_OPTS'] = "--libdir=#{lib}/ghc"
|
ENV['EXTRA_CONFIGURE_OPTS'] = "--libdir=#{lib}/ghc"
|
||||||
system "make install"
|
system "make install"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue