OASISFormat:      0.4
Name:             pcre
Version:          7.2.3
Synopsis:         pcre-ocaml - bindings to the Perl Compatibility Regular Expressions library
Description:      pcre-ocaml offers library functions for string pattern matching and substitution, similar to the functionality offered by the Perl language.
Authors:          Markus Mottl <markus.mottl@gmail.com>
Copyrights:       (C) 1999-2016 Markus Mottl <markus.mottl@gmail.com>
Maintainers:      Markus Mottl <markus.mottl@gmail.com>
LicenseFile:      COPYING.txt
License:          LGPL-2.1+ with OCaml linking exception
OCamlVersion:     >= 3.12
FindlibVersion:   >= 1.5
Homepage:         http://mmottl.github.io/pcre-ocaml
#Categories:
#FilesAB:

Plugins:          META (0.4), StdFiles (0.4), DevFiles (0.4)
XStdFilesREADME:  false

BuildTools:       ocamldoc, ocamlbuild

Flag strict
  Description:    Strict compile-time checks
  Default:        true

Library pcre
  Path:            lib
  FindlibName:     pcre
  Modules:         Pcre
  InternalModules: Pcre_compat
  CSources:        pcre_stubs.c
  BuildDepends:    bytes
  CCOpt:          -g -O2 -fPIC -DPIC
  if flag(strict) && ccomp_type(cc)
    CCOpt+:       -Wall -pedantic -Wextra -Wunused -Wno-long-long -Wno-keyword-macro


# Examples

Flag examples
  Description:    Build examples
  Default:        true

Executable cloc
  Path:           examples/cloc
  MainIs:         cloc.ml
  Build$:         flag(examples)
  BuildDepends:   pcre
  Install:        false
  CompiledObject: best

Executable count_hash
  Path:           examples/count_hash
  MainIs:         count_hash.ml
  Build$:         flag(examples)
  BuildDepends:   pcre
  Install:        false
  CompiledObject: best

Executable pcregrep
  Path:           examples/pcregrep
  MainIs:         pcregrep.ml
  Build$:         flag(examples)
  BuildDepends:   pcre
  Install:        false
  CompiledObject: best

Executable subst
  Path:           examples/subst
  MainIs:         subst.ml
  Build$:         flag(examples)
  BuildDepends:   pcre
  Install:        false
  CompiledObject: best

#

Document API
  Title:                API reference for PCRE-OCaml
  Type:                 OCamlbuild (0.4)
  InstallDir:           $docdir/api
  XOCamlbuildPath:      .
  XOCamlbuildLibraries: pcre

SourceRepository head
  Type:       Git
  Location:   https://github.com/mmottl/pcre-ocaml.git
  Browser:    https://github.com/mmottl/pcre-ocaml
  Tag:        v$(pkg_version)
