# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem  1.0

name        coq
version     8.2
platforms   darwin
categories  lang math
maintainers loria.fr:reilles
homepage    http://coq.inria.fr/
master_sites ${homepage}V${version}/files/

description Proof assistant for higher-order logic
long_description  \
  Coq is a proof assistant for higher-order logic,\
  which allows the development of computer programs consistent with \
  their formal specification. It is developed using Objective Caml and \
  Camlp4.  For more information, see <${homepage}>.

checksums           md5     077c027e0f69e8ea240206ceb0f0d003 \
                    sha1    cac79093f1639c309b400aced13c749f278abbea \
                    rmd160  fb8506fa0c469a428a43649a13819bc18949570e

use_parallel_build yes
configure.pre_args -prefix ${prefix}
configure.args     -emacslib ${prefix}/share/emacs/site-lisp/
depends_lib        bin:ocamlc:ocaml port:camlp5
build.target       world 
destroot.target    install 
destroot.destdir   COQINSTALLPREFIX=${destroot} \
                   FULLMANDIR=${destroot}${prefix}/share/man/

post-activate	{ ui_msg "The style file for LaTeX documentation,"
		  ui_msg "coqdoc.sty, is in ${prefix}/share/coq/latex."
		  ui_msg "Add this to your TEXINPUTS if you wish to"
		  ui_msg "use it."
		}
