-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
58 lines (53 loc) · 1.5 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
57
58
opam-version: "2.0"
maintainer: "Anton Bachin <antonbachin@yahoo.com>"
authors: "Anton Bachin <antonbachin@yahoo.com>"
homepage: "https://github.com/aantron/namespaces"
bug-reports: "https://github.com/aantron/namespaces/issues"
dev-repo: "git+https://github.com/aantron/namespaces.git"
license: "BSD-3-Clause"
build: [make "build"]
install: [make "install"]
remove: ["ocamlfind" "remove" "namespaces"]
depends: [
"ocaml" {>= "4.02"}
"ocamlfind" {build}
"ocamlbuild" {build}
]
synopsis: "Turn directories into OCaml modules"
description: """
An Ocamlbuild plugin that turns directories tagged with "namespace" into a
module hierarchy. File names become scoped, so you can have the same filename in
multiple directories. So, if you have
server
|-- foo.ml
+-- bar.ml
client
|-- foo.ml
|-- bar.ml
|-- ui
| +-- reactive.ml
+-- client.ml
It is as if you had written
module Server =
struct
module Foo = (* server/foo.ml *)
module Bar = (* server/bar.ml *)
end
module Client =
struct
module Foo = (* client/foo.ml *)
module Bar = (* client/bar.ml *)
module Ui =
struct
module Reactive = (* client/ui/reactive.ml *)
end
include (* client/client.ml *)
end"""
flags: light-uninstall
url {
src: "https://github.com/aantron/namespaces/archive/0.5.tar.gz"
checksum: [
"sha256=545273995bd88db10ee4d6e5f5a9dc9746dc36e9af8f18f53df9ed0b39779e49"
"md5=75f2052cef90f22617e29d4e22928f4f"
]
}