/
opam
31 lines (31 loc) · 1.06 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
opam-version: "2.0"
maintainer: "Maxime Ransan <maxime.ransan@gmail.com>"
authors: "Maxime Ransan <maxime.ransan@gmail.com>"
homepage: "https://github.com/mransan/ocaml-protoc"
bug-reports: "https://github.com/mransan/ocaml-protoc/issues"
license: "MIT"
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"
build: [
[make "lib.byte"]
[make "lib.native"] {ocaml:native}
[make "bin.byte"] {!ocaml:native}
[make "bin.native"] {ocaml:native}
]
install: [
[make "lib.install"]
[make "bin.install" "PREFIX=%{prefix}%" "BINDIR=%{bin}%"]
]
remove: [make "uninstall" "PREFIX=%{prefix}%" "BINDIR=%{bin}%"]
depends: [
"ocaml" {< "5.0"}
"ocamlfind" {build}
"ocamlbuild" {build}
"ppx_deriving_protobuf"
]
synopsis: "A Protobuf Compiler for OCaml"
description:
"'ocaml-protoc' is a compiler of Protobuf file (.proto) to OCaml code. The compiler generate OCaml types with associated decoding/encoding functions following the Protobuf format."
url {
src: "https://github.com/mransan/ocaml-protoc/archive/1.0.1.tar.gz"
checksum: "md5=f733055a6b0e636441975aa61d8660ad"
}