source: trunk/dports/devel/ocaml-postgresql/Portfile @ 111008

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

increase revision on ports depending on ocaml (which was updated to version 4.01.0)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 111008 2013-09-13 12:35:03Z mww@macports.org $
2
3PortSystem          1.0
4
5name                ocaml-postgresql
6version             1.18.0
7revision            3
8categories          devel ml
9maintainers         landonf openmaintainer
10license             LGPL-2.1
11description         OCaml-interface to the PostgreSQL-database
12long_description    This OCaml-library provides an interface to PostgreSQL \
13                    Almost all functionality available through the C-API \
14                    (libpq) is replicated in a type-safe way. This library \
15                    uses objects for representing database connections and \
16                    results of queries.
17
18homepage            https://bitbucket.org/mmottl/postgresql-ocaml
19platforms           darwin
20master_sites        https://bitbucket.org/mmottl/postgresql-ocaml/downloads/
21
22distname            postgresql-ocaml-${version}
23
24checksums           rmd160  c896128f9edd39e45b39201742bb1d8d52562bc6 \
25                    sha256  ec52fd469cf06aabd67d79cadedc153492d4b398351d10ee01b532d377403840
26
27depends_lib         port:ocaml \
28                    port:ocaml-findlib \
29                    port:postgresql83
30
31post-patch {
32    set ocaml_site_path [exec ocamlfind printconf destdir]
33
34    reinplace s|pg_config|${prefix}/lib/postgresql83/bin/pg_config|g \
35        ${worksrcpath}/Makefile.conf
36
37    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
38                    ${worksrcpath}/OCamlMakefile
39}
40
41pre-destroot {
42    set ocaml_site_path [exec ocamlfind printconf destdir]
43    file mkdir ${destroot}/${ocaml_site_path}
44    file mkdir ${destroot}/${ocaml_site_path}/stublibs
45}
46
47use_configure        no
Note: See TracBrowser for help on using the repository browser.