source: trunk/dports/devel/ocaml-camomile/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# $Id: Portfile 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                ocaml-camomile
6version             0.8.3
7revision            4
8categories          devel ml
9maintainers         toots@rastageeks.org
10license             LGPL-2+
11description         OCaml module to convert strings to and from various encodings
12long_description    ${description}
13homepage            http://camomile.sf.net/
14platforms           darwin
15master_sites        sourceforge:camomile
16distname            camomile-${version}
17use_bzip2           yes
18
19checksums           sha1    9f2600010820689805b5ab6e4048217ea821d535 \
20                    rmd160  56651ff4625dbdd9876784c1369c5a6ed6b290a6
21
22depends_lib         port:ocaml port:ocaml-findlib
23
24# ocaml is not universal
25universal_variant   no
26
27configure.cflags    {}
28configure.cxxflags  {}
29configure.cppflags  {}
30configure.ldflags   {}
31configure.cxx       {}
32configure.objc      {}
33configure.cpp       {}
34configure.cc        {}
35
36build.args          LIBDIRS=${prefix}/lib
37use_parallel_build  no
38
39proc ocamlfind_destdir {} {
40    # only bother calculating this darn thing once
41    variable ocamlfind_destdir {}
42    variable destroot
43    variable prefix
44    if {![string length $ocamlfind_destdir]} {
45        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
46    }
47    return $ocamlfind_destdir
48}
49
50pre-destroot {
51  system "mkdir -p [ocamlfind_destdir]"
52  reinplace "s#ocamlfind install#ocamlfind install -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/Makefile
53  reinplace "s#\$(DATADIR)#${destroot}\$(DATADIR)#g" ${worksrcpath}/Makefile
54  reinplace "s#\$(BINDIR)#${destroot}\$(BINDIR)#g" ${worksrcpath}/Makefile
55}
56
57livecheck.type      regex
58livecheck.regex     "camomile-(.*?).tar.bz2"
Note: See TracBrowser for help on using the repository browser.