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

Last change on this file was 142698, checked in by landonf@…, 20 months ago

Drop maintainership of (almost) all my ports, as I'm no longer using Mac OS X as my desktop OS.

The dict port here dates back to ~2002; it was the first port used as a test case when we were developing MacPorts.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 142698 2015-11-20 16:55:09Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                ocaml-postgresql
6version             1.18.0
7revision            4
8categories          devel ml
9maintainers         nomaintainer
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.