Skip to content

Commit 3fafb45

Browse files
committed
Switched to Dune lang 2.7
1 parent de69472 commit 3fafb45

File tree

4 files changed

+29
-18
lines changed

4 files changed

+29
-18
lines changed

dune-project

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
(lang dune 1.10)
1+
(lang dune 2.7)
22
(name postgresql)
33

44
(generate_opam_files true)
55

66
(source (github mmottl/postgresql-ocaml))
7-
(license "LGPL-2.1+ with OCaml linking exception")
7+
(license "LGPL-2.1-or-later with OCaml-LGPL-linking-exception")
88
(homepage "https://mmottl.github.io/postgresql-ocaml")
99
(documentation "https://mmottl.github.io/postgresql-ocaml/api")
1010

@@ -23,7 +23,6 @@
2323
Postgresql offers library functions for accessing PostgreSQL databases.")
2424
(depends
2525
(ocaml (>= 4.08))
26-
(dune (>= 1.10))
2726
dune-configurator
2827
(conf-postgresql :build)
2928
base-bytes

examples/dune

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(executables
22
(names async binary copy cursor dump populate prompt test_lo)
33
(libraries postgresql)
4+
(modes byte exe)
45
)

postgresql.opam

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
build: [
4-
["dune" "subst"] {pinned}
5-
["dune" "build" "-p" name "-j" jobs]
6-
["dune" "runtest" "-p" name "-j" jobs] {with-test}
7-
["dune" "build" "-p" name "@doc"] {with-doc}
8-
]
3+
synopsis: "Bindings to the PostgreSQL library"
4+
description:
5+
"Postgresql offers library functions for accessing PostgreSQL databases."
96
maintainer: ["Markus Mottl <[email protected]>"]
107
authors: [
118
"Alain Frisch <[email protected]>"
129
"Markus Mottl <[email protected]>"
1310
"Petter Urkedal <[email protected]>"
1411
]
15-
bug-reports: "https://github.com/mmottl/postgresql-ocaml/issues"
12+
license: "LGPL-2.1-or-later with OCaml-LGPL-linking-exception"
1613
homepage: "https://mmottl.github.io/postgresql-ocaml"
1714
doc: "https://mmottl.github.io/postgresql-ocaml/api"
18-
license: "LGPL-2.1+ with OCaml linking exception"
19-
dev-repo: "git+https://github.com/mmottl/postgresql-ocaml.git"
20-
synopsis: "Bindings to the PostgreSQL library"
21-
description:
22-
"Postgresql offers library functions for accessing PostgreSQL databases."
15+
bug-reports: "https://github.com/mmottl/postgresql-ocaml/issues"
2316
depends: [
17+
"dune" {>= "2.7"}
2418
"ocaml" {>= "4.08"}
25-
"dune" {>= "1.10"}
2619
"dune-configurator"
2720
"conf-postgresql" {build}
2821
"base-bytes"
22+
"odoc" {with-doc}
2923
]
24+
build: [
25+
["dune" "subst"] {dev}
26+
[
27+
"dune"
28+
"build"
29+
"-p"
30+
name
31+
"-j"
32+
jobs
33+
"@install"
34+
"@runtest" {with-test}
35+
"@doc" {with-doc}
36+
]
37+
]
38+
dev-repo: "git+https://github.com/mmottl/postgresql-ocaml.git"

src/dune

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
(library
22
(public_name postgresql)
3-
(c_names postgresql_stubs)
4-
(c_flags (:standard) (:include c_flags.sexp) -O2 -fPIC -DPIC)
3+
(foreign_stubs
4+
(language c)
5+
(names postgresql_stubs)
6+
(flags (:standard) (:include c_flags.sexp) -O2 -fPIC -DPIC))
57
(c_library_flags (:include c_library_flags.sexp))
68
(libraries threads bigarray)
79
)

0 commit comments

Comments
 (0)