Source

macports / devel / ocaml-res / Portfile

Full commit
# $Id: Portfile 88532 2012-01-04 02:11:35Z mww@macports.org $

PortSystem          1.0
PortGroup ocaml 1.0

name                ocaml-res
version             3.2.0
distname            release-${version}
worksrcdir          res-${distname}
categories          devel ml
maintainers         mww openmaintainer
license             LGPL-2.1
description         OCaml library for automatically resizing contiguous memory (arrays and strings)
long_description	${description}
homepage            http://www.ocaml.info/home/ocaml_sources.html
platforms           darwin
master_sites        http://hg.ocaml.info/release/res/archive/
checksums           md5     df4fde25845f364ddb687cdc79c00677 \
                    sha1    5f48566d7e134557239c34d4c968d50e2c2b451c \
                    rmd160  50e45fc35ed9f8e111725ea39f39415766eff219
use_bzip2           yes

livecheck.type      regex
livecheck.regex     "res/archive/release-(\\d+(?:\\.\\d+)*).tar.bz2"

depends_lib         port:ocaml port:ocaml-findlib

use_configure       no

build.env           PREFIX=${prefix}
use_parallel_build  no

set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib

destroot.env        OCAMLFIND_INSTFLAGS="-destdir $ocamlfind_destdir"