-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
40 lines (40 loc) · 1.48 KB
/
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
40
opam-version: "2.0"
maintainer: "Vincent Jacques <vincent@vincent-jacques.net>"
authors: "Vincent Jacques <vincent@vincent-jacques.net>"
homepage: "https://github.com/jacquev6/JsOfOCairo"
bug-reports: "http://github.com/jacquev6/JsOfOCairo/issues/"
doc: "https://github.com/jacquev6/JsOfOCairo"
dev-repo: "git+https://github.com/jacquev6/JsOfOCairo.git"
build: [
"sh" "-c" "cd src; ocamlbuild -use-ocamlfind -no-plugin JsOfOCairo.cma"
]
install: [
["mkdir" "-p" "%{prefix}%/lib/JsOfOCairo"]
[
"cp"
"META"
"src/_build/JsOfOCairo.cmi"
"src/_build/JsOfOCairo.cma"
"%{prefix}%/lib/JsOfOCairo"
]
]
remove: ["ocamlfind" "remove" "JsOfOCairo"]
depends: [
"ocaml" {>= "4.02.2" & < "4.06.0"}
"ocamlfind" {build}
("js_of_ocaml" {>= "2.8" & < "3.0"}) |
("js_of_ocaml" {>= "3.0" & < "3.3"} "js_of_ocaml-ppx" {>= "3.0" & < "3.3"})
]
synopsis: "Library to reuse Cairo-based drawing code in web browsers"
description: """
JsOfOCairo is an OCaml (4.02.2+) library to reuse Cairo-based drawing code in web browsers.
It's an adapter, implementing (a reasonable subset of) the interface of [Cairo OCaml](https://github.com/Chris00/ocaml-cairo/)
targeting HTML5 canvas elements as exposed to OCaml by [js_of_ocaml](https://ocsigen.org/js_of_ocaml/) (2.8+)."""
flags: light-uninstall
url {
src: "https://github.com/jacquev6/JsOfOCairo/archive/1.0.0.tar.gz"
checksum: [
"sha256=aa9ad32fa90c62b1a0396c8a71f675ac2f903da8fcbc47021c3c9e444b5ae1fa"
"md5=bbe4011607f3735203092523c7609682"
]
}