-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
42 lines (42 loc) · 1.45 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
opam-version: "2.0"
maintainer: "Dario Teixeira <dario.teixeira@nleyten.com>"
authors: ["Richard W.M. Jones <rich@annexia.org>"]
homepage: "http://pgocaml.forge.ocamlcore.org/"
bug-reports: "https://github.com/darioteixeira/pgocaml/issues"
dev-repo: "git+https://github.com/darioteixeira/pgocaml.git"
license: "LGPL-2.0-only WITH OCaml-LGPL-linking-exception"
build: [
["./configure" "--prefix" prefix]
[make]
]
remove: [["ocamlfind" "remove" "pgocaml"]]
depends: [
"ocaml" {< "4.06.0"}
"ocamlfind" {build}
"batteries" {>= "2.0.0"}
"pcre"
"calendar" {>= "2.00"}
"csv"
"camlp4"
"ocamlbuild" {build}
]
install: [make "install"]
synopsis: "Interface to PostgreSQL databases"
description: """
PG'OCaml provides an interface to PostgreSQL databases for OCaml
applications. It uses Camlp4 to extend the OCaml syntax, enabling one
to directly embed SQL statements inside the OCaml code. Moreover, it
uses the describe feature of PostgreSQL to obtain type information
about the database. This allows PG'OCaml to check at compile-time if
the program is indeed consistent with the database structure. This
type-safe database access is the primary advantage that PG'OCaml has
over other PostgreSQL bindings for OCaml."""
flags: light-uninstall
url {
src:
"https://download.ocamlcore.org/pgocaml/pgocaml/1.7.1/pgocaml-1.7.1.tgz"
checksum: [
"sha256=f7c843032455f83c8d1f15de9a7012441ab28e5ec6d06deabb2526859a4afb55"
"md5=107bf500ea85abadb7cfa012d1ac01e8"
]
}