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

Last change on this file was 139469, checked in by jmr@…, 2 years 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: 1.7 KB
Line 
1# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           ocaml 1.0
5
6name                ocaml-curses
7version             1.0.3
8revision            5
9categories          devel ml
10platforms           darwin
11license             LGPL-2.1
12maintainers         mww openmaintainer
13description         provide curses / ncurses bindings for the OCaml language
14long_description    ${description}
15homepage            http://www.nongnu.org/ocaml-tmk/
16master_sites        http://download.savannah.gnu.org/releases/ocaml-tmk/
17checksums           rmd160  3645ef814e20efdaca254f3f6746c1ffe68363cc \
18                    sha256  990a55ff99223edaa04387802907b00c475b46dd921dc5f8c5ede15ac673656f
19
20depends_lib         port:ocaml port:ocaml-findlib port:ncurses
21
22configure {
23    file copy ${filespath}/config.h ${worksrcpath}
24    file copy ${filespath}/config.ml ${worksrcpath}
25    file copy ${filespath}/Makefile ${worksrcpath}
26    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile
27    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
28}
29
30#/usr/bin/ranlib: archive member: libcurses_stubs.a(__.SYMDEF SORTED) size too large (archive member extends past the end of the file)
31use_parallel_build  no
32
33destroot {
34    system "cd ${worksrcpath} && ${prefix}/bin/ocamlfind install curses -destdir ${destroot}${prefix}/lib/ocaml/site-lib -ldconf ignore curses.mli libcurses_stubs.a keys.cmo keys.cmi dllcurses_stubs.so curses.cmxa curses.a curses.cmx curses.cmi curses.cma META"
35    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
36    xinstall -m 644 -W ${worksrcpath} CHANGES COPYING ${destroot}${prefix}/share/doc/${name}
37}
38
39livecheck.type      regex
40livecheck.url       ${master_sites}
41livecheck.regex     ocaml-curses-(\[0-9.\]+)${extract.suffix}
42
Note: See TracBrowser for help on using the repository browser.