Browse files

opam 0.6.0

A package manager for OCaml

Closes #14875.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent bce5555 commit a515f69c883e1855de74b60e60951584189dadde @andreypopp andreypopp committed with Dennis Luxen Sep 12, 2012
Showing with 32 additions and 0 deletions.
  1. +32 −0 Library/Formula/opam.rb
View
32 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

0 comments on commit a515f69

Please sign in to comment.