Skip to content

Commit 7febd54

Browse files
authored
Merge pull request #15 from avsm/to-dune
Port to dune and upgrade opam metadata to 2.0
2 parents c246df2 + 8bd1a27 commit 7febd54

13 files changed

+72
-67
lines changed

.travis.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ env:
88
global:
99
- PACKAGE="xenstore_transport"
1010
- PINS="xenstore_transport:. xenstore-tool:."
11+
- DISTRO="debian-stable"
1112
matrix:
12-
- PACKAGE="xenstore_transport" DISTRO="debian-stable" OCAML_VERSION="4.04.2"
13-
- PACKAGE="xenstore-tool" DISTRO="debian-stable" OCAML_VERSION="4.04.2"
13+
- PACKAGE="xenstore_transport" OCAML_VERSION="4.04"
14+
- PACKAGE="xenstore-tool" OCAML_VERSION="4.04"
15+
- PACKAGE="xenstore_transport" OCAML_VERSION="4.07"
16+
- PACKAGE="xenstore-tool" OCAML_VERSION="4.07"

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.0.1 (18-Jun-2019):
2+
* Upgrade build to dune from jbuilder (@avsm)
3+
* Test OCaml 4.07 in CI (@avsm)
4+
* Upgrade opam metadata to 2.0 format (@avsm)
5+
16
1.0.0 (07-Dec-2017):
27
* compile with -safe-string
38

bench/dune

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(executables
2+
(names xs_bench)
3+
(libraries xenstore_transport xenstore xenstore.unix lwt lwt.unix))

bench/jbuild

-4
This file was deleted.

cli/dune

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(executables
2+
(names xs_client_cli)
3+
(libraries lwt lwt.unix xenstore xenstore_transport)
4+
(flags :standard -safe-string))
5+
6+
(install
7+
(section bin)
8+
(package xenstore-tool)
9+
(files
10+
(xs_client_cli.exe as xenstore-tool)))

cli/jbuild

-10
This file was deleted.

dune-project

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
(lang dune 1.0)
2+
(name xenstore-tool)

lib/dune

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(library
2+
(name xenstore_transport)
3+
(public_name xenstore_transport)
4+
(libraries lwt xenstore xenstore.client lwt.unix)
5+
(wrapped false)
6+
(flags :standard -safe-string))

lib/jbuild

-7
This file was deleted.

test/dune

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(executables
2+
(names client_test server_test)
3+
(libraries xenstore_transport xenstore xenstore.unix oUnit))

test/jbuild

-4
This file was deleted.

xenstore-tool.opam

+18-21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
23
authors: [
34
"Christian Lindig"
45
"David Scott"
@@ -11,28 +12,24 @@ authors: [
1112
"Thomas Sanders"
1213
"Vincent Bernardoff"
1314
]
14-
maintainer: "[email protected]"
15-
homepage: "http://github.com/djs55/ocaml-xenstore-clients"
16-
bug-reports: "http://github.com/djs55/ocaml-xenstore-clients/issues"
17-
dev-repo: "http://github.com/djs55/ocaml-xenstore-clients.git"
18-
doc: "http://djs55.github.io/ocaml-xenstore-clients"
19-
license: "LGPL"
20-
21-
tags: [
22-
"org:mirage"
23-
"org:xapi-project"
24-
]
25-
build: [
26-
[ "jbuilder" "subst"] {pinned}
27-
[ "jbuilder" "build" "-p" name "-j" jobs ]
28-
]
29-
15+
license: "LGPL"
16+
tags: ["org:mirage" "org:xapi-project"]
17+
homepage: "http://github.com/xapi-project/ocaml-xenstore-clients"
18+
doc: "http://xapi-project.github.io/ocaml-xenstore-clients/"
19+
bug-reports: "http://github.com/xapi-project/ocaml-xenstore-clients/issues"
3020
depends: [
31-
"ocamlfind" {build}
32-
"jbuilder" {build & >="1.0+beta9"}
21+
"ocaml" {>= "4.04.0"}
22+
"dune" {build & >= "1.0"}
3323
"lwt"
3424
"xenstore" {>= "2.0.0"}
3525
"xenstore_transport"
3626
]
37-
38-
available: [ ocaml-version >= "4.04.0" ]
27+
build: [
28+
["dune" "subst"] {pinned}
29+
["dune" "build" "-p" name "-j" jobs]
30+
]
31+
dev-repo: "git+http://github.com/xapi-project/ocaml-xenstore-clients.git"
32+
synopsis: "Command line tool for interfacing with xenstore"
33+
description: """
34+
This is a CLI `xs` tool for interfacing with XenStore.
35+
"""

xenstore_transport.opam

+20-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
23
authors: [
34
"Christian Lindig"
45
"David Scott"
@@ -11,27 +12,27 @@ authors: [
1112
"Thomas Sanders"
1213
"Vincent Bernardoff"
1314
]
14-
maintainer: "[email protected]"
15-
homepage: "http://github.com/djs55/ocaml-xenstore-clients"
16-
bug-reports: "http://github.com/djs55/ocaml-xenstore-clients/issues"
17-
dev-repo: "http://github.com/djs55/ocaml-xenstore-clients.git"
18-
doc: "http://djs55.github.io/ocaml-xenstore-clients"
19-
license: "LGPL"
20-
21-
tags: [
22-
"org:mirage"
23-
"org:xapi-project"
24-
]
25-
build: [
26-
[ "jbuilder" "subst"] {pinned}
27-
[ "jbuilder" "build" "-p" name "-j" jobs ]
28-
]
29-
15+
license: "LGPL"
16+
tags: ["org:mirage" "org:xapi-project"]
17+
homepage: "http://github.com/xapi-project/ocaml-xenstore-clients"
18+
doc: "http://xapi-project.github.io/ocaml-xenstore-clients"
19+
bug-reports: "http://github.com/xapi-project/ocaml-xenstore-clients/issues"
3020
depends: [
21+
"ocaml" {>= "4.04.0"}
3122
"ocamlfind" {build}
32-
"jbuilder" {build & >="1.0+beta9"}
23+
"dune" {build & >= "1.0"}
3324
"lwt"
3425
"xenstore" {>= "2.0.0"}
3526
]
27+
build: [
28+
["dune" "subst"] {pinned}
29+
["dune" "build" "-p" name "-j" jobs]
30+
]
31+
dev-repo: "git+http://github.com/xapi-project/ocaml-xenstore-clients.git"
32+
synopsis: "low-level libraries for connecting to a xenstore service on a xen host."
33+
description: """
34+
These libraries contain the IO functions for communicating with a
35+
xenstore service on a xen host. One subpackage deals with regular Unix
36+
threads and another deals with Lwt co-operative threads.
37+
"""
3638

37-
available: [ ocaml-version >= "4.04.0" ]

0 commit comments

Comments
 (0)