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}%" "--enable-strings"]
  [make]
]

install: [[make "install"]]

remove: [["ocamlfind" "remove" "bap-strings"]]

depends: [
  "ocaml" {>= "4.04.1" & < "4.08.0"}
  "core_kernel" {>= "v0.11" & < "v0.12"}
  "oasis" {build & >= "0.4.7"}
]
synopsis: "Text utilities useful in Binary Analysis and Reverse Engineering"
description: """
The library provides several algorithms:

- Detector - that uses a maximum aposteriori likelihood estimator
  (MAP) to detect code that operates with textual data (aka Bayesian
  inference).

- Unscrambler - that is capable of finding all possible words, that
  can be built from a bag of letters in O(1).

- Scanner - a generic algorithm for finding strings of characters (a
  library variant of strings tool)"""
flags: light-uninstall
url {
  src: "https://github.com/BinaryAnalysisPlatform/bap/archive/v1.6.0.tar.gz"
  checksum: "md5=0ccf6571613c0666a37d154c7f70af4f"
  mirrors: "https://mirrors.aegis.cylab.cmu.edu/bap/1.6.0/v1.6.0.tar.gz"
}
