source: trunk/dports/devel/ocaml-ocamlnet/Portfile @ 136498

Last change on this file since 136498 was 136498, checked in by mww@…, 4 years ago

port ocaml-ocamlnet: force rebuild on new ocaml-pcre library by inc. revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 136498 2015-05-19 09:09:42Z mww@macports.org $
2
3PortSystem          1.0
4
5name                ocaml-ocamlnet
6version             4.0.3
7revision            1
8categories          devel ml
9maintainers         landonf openmaintainer
10license             {BSD GPL-2 LGPL-2}
11description         Internet protocols and helper data structures for OCaml.
12long_description    Internet protocols (http, cgi, email etc.) and helper \
13                    data structures (mail messages, character sets, etc.) \
14                    Ocamlnet implements a number of Internet protocols (http \
15                    client & server, cgi and cgi variants, SunRPC, FTP, POP, \
16                    SMTP) and is a strong base for web and Internet \
17                    programming.
18
19homepage            http://projects.camlcity.org/projects/ocamlnet.html
20platforms           darwin
21master_sites        http://download.camlcity.org/download/
22
23distname            ocamlnet-${version}
24
25checksums           rmd160  66a814b7167de880f2dcaaf8ff9c1f1fd3600a49 \
26                    sha256  d3b030715fe2c5f395ff9c08f0a8d3baa8830161300ba29e5aa8fabb92b182c1
27
28depends_lib         port:ocaml \
29                    port:ocaml-findlib \
30                    port:ocaml-pcre
31
32# ocaml is not universal
33universal_variant   no
34
35post-patch {
36    set ocaml_site_path [exec ocamlfind printconf destdir]
37    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
38                    ${worksrcpath}/Makefile
39}
40
41configure.pre_args
42configure.args      -enable-pcre
43
44build.target        all opt
45use_parallel_build  no
46
47pre-destroot {
48    set ocaml_site_path [exec ocamlfind printconf destdir]
49    file mkdir ${destroot}${ocaml_site_path}/stublibs
50    destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}${ocaml_site_path}"
51}
52
53livecheck.type      regex
54livecheck.regex     {ocamlnet-(\d+(?:\.\d+)*)\.tar}
Note: See TracBrowser for help on using the repository browser.