source: trunk/dports/devel/caml-postgresql/Portfile @ 38562

Last change on this file since 38562 was 38562, checked in by ryandesign@…, 11 years ago

set svn:eol-style to native on all portfiles per current guidelines

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1# $Id: $
2
3PortSystem          1.0
4
5name                caml-postgresql
6version             1.8.2
7categories          devel ml
8maintainers         landonf openmaintainer
9description         OCaml-interface to the PostgreSQL-database
10long_description    This OCaml-library provides an interface to PostgreSQL \
11                    Almost all functionality available through the C-API
12                    (libpq) is replicated in a type-safe way. This library \
13                    uses objects for representing database connections and
14                    results of queries.
15
16homepage            http://www.ocaml.info/home/ocaml_sources.html
17platforms           darwin
18master_sites        http://www.ocaml.info/ocaml_sources/
19
20distname            postgresql-ocaml-${version}
21
22checksums           md5 2e08be3b40c67af09cdd713538d0dd50 \
23                    sha1 dcd6f0be8aa756c0233c53357ce937475c412f9c \
24                    rmd160 bf590dbeb48cb7632dcb1b6a1e5734ee75b88912
25
26depends_lib         port:ocaml \
27                    port:caml-findlib \
28                    port:postgresql83
29
30post-patch {
31    set ocaml_site_path [exec ocamlfind printconf destdir]
32
33    reinplace s|pg_config|${prefix}/lib/postgresql83/bin/pg_config|g \
34        ${worksrcpath}/Makefile.conf
35
36    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -ldconf ignore -destdir ${destroot}/${ocaml_site_path}|g" \
37                    ${worksrcpath}/OCamlMakefile
38}
39
40pre-destroot {
41    set ocaml_site_path [exec ocamlfind printconf destdir]
42    file mkdir ${destroot}/${ocaml_site_path}
43    file mkdir ${destroot}/${ocaml_site_path}/stub-libs
44}
45
46use_configure        no
Note: See TracBrowser for help on using the repository browser.