opam-version: "2.0"
maintainer: "zoggy@bat8.org"
authors: ["Maxence Guesdon"]
homepage: "http://zoggy.github.io/stog/"

license: "GPL-3.0-only"

doc: ["http://zoggy.github.io/stog/doc.html"]
dev-repo: "git+https://github.com/zoggy/stog.git"
bug-reports: "https://github.com/zoggy/stog/issues"

tags: ["publication" "xml" "documentation" "blog" "web" "website"]

build: [
  ["./configure" "--prefix" prefix]
  [make "all"]
]

install: [
  [make "install-lib" "install-share"]
]

remove: [["ocamlfind" "remove" "stog"]]
depends: [
  "ocaml" {>= "4.02.1"}
  "ocamlfind"
  "xmlm" {>= "1.1"}
  "xtmpl" {= "0.12"}
  "ocf" {>= "0.4.0"}
  "ocamlnet" {>= "3.6" & != "4.1.9"}
  "higlo" {>= "0.4"}
  "ppx_blob" {>= "0.1"}
]
depopts: [
  "js_of_ocaml"
  "xmldiff"
  "lwt"
  "websocket"
  "ojs-base"
  "sha"
]

synopsis:
  "A static web site compiler, handling blog posts, or XML document in general."
description: """
Main features:
- generate static XML/HTML documents: easy to deploy, less security problems,
- handling of blog posts, with dates, topics, keywords and associated RSS feeds,
- no new syntax,
- based on a XML rewrite engine allowing to apply substitutions (rewrite rules)
  on some tags. Some substitutions are pre-defined, and others can be defined
  in your documents or added by plugins. Content can then be written with
  semantic tags,
- support multi-language sites,
- a lot of predefined functions can be used to handle sectionning, table of
  contents, verified cross-references, ...,
- OCaml code can be interpreted at compilation time and the result included in
  the generated documents, which is nice to write tutorials on OCaml libraries,
- some plugins ease the inclusion of graphviz graphs, and pictures generated
  by Aysmptote or LaTeX,
- ..."""
flags: light-uninstall
extra-files: ["stog.install" "md5=dd45a8769ea4d237c8a5945c67192856"]
url {
  src: "http://zoggy.github.com/stog/stog-0.15.0.tar.gz"
  checksum: "md5=b21681f66efd00d53487f41fa86dd6e0"
}
