58396e5398
Closes Homebrew/homebrew#15358. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
33 lines
776 B
Ruby
33 lines
776 B
Ruby
require 'formula'
|
|
|
|
class Opam < Formula
|
|
homepage 'https://github.com/OCamlPro/opam'
|
|
url 'https://github.com/OCamlPro/opam/tarball/0.7.6'
|
|
sha1 '4c8ade111f0f5b77c45e9f043e70c06e3d0b4297'
|
|
|
|
depends_on "objective-caml"
|
|
|
|
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, so you need to initialize
|
|
the package database first by running (as a normal user):
|
|
|
|
$ opam init
|
|
|
|
and add the following line to ~/.profile to initialize the environment:
|
|
|
|
$ eval `opam config -env`
|
|
|
|
Documentation and tutorials are available at http://opam.ocamlpro.com
|
|
EOS
|
|
end
|
|
end
|