Ticket #16177: Portfile

File Portfile, 1.2 KB (added by toots@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                ocaml-dtools
6version             0.1.6
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         library for writing daemons in OCaml
10long_description    dtools is a set of useful functions for writing daemon services in OCaml.
11homepage            http://savonet.sf.net/
12platforms           darwin
13master_sites        sourceforge:savonet
14
15checksums           md5 27b35769a3e407c2ce0aa6eb81551909 \
16                    sha1 af5ea968a2c933b69c557748ad237e5b30087e50 \
17                    rmd160 f963e6ec83ddcfef2f898b78f83327867d1ce394
18
19depends_lib         bin:camlc.opt:ocaml \
20  bin:ocamlfind:caml-findlib
21
22proc ocamlfind_destdir {} {
23    # only bother calculating this darn thing once
24    variable ocamlfind_destdir {}
25    variable destroot
26    variable prefix
27    if {![string length $ocamlfind_destdir]} {
28        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
29    }
30    return $ocamlfind_destdir
31}
32
33pre-destroot {
34  system "mkdir -p [ocamlfind_destdir]"
35  reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/src/OCamlMakefile
36}
37