opam-version: "2.0"
maintainer: "Issuu"
authors: "Google"
license: "https://github.com/protocolbuffers/protobuf/blob/master/LICENSE"
homepage: "https://developers.google.com/protocol-buffers/"
bug-reports: "https://github.com/protocolbuffers/protobuf/issues"
dev-repo: "git+https://github.com/protocolbuffers/protobuf.git"
build: [ "protoc" "--version" ]

depexts: [
  ["protobuf-compiler"] {os-family = "debian"}
  ["protobuf-compiler"] {os-distribution = "mageia"}
  ["protobuf-compiler"] {os-distribution = "centos"}
  ["protobuf-compiler"] {os-distribution = "fedora"}
  ["protobuf-compiler"] {os-distribution = "rhel"}
  ["protobuf"]          {os-distribution = "alpine"}
  ["protobuf"]          {os-distribution = "arch"}
  ["protobuf-devel"]    {os-family = "suse"}
  ["protobuf"]          {os = "freebsd"}
  ["protobuf"]          {os = "macos" & os-distribution = "homebrew"}
]

available: os-distribution != "ubuntu" | os-version >= "18.04"
synopsis: "Virtual package to install protoc compiler"
description:
  "This package will install the protoc compiler if invoked via `opam depext`"
flags: conf
