Ticket #16178: Portfile

File Portfile, 1.5 KB (added by toots@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                ocaml-duppy
6version             0.1.2
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         Advanced scheduler for OCaml
10long_description    Duppy is an event scheduler written for OCaml. \
11                    It allows the user to execute tasks according to \
12                    some events on unix sockets, or a given delay. \
13                    Several threaded queues can proceed tasks in parallel. \
14                    Tasks are processed according to an abstract notion of priority.
15homepage            http://www.rastageeks.org/duppy.html
16platforms           darwin
17master_sites        sourceforge:savonet
18
19checksums           md5 97e5154a8054fde1751c315a5aabaadb \
20                    sha1 407fe40d816a145f0682004a80c9fae0c38cfcd3 \
21                    rmd160 313dd2193e855cb843abd4de5c2709317675a6b9
22
23depends_lib         bin:camlc.opt:ocaml \
24  bin:ocamlfind:caml-findlib \
25  port:caml-pcre
26
27proc ocamlfind_destdir {} {
28    # only bother calculating this darn thing once
29    variable ocamlfind_destdir {}
30    variable destroot
31    variable prefix
32    if {![string length $ocamlfind_destdir]} {
33        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
34    }
35    return $ocamlfind_destdir
36}
37
38pre-destroot {
39  system "mkdir -p [ocamlfind_destdir]"
40  reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/src/OCamlMakefile
41}
42