···11+opam-version: "2.0"
22+33+maintainer: "hello@tweag.io"
44+authors: [ "Tweag" ]
55+66+homepage: "https://topiary.tweag.io/"
77+bug-reports: "https://github.com/tweag/topiary/issues"
88+dev-repo: "git+https://github.com/tweag/topiary.git"
99+1010+license: "MIT"
1111+depends: ["conf-rust-2021"]
1212+1313+build:[
1414+ [ "cargo" "build"
1515+ "--release"
1616+ "--package" "topiary-cli" ]
1717+ [ "sh" "make-topiary-wrapper.sh"
1818+ "--queries-dir" "%{share}%/topiary/queries"
1919+ "--topiary-wrapped" "%{bin}%/.topiary-wrapped/topiary"
2020+ "--output-file" "topiary-wrapper" ]
2121+]
2222+2323+install: [
2424+ [ "mkdir" "%{bin}%/.topiary-wrapped" ]
2525+ [ "cp" "target/release/topiary" "%{bin}%/.topiary-wrapped/topiary" ]
2626+ [ "cp" "topiary-wrapper" "%{bin}%/topiary" ]
2727+ [ "mkdir" "%{share}%/topiary" ]
2828+ [ "cp" "-R" "topiary/topiary-queries/queries" "%{share}%/topiary/queries" ]
2929+]
3030+3131+synopsis: "A formatter for OCaml based on the Topiary universal formatting engine"
3232+description: """
3333+Topiary is a tool in the Tree-sitter ecosystem, designed for formatter authors
3434+and formatter users. Authors can create a formatter without having to write
3535+their own engine or even their own parser. Users benefit from uniform code style
3636+and the convenience of using a single formatter tool across multiple languages.
3737+3838+Topiary is written in Rust and developed by Tweag.
3939+"""
4040+4141+url {
4242+ src: "https://github.com/tweag/topiary-opam/releases/download/v0.5.1/source-code-with-submodules.tar.xz"
4343+ checksum: [
4444+ "md5=50002771c10d4abcb5ee4c70ff0a4a78"
4545+ "sha512=b67213b53d1ba8a7dfa35493ff7993bda4a56215a4e5f09787e4eabefb9f1b5af9a55d9dad4e4d7c4462eedf9354953ce93fbb10d2d9bf06bb9ab237a690cb14"
4646+ ]
4747+}