diff options
| author | Frank J. Cameron | 2010-09-01 00:08:31 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-26 09:46:57 -0700 |
| commit | 8a28a22d951f41961b38efb69cd93d8aa156599c (patch) | |
| tree | 1ef6e5450a7c68ca6e2b0a675eebec4b6a6c3595 /Library/Formula | |
| parent | a98a22503321ea36088663089e8ba8cd124ef019 (diff) | |
| download | homebrew-8a28a22d951f41961b38efb69cd93d8aa156599c.tar.bz2 | |
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>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cabal-install.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/cabal-install.rb b/Library/Formula/cabal-install.rb new file mode 100644 index 000000000..bcc8140bd --- /dev/null +++ b/Library/Formula/cabal-install.rb @@ -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 |
