ded62a4b85
Closes Homebrew/homebrew#15116. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
32 lines
688 B
Ruby
32 lines
688 B
Ruby
require 'formula'
|
|
|
|
class Opam < Formula
|
|
homepage 'https://github.com/OCamlPro/opam'
|
|
url 'https://github.com/OCamlPro/opam/tarball/0.7.2'
|
|
sha1 '7bf09bed5be8628ea853173bfca2e3b85190de65'
|
|
|
|
depends_on "objective-caml"
|
|
depends_on "wget"
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/opam --help"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
opam uses ~/.opam by default to install packages, you need to init package
|
|
database first by running:
|
|
|
|
opam init
|
|
|
|
and add the following line to ~/.profile to initialize opam environment:
|
|
|
|
eval `opam config -env`
|
|
EOS
|
|
end
|
|
end
|