opam-version: "2.0"
maintainer: "Ivan Gotovchits <ivg@ieee.org>"
authors: "BAP Team"
homepage: "https://github.com/BinaryAnalysisPlatform/bap/"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
dev-repo: "git://github.com/BinaryAnalysisPlatform/bap/"
license: "MIT"
build: [
  ["./configure"
                 "--prefix=%{prefix}%"
                 "--mandir=%{man}%"
                 "--enable-regular"]
  [make]
]

install: [
  [make "install"]
]

remove: [
  ["ocamlfind" "remove" "regular"]
]

depends: [
  "ocaml" {>= "4.08.0" }
  "core_kernel" {>= "v0.14" & < "v0.15"}
  "ppx_bap" {>= "v0.14" & < "v0.15"}
  "oasis" {build & >= "0.4.7"}
]
synopsis: "Library for regular data types"
description: """
Provides functors and typeclasses implementing functionality expected
for a regular data type, like i/o, containers, printing, etc.

In particular, the library includes:

- module Data that adds generic i/o routines for each regular data type.
- module Cache that adds caching service for data types
- module Regular that glues everything together
- module Opaque for regular but opaque data types
- module Seq that extends Core_kernel's sequence module
- module Bytes that provides a rich core-like interface for Bytes data type."""
flags: light-uninstall

url {
  src: "https://github.com/BinaryAnalysisPlatform/bap/archive/v2.2.0.tar.gz"
  checksum: "md5=5dbc6677d646bec59fd7414f23e88cf8"
  mirrors: "https://mirrors.aegis.cylab.cmu.edu/bap/2.2.0/v2.2.0.tar.gz"
}
