/
opam
65 lines (65 loc) · 1.83 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
opam-version: "2.0"
maintainer: "Markus Mottl <markus.mottl@gmail.com>"
authors: [ "Alain Frisch <alain.frisch@lexifi.com>"
"Markus Mottl <markus.mottl@gmail.com>"
"Petter Urkedal <paurkedal@gmail.com>" ]
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
homepage: "http://mmottl.github.io/postgresql-ocaml"
dev-repo: "git+https://github.com/mmottl/postgresql-ocaml.git"
bug-reports: "https://github.com/mmottl/postgresql-ocaml/issues"
tags: [ "clib:pq" ]
build: [
[
"ocaml"
"setup.ml"
"-configure"
"--prefix"
prefix
"--%{lablgtk:enable}%-lablgtk2"
]
["ocaml" "setup.ml" "-build"]
[
"ocaml"
"setup.ml"
"-configure"
"--enable-tests"
"--%{lablgtk:enable}%-lablgtk2"
] {with-test}
["ocaml" "setup.ml" "-build"] {with-test}
["ocaml" "setup.ml" "-test"] {with-test}
["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
["ocamlfind" "remove" "postgresql"]
]
depends: [
"ocaml" {>= "3.12" & < "5.0.0"}
"base-bigarray"
"base-bytes"
"base-threads"
"ocamlfind" {build & >= "1.5"}
"ocamlbuild" {build}
]
depopts: [
"lablgtk"
]
depexts: [
["libpq-dev"] {os-family = "debian"}
["postgresql-devel"] {os-distribution = "fedora"}
["postgresql-libs"] {os-distribution = "arch"}
["postgresql-dev"] {os-distribution = "alpine"}
["postgresql-devel"] {os-distribution = "centos"}
["postgresql"] {os-distribution = "gentoo"}
["postgresql-devel"] {os-family = "suse" | os-family = "opensuse"}
]
synopsis: "Bindings to the PostgreSQL library"
description: """
postgresql-ocaml offers library functions for accessing PostgreSQL
databases"""
flags: light-uninstall
url {
src:
"https://github.com/mmottl/postgresql-ocaml/releases/download/v3.2.1/postgresql-ocaml-3.2.1.tar.gz"
checksum: "md5=89f7c6b7dc8a877b6a3cb2f23191aac3"
}