opam-version: "2.0"
maintainer: "michipili@gmail.com"
authors: "Michael Grünewald"
license: "LGPL-2.0-or-later"
homepage: "https://github.com/michipili/rashell"
bug-reports: "https://github.com/michipili/rashell/issues"
dev-repo: "git+https://github.com/michipili/rashell.git"
tags: [
  "shell"
]
build: [
  ["./configure" "--prefix" prefix]
  [conf-bmake:path "-I%{bsdowl:share}%" "all"]
]
install: [
  [conf-bmake:path "-I%{bsdowl:share}%" "install"]
]
remove: [
  ["ocamlfind" "remove" "rashell"]
  ["rm" "-rf" "%{share}%/doc/rashell"]
]
depends: [
  "ocaml" {>= "4.02.0"}
  "ocamlfind"
  "broken" {>= "0.4.2"}
  "conf-bmake"
  "bsdowl" {>= "3.0.0"}
  "lwt" {>= "2.5.0" & < "3.2.0"}
]
synopsis: "A resilient and replicant shell programming library"
description: """
As discussed by Lowell Jay Arthur in “Unix shell programming”
(2nd ed.), the Unix shell is a brillant tool for quickly
designing prototypes.  Unluckily, error management is very
difficult in the shell.  Most interfaces to the Unix shell found in
programming languages share this fragile optimism, which makes
impossible to write maintainable and resilient programs.

Rashell defines primitives which combine ease of use with the ability
to write maintainable and resilient programs leveraging the full power
of Unix.  These primitives implements common patterns to interact with
Unix utilities as subprocesses. These patterns either yield a string
or a stream of lines, which will also adequately report error
conditions on subprocesses.

Rashell is based on the excellent Lwt library and its Lwt_process
module.

WWW: https://github.com/michipili/rashell"""
flags: light-uninstall
url {
  src:
    "https://github.com/michipili/rashell/releases/download/v0.1.0/rashell-0.1.0.tar.xz"
  checksum: "md5=99665f27fb15d6fa1baea348a89e2dff"
}
