diff options
| author | Michael Dippery | 2010-09-30 15:31:04 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-11-03 21:29:34 -0700 |
| commit | a9795c05921db0207f038ae7e0d650a4ba08952f (patch) | |
| tree | 99f5faa2e6898c455afba3508c815b0ab08013d4 | |
| parent | 36646e4264d3e62fc3755e89a5b89974efaab6ac (diff) | |
| download | homebrew-a9795c05921db0207f038ae7e0d650a4ba08952f.tar.bz2 | |
Added coq
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/coq.rb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Library/Formula/coq.rb b/Library/Formula/coq.rb new file mode 100644 index 000000000..6fece4878 --- /dev/null +++ b/Library/Formula/coq.rb @@ -0,0 +1,43 @@ +require 'formula' + +class Coq < Formula + url 'http://coq.inria.fr/distrib/V8.2pl2/files/coq-8.2pl2.tar.gz' + homepage 'http://coq.inria.fr/' + md5 '0fa1bcce3ab83d95571d2094f5091e6b' + version '8.2' + + depends_on 'objective-caml' + depends_on 'camlp5' + + def install + unless `camlp5 -pmode 2>&1`.chomp == 'transitional' + onoe 'camlp5 must be compiled in transitional mode (--transitional option)' + exit 1 + end + arch = Hardware.is_64_bit? ? "x86_64" : "i386" + camlp5_lib = Formula.factory('camlp5').lib+'ocaml/camlp5' + system "./configure", "-prefix", prefix, + "-mandir", man, + "-camlp5dir", camlp5_lib, + "-emacslib", "#{lib}/emacs/site-lisp", + "-coqdocdir", "#{share}/coq/latex", + "-coqide", "none", + "-with-doc", "no", + "-arch", arch + system "make world" + ENV.j1 # Otherwise "mkdir bin" can be attempted by more than one job + system "make install" + end + + def caveats + <<-EOS.undent + Coq's Emacs mode is installed into + #{lib}/emacs/site-lisp + To use the Coq Emacs mode, you need to put the following lines in + your .emacs file: + + (setq auto-mode-alist (cons '("\\.v$" . coq-mode) auto-mode-alist)) + (autoload 'coq-mode "coq" "Major mode for editing Coq vernacular." t) + EOS + end +end |
