-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
56 lines (56 loc) · 1.89 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
47
48
49
50
51
52
53
54
55
56
opam-version: "2.0"
maintainer: "Tony Aldridge <tony@angry-lawyer.com>"
authors: "Tony Aldridge <tony@angry-lawyer.com>"
homepage: "https://github.com/angrylawyer/commonjs_of_ocaml"
bug-reports: "https://github.com/angrylawyer/commonjs_of_ocaml/issues"
dev-repo: "git+https://github.com/angrylawyer/commonjs_of_ocaml.git"
license: "MIT"
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test}
["ocaml" "setup.ml" "-build"] {with-test}
["ocaml" "setup.ml" "-test"] {with-test}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
"ocaml"
"%{etc}%/commonjs_of_ocaml/_oasis_remove_.ml"
"%{etc}%/commonjs_of_ocaml"
]
depends: [
"ocaml" {>= "4.02"}
"js_of_ocaml" {>= "2.7" & < "3.0"}
"ocamlfind" {build}
"ocamlbuild" {build}
"cppo_ocamlbuild" {build}
"cppo" {build}
]
synopsis: "Import and export CommonJS modules in js_of_ocaml"
description: """
Helper PPX and functions for ease of interfacing with other CommonJS
modules when building a project through js_of_ocaml"""
url {
src:
"https://github.com/AngryLawyer/commonjs_of_ocaml/archive/v0.1.0.tar.gz"
checksum: [
"sha256=9c33361c27fb3ac3607684a8a9954d6e1dca05c9327ef8903af90d9cce16e817"
"md5=3e5dccd67a02ac7c01df182426c542f6"
]
}
extra-source "commonjs_of_ocaml.install" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/commonjs_of_ocaml/commonjs_of_ocaml.install"
checksum: [
"sha256=5b010bcd931b45da20d8004cb55ee72cc8193b8b0fe12070896fbdb73a00517b"
"md5=0d1b822c897681cf54b3e1aed52dda99"
]
}
extra-source "_oasis_remove_.ml" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/commonjs_of_ocaml/_oasis_remove_.ml"
checksum: [
"sha256=30bd6759edf0096e5353751a0603eaf693cb60ea7485aa9418e257dfdb97d916"
"md5=6100ca146fa97d2196eb49a2631d0796"
]
}