Skip to content

Commit

Permalink
Merge pull request #42 from avsm/to-dune
Browse files Browse the repository at this point in the history
Port to dune, opam 2.0
  • Loading branch information
avsm authored Feb 3, 2019
2 parents ac01fc3 + 1258679 commit 6a765de
Show file tree
Hide file tree
Showing 22 changed files with 95 additions and 90 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
*.swp
_build/
*.docdir
*.native
*.byte
*~
#*
*#
Expand Down
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
global:
- PACKAGE="xenstore"
matrix:
- DISTRO=alpine OCAML_VERSION=4.04.0
- DISTRO=alpine OCAML_VERSION=4.05.0
- DISTRO=alpine OCAML_VERSION=4.06.0
- DISTRO=alpine OCAML_VERSION=4.04
- DISTRO=alpine OCAML_VERSION=4.05
- DISTRO=alpine OCAML_VERSION=4.06
- DISTRO=alpine OCAML_VERSION=4.07
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.1.0 (2019-02-03)

* Upgrade opam metadata to 2.0 format (@avsm)
* Port build from jbuilder to Dune (@avsm)
* Test on OCaml 4.07 (@avsm)
* Remove topkg metadata in favour of dune-release (@avsm)

## 2.0.1 (2018-08-01)

* Improved efficiency of unmarshalling code
Expand Down
7 changes: 0 additions & 7 deletions README

This file was deleted.

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# xenstore - implementation of the XenStore protocol in OCaml

This repo contains:
1. a xenstore client library, a merge of the Mirage and XCP ones
2. a xenstore server library
3. a xenstore server instance which runs under Unix with libxc
4. a xenstore server instance which runs on mirage.

The client and the server libraries have sets of unit-tests.
6 changes: 6 additions & 0 deletions client_lwt/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(library
(name xenstore_client)
(public_name xenstore.client)
(wrapped false)
(libraries lwt xenstore)
(flags :standard -safe-string))
7 changes: 0 additions & 7 deletions client_lwt/jbuild

This file was deleted.

6 changes: 6 additions & 0 deletions client_unix/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(library
(name xenstore_unix)
(public_name xenstore.unix)
(wrapped false)
(libraries unix threads xenstore)
(flags :standard -safe-string))
7 changes: 0 additions & 7 deletions client_unix/jbuild

This file was deleted.

8 changes: 8 additions & 0 deletions core/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(library
(name xenstore)
(public_name xenstore)
(wrapped false)
(libraries cstruct)
(preprocess
(pps ppx_cstruct))
(flags :standard -safe-string))
9 changes: 0 additions & 9 deletions core/jbuild

This file was deleted.

11 changes: 11 additions & 0 deletions core_test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(executables
(names xs_test)
(libraries lwt lwt.unix xenstore oUnit)
(flags :standard -safe-string))

(alias
(name runtest)
(deps
(:< xs_test.exe))
(action
(run %{<})))
9 changes: 0 additions & 9 deletions core_test/jbuild

This file was deleted.

7 changes: 0 additions & 7 deletions doc/api.odocl

This file was deleted.

2 changes: 2 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(lang dune 1.0)
(name xenstore)
3 changes: 0 additions & 3 deletions pkg/pkg.ml

This file was deleted.

5 changes: 5 additions & 0 deletions server/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(library
(name xenstore_server)
(public_name xenstore.server)
(libraries lwt xenstore)
(flags :standard -safe-string))
6 changes: 0 additions & 6 deletions server/jbuild

This file was deleted.

2 changes: 1 addition & 1 deletion server/store.mli
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Name : sig

type t
(** The name of an entity which may be watched. Note that not all these
entities are stored in the xenstore tree (e.g. @introduceDomain) *)
entities are stored in the xenstore tree (e.g. [@introduceDomain]) *)

val introduceDomain: t
(** The special watch when a domain is created *)
Expand Down
11 changes: 11 additions & 0 deletions server_test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(executables
(names server_test)
(libraries lwt lwt.unix xenstore xenstore.server oUnit)
(flags :standard -safe-string))

(alias
(name runtest)
(deps
(:< server_test.exe))
(action
(run %{<})))
9 changes: 0 additions & 9 deletions server_test/jbuild

This file was deleted.

44 changes: 25 additions & 19 deletions xenstore.opam
Original file line number Diff line number Diff line change
@@ -1,30 +1,36 @@
opam-version: "1.2"
maintainer: "dave@recoil.org"
authors: [
opam-version: "2.0"
maintainer: "dave@recoil.org"
authors: [
"Vincent Hanquez"
"Thomas Gazagnaire"
"Dave Scott"
"Anil Madhavapeddy"
"Vincent Bernardoff"
]
homepage: "https://github.com/mirage/ocaml-xenstore"
bug-reports: "https://github.com/mirage/ocaml-xenstore/issues"
dev-repo: "https://github.com/mirage/ocaml-xenstore.git"
doc: "https://mirage.github.io/ocaml-xenstore"

build: [
["jbuilder" "subst" "-p" name "--name" name] {pinned}
["jbuilder" "build" "-p" name "-j" jobs]
]

build-test: ["jbuilder" "runtest" "-p" name]

homepage: "https://github.com/mirage/ocaml-xenstore"
doc: "https://mirage.github.io/ocaml-xenstore/"
bug-reports: "https://github.com/mirage/ocaml-xenstore/issues"
depends: [
"jbuilder" {build & >="1.0+beta9"}
"ocaml" {>= "4.04.0"}
"dune" {build & >= "1.0"}
"cstruct" {>= "3.2.0"}
"ppx_cstruct" {>= "3.2.0"}
"ppx_tools" {build}
"lwt"
"ounit" {test}
"ounit" {with-test}
]
build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
available: [ ocaml-version >= "4.04.0" ]
dev-repo: "git+https://github.com/mirage/ocaml-xenstore.git"
synopsis: "Xenstore protocol in pure OCaml"
description: """
This repo contains:
1. a xenstore client library, a merge of the Mirage and XCP ones
2. a xenstore server library
3. a xenstore server instance which runs under Unix with libxc
4. a xenstore server instance which runs on mirage.

The client and the server libraries have sets of unit-tests.
"""

0 comments on commit 6a765de

Please sign in to comment.