Skip to content

Commit 8a9f4af

Browse files
committed
Update opam files to opam 2.0 format
1 parent ea76f00 commit 8a9f4af

12 files changed

Lines changed: 74 additions & 79 deletions

ppx_protocol_conv.descr

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

ppx_protocol_conv.opam

Lines changed: 19 additions & 7 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: "Anders Fugmann <anders@fugmann.net>"
33
authors: "Anders Fugmann"
44
homepage: "https://github.com/andersfugmann/ppx_protocol_conv"
@@ -7,18 +7,30 @@ bug-reports: "https://github.com/andersfugmann/ppx_protocol_conv/issues"
77
build: [
88
["dune" "subst"] {pinned}
99
["dune" "build" "-p" name "-j" jobs]
10+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
1011
]
11-
build-test: [["dune" "runtest" "-p" name "-j" jobs]]
12-
version: "3.1.1"
1312
depends: [
13+
"ocaml" {>= "4.04"}
1414
"base"
1515
"ppx_type_conv"
1616
"ppx_driver"
1717
"ppx_core"
1818
"dune" {build}
1919
"ppxlib"
20-
"ppx_sexp_conv" {test}
21-
"sexplib" {test}
22-
"ounit" {test}
20+
"ppx_sexp_conv" {with-test}
21+
"sexplib" {with-test}
22+
"ounit" {with-test}
2323
]
24-
available: [ ocaml-version >= "4.04" ]
24+
synopsis:
25+
"Ppx for generating serialisation and de-serialisation functions of ocaml types"
26+
description: """
27+
Ppx_protocol_conv generates code to serialise and de-serialise
28+
types. The ppx itself does not contain any protocol specific code,
29+
but relies on 'drivers' that defines serialisation and
30+
de-serialisation of basic types and structures.
31+
32+
Pre-defined drivers are available in separate packages:
33+
ppx_protocol_conv_json (Yojson.Safe.json)
34+
ppx_protocol_conv_msgpack (Msgpck.t)(Xml.xml)
35+
ppx_protocol_conv_xml-light (Xml.xml)
36+
ppx_protocol_conv_yaml (Yaml.t)"""

ppx_protocol_conv_json.descr

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

ppx_protocol_conv_json.opam

Lines changed: 11 additions & 8 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: "Anders Fugmann <anders@fugmann.net>"
33
authors: "Anders Fugmann"
44
homepage: "https://github.com/andersfugmann/ppx_protocol_conv"
@@ -7,15 +7,18 @@ bug-reports: "https://github.com/andersfugmann/ppx_protocol_conv/issues"
77
build: [
88
["dune" "subst"] {pinned}
99
["dune" "build" "-p" name "-j" jobs]
10+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
1011
]
11-
build-test: [["dune" "runtest" "-p" name "-j" jobs]]
12-
version: "3.1.1"
1312
depends: [
14-
"ppx_protocol_conv" { >= "3.1.1" }
13+
"ocaml" {>= "4.04.0"}
14+
"ppx_protocol_conv" {>= "3.1.1"}
1515
"yojson"
1616
"dune" {build}
17-
"ppx_sexp_conv" {test}
18-
"sexplib" {test}
19-
"ounit" {test}
17+
"ppx_sexp_conv" {with-test}
18+
"sexplib" {with-test}
19+
"ounit" {with-test}
2020
]
21-
available: [ ocaml-version >= "4.04.0" ]
21+
synopsis: "Json driver for Ppx_protocol_conv"
22+
description: """
23+
This package provides a driver for json (Yojson.Safe.json)
24+
serialization and de-serialization using the yojson library"""

ppx_protocol_conv_jsonm.descr

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

ppx_protocol_conv_jsonm.opam

Lines changed: 11 additions & 8 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: "Anders Fugmann <anders@fugmann.net>"
33
authors: "Anders Fugmann"
44
homepage: "https://github.com/andersfugmann/ppx_protocol_conv"
@@ -7,15 +7,18 @@ bug-reports: "https://github.com/andersfugmann/ppx_protocol_conv/issues"
77
build: [
88
["dune" "subst"] {pinned}
99
["dune" "build" "-p" name "-j" jobs]
10+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
1011
]
11-
build-test: [["dune" "runtest" "-p" name "-j" jobs]]
12-
version: "3.1.1"
1312
depends: [
14-
"ppx_protocol_conv" { >= "3.1.1" }
13+
"ocaml" {>= "4.04"}
14+
"ppx_protocol_conv" {>= "3.1.1"}
1515
"ezjsonm"
1616
"dune" {build}
17-
"ppx_sexp_conv" {test}
18-
"sexplib" {test}
19-
"ounit" {test}
17+
"ppx_sexp_conv" {with-test}
18+
"sexplib" {with-test}
19+
"ounit" {with-test}
2020
]
21-
available: [ ocaml-version >= "4.04" ]
21+
synopsis: "Jsonm driver for Ppx_protocol_conv"
22+
description: """
23+
This package provides a driver for json (Ezjson.value)
24+
serialization and de-serialization using the Ezjson library"""

ppx_protocol_conv_msgpack.descr

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

ppx_protocol_conv_msgpack.opam

Lines changed: 11 additions & 8 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: "Anders Fugmann <anders@fugmann.net>"
33
authors: "Anders Fugmann"
44
homepage: "https://github.com/andersfugmann/ppx_protocol_conv"
@@ -7,15 +7,18 @@ bug-reports: "https://github.com/andersfugmann/ppx_protocol_conv/issues"
77
build: [
88
["dune" "subst"] {pinned}
99
["dune" "build" "-p" name "-j" jobs]
10+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
1011
]
11-
build-test: [["dune" "runtest" "-p" name "-j" jobs]]
12-
version: "3.1.1"
1312
depends: [
14-
"ppx_protocol_conv" { >= "3.1.1" }
13+
"ocaml" {>= "4.04.0"}
14+
"ppx_protocol_conv" {>= "3.1.1"}
1515
"msgpck"
1616
"dune" {build}
17-
"ppx_sexp_conv" {test}
18-
"sexplib" {test}
19-
"ounit" {test}
17+
"ppx_sexp_conv" {with-test}
18+
"sexplib" {with-test}
19+
"ounit" {with-test}
2020
]
21-
available: [ ocaml-version >= "4.04.0" ]
21+
synopsis: "MessagePack driver for Ppx_protocol_conv"
22+
description: """
23+
This package provides a driver for message pack (Msgpck.t)
24+
serialization and deserialization using the msgpck library"""

ppx_protocol_conv_xml_light.descr

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

ppx_protocol_conv_xml_light.opam

Lines changed: 11 additions & 8 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: "Anders Fugmann <anders@fugmann.net>"
33
authors: "Anders Fugmann"
44
homepage: "https://github.com/andersfugmann/ppx_protocol_conv"
@@ -7,15 +7,18 @@ bug-reports: "https://github.com/andersfugmann/ppx_protocol_conv/issues"
77
build: [
88
["dune" "subst"] {pinned}
99
["dune" "build" "-p" name "-j" jobs]
10+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
1011
]
11-
build-test: [["dune" "runtest" "-p" name "-j" jobs]]
12-
version: "3.1.1"
1312
depends: [
14-
"ppx_protocol_conv" { >= "3.1.1" }
13+
"ocaml" {>= "4.04.0"}
14+
"ppx_protocol_conv" {>= "3.1.1"}
1515
"xml-light"
1616
"dune" {build}
17-
"ppx_sexp_conv" {test}
18-
"sexplib" {test}
19-
"ounit" {test}
17+
"ppx_sexp_conv" {with-test}
18+
"sexplib" {with-test}
19+
"ounit" {with-test}
2020
]
21-
available: [ ocaml-version >= "4.04.0" ]
21+
synopsis: "Xml driver for Ppx_protocol_conv"
22+
description: """
23+
This package provides a driver for xml (Xml.t) serialization and
24+
de-serialization using the xml-light library"""

0 commit comments

Comments
 (0)