opam-version: "2.0"
maintainer: "https://github.com/ocaml/opam-repository/issues"
authors: ["Benjamin Geer"]
homepage: "https://forge.ocamlcore.org/projects/camltemplate/"
license: "GPL-2.0-or-later"
build: [
  ["./configure" "--prefix=%{lib}%"]
  [make]
  [make "opt"]
]
remove: [["ocamlfind" "remove" "camltemplate"]]
depends: ["ocaml" {< "4.06.0"} "ocamlfind"]
install: [
  [make "-C" "src" "install"]
  [make "-C" "doc" "install" "INSTALL_DIR=%{doc}%/camltemplate"]
]
synopsis: "Library for generating text from templates"
description: """
CamlTemplate is library for generating text from templates in
OCaml. It can be used to generate web pages, scripts, SQL
queries, XML documents and other sorts of text."""
flags: light-uninstall
url {
  src:
    "https://download.ocamlcore.org/camltemplate/camltemplate/camltemplate-1.0.2/camltemplate-1.0.2.tar.gz"
  checksum: "md5=b2fec2070e2480d80752251953be1bd1"
}
