source: trunk/dports/devel/ocaml-bitstring/Portfile

Last change on this file was 137992, checked in by mww@…, 2 years ago

inc. revision to rebuild library dependents of ocaml (ocaml update to version 4.02.2)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup ocaml 1.0
6
7name            ocaml-bitstring
8version         2.0.3
9revision        4
10platforms       macosx
11categories      devel ml
12maintainers     nomaintainer
13license         {GPL-2 LGPL-2.1+}
14description     bitstrings and bitstring matching for OCaml
15
16long_description \
17    The ocaml-bitstring project adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml. \
18    (This project was formerly known as bitmatch). You can use this module to both parse and generate binary formats, files and protocols. \
19    Bitstring handling is added as primitives to the language, making it exceptionally simple to use and very powerful.
20
21homepage        http://code.google.com/p/bitstring/
22master_sites    googlecode:bitstring
23
24checksums           md5     88ad0ee29af8b077e63896da23ec9054 \
25                    sha1    49b5ec677e251672686dd2886219bb7da30fda86 \
26                    rmd160  47af0dfd6617a8054252208807649f188e083b55
27
28patchfiles      patch-Makefile.in-ocamlfind.diff \
29                patch-Makefile.in-top_srcdir.diff
30
31depends_lib     port:ocaml port:ocaml-findlib
32
33use_parallel_build no
34
35test.run        yes
36
37post-activate {
38    set ldconf  [open ${prefix}/lib/ocaml/ld.conf r+]
39    set found   0
40
41    while {[gets ${ldconf} line] != -1} {
42        if {${line} eq "${prefix}/lib/ocaml/site-lib/bitstring"} {
43            set found 1
44            break
45        }
46    }
47
48    if {!${found}} {
49        puts ${ldconf} ${prefix}/lib/ocaml/site-lib/bitstring
50    }
51
52    close ${ldconf}
53}
54
55livecheck.type  regex
56livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.