opam-version: "2.0"
maintainer: "p.donadeo@gmail.com"
authors: [
  "Paolo Donadeo"
  "Sylvain Le Gall"
]
homepage: "https://pdonadeo.github.io/ocaml-lua/"
bug-reports: "https://github.com/pdonadeo/ocaml-lua/issues"
dev-repo: "git+https://github.com/pdonadeo/ocaml-lua.git"
license: "MIT"
build: [
  [
    "./configure"
    "--enable-docs"
    "--prefix"
    prefix
    "--docdir"
    "%{doc}%/ocaml-lua"
    "--libdir"
    "%{lib}%/ocaml-lua"
  ]
  [make]
  [make "doc"]
]
remove: [
    ["ocamlfind" "remove" "lua"]
    ["rm" "-R" "%{doc}%/ocaml-lua"]
]
depends: [
  "ocaml" {>= "4.02.1" & < "4.03"}
  "ocamlfind"
  "ocamlbuild" {build}
]
depexts: [
  ["liblua5.1-0-dev"] {os-family = "debian"}
  ["compat-lua-devel"] {os-distribution = "fedora"}
  ["lua-devel"] {os-distribution = "centos"}
  ["lua51"] {os = "macos" & os-distribution = "homebrew"}
  ["lua-dev"] {os-distribution = "alpine"}
  ["lua51-devel"] {os-family = "suse"}
]
install: [make "install"]
synopsis: "Lua bindings"
description: """
Lua is a powerful, light-weight programming language designed for
extending applications. It provides a good general purpose programming
language to replace DSL that don't really need to be specific.

This library provides bindings to Lua API which allows the application
to exchange data with Lua programs and also to extend Lua with OCaml
functions.

[Lua homepage](http://www.lua.org)"""
flags: light-uninstall
url {
  src: "https://github.com/pdonadeo/ocaml-lua/archive/v1.4.tar.gz"
  checksum: "md5=a075c9905e564dc39cbd8d21db4aacbd"
}
