Skip to content

Commit

Permalink
rrd-transport: generate opam metadata using dune
Browse files Browse the repository at this point in the history
Use it to drop the dependency on ounit in the metadata

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
  • Loading branch information
psafont committed Jun 12, 2024
1 parent d87cc6a commit 0f1f5d8
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 74 deletions.
21 changes: 21 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,27 @@

(package
(name http-lib)
(synopsis "An HTTP required used by xapi")
(description "This library allows xapi to perform varios activities related to the HTTP protocol.")
(depends
(alcotest :with-test)
astring
(base64 (>= "3.1.0"))
rpclib
(safe-resources(= :version))
sha
(stunnel (= :version))
(uuid (= :version))
xapi-backtrace
(xapi-idl (= :version))
(xapi-log (= :version))
(xapi-stdext-date (= :version))
(xapi-stdext-pervasives (= :version))
(xapi-stdext-threads (= :version))
(xapi-tracing (= :version))
(xml-light2 (= :version))
(odoc :with-doc)
)
)

(package
Expand Down
67 changes: 35 additions & 32 deletions http-lib.opam
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
# This file is generated by dune, edit dune-project instead
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
opam-version: "2.0"
maintainer: "xen-api@lists.xen.org"
authors: "xen-api@lists.xen.org"
synopsis: "An HTTP required used by xapi"
description:
"This library allows xapi to perform varios activities related to the HTTP protocol."
maintainer: ["Xapi project maintainers"]
authors: ["xen-api@lists.xen.org"]
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api.git"
dev-repo: "git+https://github.com/xapi-project/xen-api.git"
build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
available: [ os = "linux" | os = "macos" ]
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"ocaml"
"dune"
"dune" {>= "3.0"}
"alcotest" {with-test}
"astring"
"base64" {>= "3.1.0"}
"rpclib"
"safe-resources"
"safe-resources" {= version}
"sha"
"stunnel"
"uuid"
"stunnel" {= version}
"uuid" {= version}
"xapi-backtrace"
"xapi-idl"
"xapi-log"
"xapi-stdext-date"
"xapi-stdext-pervasives"
"xapi-stdext-threads"
"xapi-stdext-unix"
"xapi-tracing"
"xml-light2"
"ounit2" {with-test & >= "2.0.0"}
"xapi-idl" {= version}
"xapi-log" {= version}
"xapi-stdext-date" {= version}
"xapi-stdext-pervasives" {= version}
"xapi-stdext-threads" {= version}
"xapi-tracing" {= version}
"xml-light2" {= version}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
synopsis: "Library required by xapi"
description: """
These libraries are provided for backwards compatibility only.
No new code should use these libraries."""
url {
src:
"https://github.com/xapi-project/xen-api/archive/master.tar.gz"
}
dev-repo: "git+https://github.com/xapi-project/xen-api.git"
40 changes: 0 additions & 40 deletions http-lib.opam.template

This file was deleted.

2 changes: 0 additions & 2 deletions ocaml/libs/http-lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
(libraries
dune-build-info
http_lib
ounit2
safe-resources
stunnel
threads.posix
Expand All @@ -85,7 +84,6 @@
dune-build-info
http_lib
httpsvr
ounit2
safe-resources
threads.posix
xapi-stdext-threads
Expand Down

0 comments on commit 0f1f5d8

Please sign in to comment.