source: trunk/dports/lang/ocaml/Portfile

Last change on this file was 139469, checked in by jmr@…, 16 months ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name                ocaml
6epoch               1
7version             4.02.2
8revision            1
9# When updating ocaml, also update ocaml-camlp4 and camlp5 to compatible versions
10# (c.f. #26769, #20219, #18292) or increase their revisions to rebuild them.
11set major_vers      [join [lrange [split ${version} .] 0 1] .]
12platforms           darwin
13maintainers         mww openmaintainer
14categories          lang ml
15description         Objective Caml is an implementation of the ML language
16license             {QPL LGPL}
17homepage            http://www.ocaml.org/
18master_sites        http://caml.inria.fr/pub/distrib/ocaml-${major_vers}/
19checksums           rmd160  f00ac72bd5a96b28a2ba6dca6b0f9c8c971d9497 \
20                    sha256  60f923988ab7ae023a0799f9699d7d7a476bf8207ee2c900f92c8288ea363085
21
22long_description \
23            Objective Caml is an implementation of the ML language, based on \
24            the Caml Light dialect extended with a complete class-based object \
25            system    and a powerful module system in the style of Standard ML.
26
27use_xz              yes
28
29depends_lib         port:ncurses
30
31use_parallel_build  no
32universal_variant   no
33
34set docdir          ${prefix}/share/doc/${name}
35
36# Configure.
37configure.pre_args  -prefix ${prefix}
38configure.args      -cc ${configure.cc} -as \"${configure.cc} -c\" -aspp \"${configure.cc} -c\" \ -no-graph
39
40# Building.
41build.target        world.opt
42build.cmd           "unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && ${build.cmd}"
43
44# Install.
45destroot.target     install
46destroot.destdir    BINDIR=${destroot}${prefix}/bin \
47                    LIBDIR=${destroot}${prefix}/lib/ocaml \
48                    MANDIR=${destroot}${prefix}/share/man
49
50post-destroot {
51    # Change "ld.conf" to remove ${destroot} in paths.
52    reinplace "s:${destroot}::g" ${destroot}${prefix}/lib/ocaml/ld.conf
53    xinstall -d ${destroot}${docdir}
54    xinstall -m 0644 -W ${worksrcpath} Changes LICENSE README ${destroot}${docdir}
55}
56
57# Variants.
58variant profile description {Enable profiling} {
59    configure.env-append CC="gcc -pg"
60}
61
62livecheck.type      regex
63livecheck.url       http://caml.inria.fr/download.en.html
64livecheck.regex     "ocaml-\[0-9\.]+/ocaml-(\[0-9\.\]+).tar"
Note: See TracBrowser for help on using the repository browser.