Add formula for cabal-install

Cabal is a system for building and packaging Haskell libraries and
programs. It defines a common interface for package authors and
distributors to easily build their applications in a portable way.

cabal-install is the command line interface to Cabal and hackage. This
is the package that provides the 'cabal' command line program. To make
the process easier the cabal-install tarball contains a bootstrap.sh
script which downloads and installs all three dependencies.

	http://www.haskell.org/cabal/

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Frank J. Cameron 2010-09-01 00:08:31 -04:00 committed by Adam Vandenberg
parent d04101b5db
commit c51c411972
1 changed files with 14 additions and 0 deletions

14
Formula/cabal-install.rb Normal file
View File

@ -0,0 +1,14 @@
require 'formula'
class CabalInstall <Formula
url 'http://www.haskell.org/cabal/release/cabal-install-0.8.2/cabal-install-0.8.2.tar.gz'
homepage 'http://www.haskell.org/cabal/'
md5 '4abd0933dff361ff69ee9288a211e4e1'
depends_on 'ghc'
def install
ENV['PREFIX'] = prefix
system "sh", "./bootstrap.sh", "--user"
end
end