diff options
| author | Andrey Popp | 2012-09-12 10:37:45 +0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-13 20:36:22 -0700 |
| commit | f9d77f4c23e0c734a7cda5c45241c0b462827ca9 (patch) | |
| tree | 04eb34ef6b8fb1d53f509dfe91c822ffeed861d6 /Library/Formula | |
| parent | 52bdfa175d9afe4431925834d4512371ce2de917 (diff) | |
| download | homebrew-f9d77f4c23e0c734a7cda5c45241c0b462827ca9.tar.bz2 | |
opam 0.6.0
A package manager for OCaml
Closes #14875.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/opam.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/opam.rb b/Library/Formula/opam.rb new file mode 100644 index 000000000..f2933017d --- /dev/null +++ b/Library/Formula/opam.rb @@ -0,0 +1,32 @@ +require 'formula' + +class Opam < Formula + homepage 'https://github.com/OCamlPro/opam' + url 'https://github.com/OCamlPro/opam/tarball/0.6.0' + sha1 '71aa753f37a60debe45a623bc2266a1262e9c305' + + 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 |
