Skip to content

Commit e8fa187

Browse files
avsmNathanReb
authored andcommitted
Port to dune for opam-overlays
Signed-off-by: Nathan Rebours <[email protected]> Signed-off-by: Anil Madhavapeddy <[email protected]>
1 parent 377c485 commit e8fa187

File tree

3 files changed

+43
-23
lines changed

3 files changed

+43
-23
lines changed

opam renamed to bos.opam

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
opam-version: "2.0"
2-
name: "bos"
3-
synopsis: """Basic OS interaction for OCaml"""
4-
maintainer: ["Daniel Bünzli <daniel.buenzl [email protected]>"]
5-
authors: ["The bos programmers"]
6-
homepage: "https://erratique.ch/software/bos"
7-
doc: "https://erratique.ch/software/bos/doc"
8-
dev-repo: "git+https://erratique.ch/repos/bos.git"
9-
bug-reports: "https://github.com/dbuenzli/bos/issues"
10-
license: ["ISC"]
11-
tags: ["os" "system" "cli" "command" "file" "path" "log" "unix"
12-
"org:erratique"]
13-
depends: ["ocaml" {>= "4.08.0"}
14-
"ocamlfind" {build}
15-
"ocamlbuild" {build}
16-
"topkg" {build & >= "1.0.3"}
17-
"base-unix"
18-
"rresult" {>= "0.7.0"}
19-
"astring"
20-
"fpath"
21-
"fmt" {>= "0.8.10"}
22-
"logs"
23-
"mtime" {test}]
24-
build: [["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"]]
2+
maintainer: "Daniel Bünzli <daniel.buenzl [email protected]>"
3+
authors: ["Daniel Bünzli <daniel.buenzl [email protected]>"]
4+
dev-repo: "git+https://github.com/dune-universe/bos.git"
5+
tags: [ "os" "system" "cli" "command" "file" "path" "log" "unix" "org:erratique" ]
6+
license: "ISC"
7+
build: [[ "dune" "build" "-p" name ]]
8+
depends: [
9+
"dune"
10+
"ocaml" {>= "4.01.0"}
11+
"base-unix"
12+
"rresult" {>= "0.4.0"}
13+
"astring"
14+
"fpath"
15+
"fmt" {>= "0.8.0"}
16+
"logs"
17+
"mtime" {with-test}
18+
]
19+
synopsis: "Basic OS interaction for OCaml"
2520
description: """
2621
Bos provides support for basic and robust interaction with the
2722
operating system in OCaml. It has functions to access the process

dune-project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
(lang dune 1.0)
2+
(name bos)

src/dune

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
(library
2+
(name bos)
3+
(public_name bos)
4+
(libraries rresult astring fpath fmt unix logs)
5+
(modules bos bos_base bos_cmd bos_log bos_os_arg bos_os_cmd bos_os_dir
6+
bos_os_env bos_os_file bos_os_path bos_os_tmp bos_os_u bos_pat)
7+
(flags :standard -w -6-27-33-39)
8+
(wrapped false))
9+
10+
(library
11+
(name bos_top)
12+
(public_name bos.top)
13+
(libraries compiler-libs.toplevel rresult.top astring.top fpath.top fmt.top
14+
logs.top bos)
15+
(modules bos_top)
16+
(wrapped false))
17+
18+
(library
19+
(name bos_setup)
20+
(public_name bos.setup)
21+
(libraries fmt.tty logs.fmt bos)
22+
(modules bos_setup)
23+
(wrapped false))

0 commit comments

Comments
 (0)