Skip to content

Commit fb4e0cb

Browse files
authored
Merge pull request ocaml#23503 from AndreasDahl/opam-publish-conf-protoc.4.4.0
Packages conf-protoc.4.4.0 and ocaml-protoc-plugin.4.4.0
2 parents f6fce75 + e111c6f commit fb4e0cb

File tree

2 files changed

+79
-0
lines changed
  • packages
    • conf-protoc/conf-protoc.4.4.0
    • ocaml-protoc-plugin/ocaml-protoc-plugin.4.4.0

2 files changed

+79
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
opam-version: "2.0"
2+
maintainer: "Issuu"
3+
authors: "Google"
4+
license: "BSD-3-Clause"
5+
homepage: "https://developers.google.com/protocol-buffers/"
6+
bug-reports: "https://github.com/protocolbuffers/protobuf/issues"
7+
dev-repo: "git+https://github.com/protocolbuffers/protobuf.git"
8+
build: [ "protoc" "--version" ]
9+
10+
depexts: [
11+
["libprotobuf-dev" "protobuf-compiler"] {os-family = "debian"}
12+
["libprotobuf-dev" "protobuf-compiler"] {os-family = "ubuntu"}
13+
["libprotobuf-devel" "protobuf-compiler"] {os-distribution = "mageia"}
14+
["protobuf-devel" "protobuf-compiler"] {os-distribution = "centos"}
15+
["protobuf-devel" "protobuf-compiler"] {os-distribution = "fedora"}
16+
["protobuf-devel" "protobuf-compiler"] {os-distribution = "rhel"}
17+
["protobuf" "protobuf-dev"] {os-family = "alpine"}
18+
["protobuf"] {os-family = "arch"}
19+
["protobuf-devel"] {os-family = "suse"}
20+
["protobuf"] {os = "freebsd"}
21+
["protobuf"] {os = "macos" & os-distribution = "homebrew"}
22+
]
23+
24+
x-ci-accept-failures: [
25+
"oraclelinux-7" # Package not available by default
26+
"oraclelinux-8" # Package not available by default
27+
]
28+
29+
available: (os-distribution != "ubuntu" | os-version >= "18.04") & (os-distribution != "centos" | os-version >= "8")
30+
synopsis: "Virtual package to install protoc compiler"
31+
description:
32+
"This package will install the protoc compiler if invoked via `opam depext`"
33+
flags: conf
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
opam-version: "2.0"
2+
maintainer: "Issuu"
3+
authors: "Anders Fugmann <[email protected]>"
4+
license: "APACHE-2.0"
5+
homepage: "https://github.com/issuu/ocaml-protoc-plugin"
6+
dev-repo: "git+https://github.com/issuu/ocaml-protoc-plugin"
7+
bug-reports: "https://github.com/issuu/ocaml-protoc-plugin/issues"
8+
doc: "https://issuu.github.io/ocaml-protoc-plugin/"
9+
build: [
10+
["dune" "subst"] {dev}
11+
["dune" "build" "-p" name "-j" jobs]
12+
["dune" "runtest" "-p" name "-j" jobs] {with-test & arch != "arm32" & arch != "x86_32"}
13+
]
14+
15+
depends: [
16+
"conf-protoc" {>= "1.0.0"}
17+
"dune" {>= "3.2"}
18+
"ocaml" {>= "4.08.0"}
19+
"ppx_expect" {with-test}
20+
"ppx_inline_test" {with-test}
21+
"ppx_deriving" {with-test}
22+
"conf-pkg-config" {build}
23+
]
24+
25+
26+
synopsis: "Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file"
27+
28+
description: """ The plugin generates ocaml type definitions,
29+
serialization and deserialization functions from a protobuf file.
30+
The types generated aims to create ocaml idiomatic types;
31+
- messages are mapped into modules
32+
- oneof constructs are mapped to polymorphic variants
33+
- enums are mapped to adt's
34+
- map types are mapped to assoc lists
35+
- all integer types are mapped to int by default (exact mapping is also possible)
36+
- all floating point types are mapped to float.
37+
- packages are mapped to nested modules
38+
"""
39+
url {
40+
src:
41+
"https://github.com/issuu/ocaml-protoc-plugin/archive/refs/tags/4.4.0.tar.gz"
42+
checksum: [
43+
"md5=33eec898e6b8b31ec1f8aed351a32b5d"
44+
"sha512=3f7515c430bad3706dbe2fcfdbe0d5b33984dd6300adfc3cbbe912f033c3868eaa65d916eabac91195506f02f151cabb4f8173b732b020673ac7df04f9e48172"
45+
]
46+
}

0 commit comments

Comments
 (0)