1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ocaml-dtools |
---|
6 | version 0.1.6 |
---|
7 | categories devel ml |
---|
8 | maintainers toots@rastageeks.org |
---|
9 | description library for writing daemons in OCaml |
---|
10 | long_description dtools is a set of useful functions for writing daemon services in OCaml. |
---|
11 | homepage http://savonet.sf.net/ |
---|
12 | platforms darwin |
---|
13 | master_sites sourceforge:savonet |
---|
14 | |
---|
15 | checksums md5 27b35769a3e407c2ce0aa6eb81551909 \ |
---|
16 | sha1 af5ea968a2c933b69c557748ad237e5b30087e50 \ |
---|
17 | rmd160 f963e6ec83ddcfef2f898b78f83327867d1ce394 |
---|
18 | |
---|
19 | depends_lib bin:camlc.opt:ocaml \ |
---|
20 | bin:ocamlfind:caml-findlib |
---|
21 | |
---|
22 | proc 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 | |
---|
33 | pre-destroot { |
---|
34 | system "mkdir -p [ocamlfind_destdir]" |
---|
35 | reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/src/OCamlMakefile |
---|
36 | } |
---|
37 | |
---|