Skip to content

Commit 267f74a

Browse files
committed
Switched to dune, dune-release, and OPAM 2.0
1 parent b689cee commit 267f74a

File tree

17 files changed

+70
-84
lines changed

17 files changed

+70
-84
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 4.4.1 (2018-10-25)
2+
3+
* Switched to dune, dune-release, and OPAM 2.0
4+
5+
16
### 4.4.0 (2018-07-08)
27

38
* Added support for executing queries with binary results.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.PHONY: all clean doc
22

33
all:
4-
jbuilder build @install --dev
4+
dune build @install
55

66
clean:
7-
jbuilder clean
7+
dune clean
88

99
doc:
10-
jbuilder build --dev @doc
10+
dune build @doc

dune

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(env
2+
(dev (flags (:standard -w -9 -principal)))
3+
(release (ocamlopt_flags (:standard -O3)))
4+
)

dune-project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
(lang dune 1.1)
2+
(name postgresql)

examples/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TARGETS = $(addsuffix .bc, async binary cursor dump populate prompt test_lo)
33
.PHONY: all clean
44

55
all:
6-
@jbuilder build --dev $(TARGETS)
6+
@dune build $(TARGETS)
77

88
clean:
9-
@jbuilder clean
9+
@dune clean

examples/dune

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(executables
2+
(names async binary cursor dump populate prompt test_lo)
3+
(libraries postgresql)
4+
)

examples/jbuild

Lines changed: 0 additions & 10 deletions
This file was deleted.

jbuild-workspace

Lines changed: 0 additions & 1 deletion
This file was deleted.

postgresql.descr

Lines changed: 0 additions & 3 deletions
This file was deleted.

postgresql.opam

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
22
maintainer: "Markus Mottl <markus.mottl@gmail.com>"
33
authors: [
44
"Alain Frisch <alain.frisch@lexifi.com>"
@@ -8,34 +8,37 @@ authors: [
88
license: "LGPL-2.1+ with OCaml linking exception"
99
homepage: "https://mmottl.github.io/postgresql-ocaml"
1010
doc: "https://mmottl.github.io/postgresql-ocaml/api"
11-
dev-repo: "https://github.com/mmottl/postgresql-ocaml.git"
11+
dev-repo: "git+https://github.com/mmottl/postgresql-ocaml.git"
1212
bug-reports: "https://github.com/mmottl/postgresql-ocaml/issues"
1313

1414
build: [
15-
["jbuilder" "subst" "-p" name] {pinned}
16-
["jbuilder" "build" "-p" name "-j" jobs]
15+
["dune" "subst"] {pinned}
16+
["dune" "build" "-p" name "-j" jobs]
1717
]
1818

1919
depends: [
20-
"base-bytes"
20+
"ocaml" {>= "4.05"}
21+
"dune" {build & >= "1.4.0"}
2122
"base" {build}
2223
"stdio" {build}
23-
"configurator" {build}
24-
"jbuilder" {build & >= "1.0+beta10"}
24+
"base-bytes"
2525
]
2626

2727
depexts: [
28-
[["debian"] ["libpq-dev"]]
29-
[["freebsd"] ["database/postgresql96-client"]]
30-
[["openbsd"] ["database/postgresql96-client"]]
31-
[["ubuntu"] ["libpq-dev"]]
32-
[["centos"] ["postgresql-devel"]]
33-
[["rhel"] ["postgresql-devel"]]
34-
[["fedora"] ["postgresql-devel"]]
35-
[["alpine"] ["postgresql-dev"]]
36-
[["opensuse"] ["postgresql"]]
37-
[["osx" "homebrew"] ["postgresql"]]
38-
[["osx" "macports"] ["postgresql96"]]
28+
["libpq-dev"] {os-distribution = "debian"}
29+
["database/postgresql96-client"] {os-distribution = "freebsd"}
30+
["database/postgresql96-client"] {os-distribution = "openbsd"}
31+
["libpq-dev"] {os-distribution = "ubuntu"}
32+
["postgresql-devel"] {os-distribution = "centos"}
33+
["postgresql-devel"] {os-distribution = "rhel"}
34+
["postgresql-devel"] {os-distribution = "fedora"}
35+
["postgresql-dev"] {os-distribution = "alpine"}
36+
["postgresql"] {os-distribution = "opensuse"}
37+
["postgresql"] {os = "macos" & os-distribution = "homebrew"}
38+
["postgresql96"] {os = "macos" & os-distribution = "macports"}
3939
]
4040

41-
available: [ ocaml-version >= "4.04" ]
41+
synopsis: "Bindings to the PostgreSQL library"
42+
43+
description: """
44+
Postgresql offers library functions for accessing PostgreSQL databases."""

0 commit comments

Comments
 (0)