-
Notifications
You must be signed in to change notification settings - Fork 0
/
topiary.opam
39 lines (32 loc) · 1.26 KB
/
topiary.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
opam-version: "2.0"
maintainer: "[email protected]"
authors: [ "Tweag" ]
homepage: "https://topiary.tweag.io/"
bug-reports: "https://github.com/tweag/topiary/issues"
dev-repo: "git+https://github.com/tweag/topiary.git"
license: "MIT"
depends: ["conf-rust-2021"]
build:[
[ "cargo" "build"
"--release"
"--package" "topiary-cli" ]
[ "sh" "make-topiary-wrapper.sh"
"--queries-dir" "%{share}%/topiary/queries"
"--topiary-wrapped" "%{bin}%/.topiary-wrapped/topiary"
"--output-file" "topiary-wrapper" ]
]
install: [
[ "mkdir" "%{bin}%/.topiary-wrapped" ]
[ "cp" "target/release/topiary" "%{bin}%/.topiary-wrapped/topiary" ]
[ "cp" "topiary-wrapper" "%{bin}%/topiary" ]
[ "mkdir" "%{share}%/topiary" ]
[ "cp" "-R" "topiary/topiary-queries/queries" "%{share}%/topiary/queries" ]
]
synopsis: "A formatter for OCaml based on the Topiary universal formatting engine"
description: """
Topiary is a tool in the Tree-sitter ecosystem, designed for formatter authors
and formatter users. Authors can create a formatter without having to write
their own engine or even their own parser. Users benefit from uniform code style
and the convenience of using a single formatter tool across multiple languages.
Topiary is written in Rust and developed by Tweag.
"""