Skip to content

Instantly share code, notes, and snippets.

@ciferkey
Forked from zmoazeni/cabal-install.rb
Created April 25, 2012 13:37
Show Gist options
  • Save ciferkey/2489758 to your computer and use it in GitHub Desktop.
Save ciferkey/2489758 to your computer and use it in GitHub Desktop.
cabal-install 0.14.0 homebrew formula
# ripped wholesale from https://github.com/mxcl/homebrew/blob/ba8277d78d4cb21e14b81ce64ad20de9162e37e0/Library/Formula/cabal-install.rb
require 'formula'
class CabalInstall < Formula
homepage 'http://www.haskell.org/haskellwiki/Cabal-Install'
url 'http://www.haskell.org/cabal/release/cabal-install-0.14.0/cabal-install-0.14.0.tar.gz'
md5 '638514bd1a5792d75866481852148ae5'
depends_on 'ghc'
def install
ENV['PREFIX'] = "#{prefix}"
system "sh bootstrap.sh"
(prefix+'etc/bash_completion.d').install 'bash-completion/cabal'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment