Skip to content

Commit 788b8f3

Browse files
authored
dune-project: Move vhd-format.opam to be generated by dune, add yojson dependency (#6827)
Corresponding xs-opam PR: xapi-project/xs-opam#751
2 parents 0a0da4e + f29c213 commit 788b8f3

3 files changed

Lines changed: 46 additions & 47 deletions

File tree

dune-project

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,28 @@
541541
yojson))
542542

543543
(package
544-
(name vhd-format))
544+
(name vhd-format)
545+
(synopsis "Pure OCaml library to read/write VHD format data")
546+
(description "A pure OCaml library to read and write [vhd](http://en.wikipedia.org/wiki/VHD_(file_format)) format data, plus a simple command-line tool which allows vhd files to be interrogated, manipulated, format-converted and streamed to and from files and remote servers.")
547+
(authors "Jon Ludlam" "Dave Scott")
548+
(maintainers "Dave Scott <dave@recoil.org>")
549+
(homepage "https://github.com/mirage/ocaml-vhd")
550+
(tags
551+
("org:mirage" "org:xapi-project"))
552+
(depends
553+
(ocaml (>= "4.10.0"))
554+
(bigarray-compat (>= "1.1.0"))
555+
(cstruct (>= "6.0.0"))
556+
io-page
557+
yojson
558+
(rresult
559+
(>= "0.3.0"))
560+
(uuidm (>= "0.9.9"))
561+
stdlib-shims
562+
dune
563+
(ppx_cstruct (and :build (>= "3.0.0")))
564+
)
565+
)
545566

546567
(package
547568
(name vhd-format-lwt)

opam/vhd-format.opam

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,45 @@
11
# This file is generated by dune, edit dune-project instead
2-
x-maintenance-intent: ["(latest)"]
32
opam-version: "2.0"
4-
name: "vhd-format"
53
synopsis: "Pure OCaml library to read/write VHD format data"
6-
description: """
7-
A pure OCaml library to read and write
8-
[vhd](http://en.wikipedia.org/wiki/VHD_(file_format)) format data, plus a
9-
simple command-line tool which allows vhd files to be interrogated,
10-
manipulated, format-converted and streamed to and from files and remote
11-
servers.
12-
"""
13-
maintainer: "dave@recoil.org"
14-
authors: ["Dave Scott" "Jon Ludlam"]
4+
description:
5+
"A pure OCaml library to read and write [vhd](http://en.wikipedia.org/wiki/VHD_(file_format)) format data, plus a simple command-line tool which allows vhd files to be interrogated, manipulated, format-converted and streamed to and from files and remote servers."
6+
maintainer: ["Dave Scott <dave@recoil.org>"]
7+
authors: ["Jon Ludlam" "Dave Scott"]
158
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
169
tags: ["org:mirage" "org:xapi-project"]
1710
homepage: "https://github.com/mirage/ocaml-vhd"
18-
doc: "https://mirage.github.io/ocaml-vhd/"
19-
bug-reports: "https://github.com/mirage/ocaml-vhd/issues"
11+
bug-reports: "https://github.com/xapi-project/xen-api/issues"
2012
depends: [
2113
"ocaml" {>= "4.10.0"}
2214
"bigarray-compat" {>= "1.1.0"}
2315
"cstruct" {>= "6.0.0"}
2416
"io-page"
17+
"yojson"
2518
"rresult" {>= "0.3.0"}
2619
"uuidm" {>= "0.9.9"}
2720
"stdlib-shims"
28-
"dune" {>= "2.8"}
21+
"dune" {>= "3.20"}
2922
"ppx_cstruct" {build & >= "3.0.0"}
23+
"odoc" {with-doc}
24+
]
25+
build: [
26+
["dune" "subst"] {dev}
27+
[
28+
"dune"
29+
"build"
30+
"-p"
31+
name
32+
"-j"
33+
jobs
34+
"@install"
35+
"@runtest" {with-test}
36+
"@doc" {with-doc}
37+
]
3038
]
39+
dev-repo: "git+https://github.com/xapi-project/xen-api.git"
40+
x-maintenance-intent: ["(latest)"]
3141
available: os = "linux" | os = "macos"
32-
build: ["dune" "build" "-p" name "-j" jobs]
3342
depexts: ["linux-headers"] {os-distribution = "alpine"}
34-
dev-repo: "git+https://github.com/xapi-project/xen-api.git"
3543
url {
3644
src:
3745
"https://github.com/xapi-project/xen-api/archive/master.tar.gz"

opam/vhd-format.opam.template

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,5 @@
1-
opam-version: "2.0"
2-
name: "vhd-format"
3-
synopsis: "Pure OCaml library to read/write VHD format data"
4-
description: """
5-
A pure OCaml library to read and write
6-
[vhd](http://en.wikipedia.org/wiki/VHD_(file_format)) format data, plus a
7-
simple command-line tool which allows vhd files to be interrogated,
8-
manipulated, format-converted and streamed to and from files and remote
9-
servers.
10-
"""
11-
maintainer: "dave@recoil.org"
12-
authors: ["Dave Scott" "Jon Ludlam"]
13-
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
14-
tags: ["org:mirage" "org:xapi-project"]
15-
homepage: "https://github.com/mirage/ocaml-vhd"
16-
doc: "https://mirage.github.io/ocaml-vhd/"
17-
bug-reports: "https://github.com/mirage/ocaml-vhd/issues"
18-
depends: [
19-
"ocaml" {>= "4.10.0"}
20-
"bigarray-compat" {>= "1.1.0"}
21-
"cstruct" {>= "6.0.0"}
22-
"io-page"
23-
"rresult" {>= "0.3.0"}
24-
"uuidm" {>= "0.9.9"}
25-
"stdlib-shims"
26-
"dune" {>= "2.8"}
27-
"ppx_cstruct" {build & >= "3.0.0"}
28-
]
291
available: os = "linux" | os = "macos"
30-
build: ["dune" "build" "-p" name "-j" jobs]
312
depexts: ["linux-headers"] {os-distribution = "alpine"}
32-
dev-repo: "git+https://github.com/xapi-project/xen-api.git"
333
url {
344
src:
355
"https://github.com/xapi-project/xen-api/archive/master.tar.gz"

0 commit comments

Comments
 (0)