-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
46 lines (46 loc) · 1.58 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
41
42
43
44
45
46
opam-version: "2.0"
maintainer: "ygrek@autistici.org"
homepage: "https://ygrek.org/p/ocaml-snappy"
dev-repo: "git+https://github.com/ygrek/ocaml-snappy.git"
bug-reports: "https://github.com/ygrek/ocaml-snappy/issues"
doc: ["https://ygrek.org/p/ocaml-snappy/api/index.html"]
license: "BSD-3-Clause"
authors: [ "ygrek" ]
tags: ["org:ygrek"]
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-configure" "--enable-tests" "--prefix" prefix]
{with-test}
["ocaml" "setup.ml" "-build"] {with-test}
["ocaml" "setup.ml" "-test"] {with-test}
["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: [["ocaml" "setup.ml" "-install"]]
remove: [["ocamlfind" "remove" "snappy"]]
depends: [
"ocaml" {< "4.09.0"}
"ocamlfind" {build}
"ocamlbuild" {build}
"conf-snappy"
]
patches: "myocamlbuild.ml.osx.patch" {os = "macos"}
synopsis: "Bindings to snappy - fast compression/decompression library"
flags: light-uninstall
url {
src: "https://ygrek.org/p/release/ocaml-snappy/ocaml-snappy-0.1.1.tar.gz"
checksum: [
"sha256=0b3874647c5b7cea534d67d54cad2d26a7f9305e9b262c8d62e1673a500509ef"
"md5=3ccc3380d50fca0eca2dc16e0c0d3245"
]
mirrors:
"https://github.com/ygrek/ocaml-snappy/releases/download/v0.1.1/ocaml-snappy-0.1.1.tar.gz"
}
extra-source "myocamlbuild.ml.osx.patch" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/snappy/myocamlbuild.ml.osx.patch"
checksum: [
"sha256=a8602706029be3ed6548c7ae13ece47a1b1874a169a0e11990f89964d9e32c63"
"md5=1c3d251fdaf29b2b5114681b5aa16eb5"
]
}