Skip to content

Commit db90017

Browse files
committed
chore: generate opam files from dune; require dune 2.9
1 parent b2b6370 commit db90017

File tree

3 files changed

+74
-34
lines changed

3 files changed

+74
-34
lines changed

dune-project

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
(lang dune 2.0)
1+
(lang dune 2.9)
22
(name tiny_httpd)
3+
(generate_opam_files true)
4+
5+
(version 0.14)
6+
(source (github c-cube/tiny_httpd))
7+
(homepage https://github.com/c-cube/tiny_httpd/)
8+
(license MIT)
9+
10+
(package
11+
(name tiny_httpd)
12+
(synopsis "Minimal HTTP server using threads")
13+
(tags (http thread server tiny_httpd http_of_dir simplehttpserver))
14+
(depends
15+
seq
16+
(ocaml (>= 4.05))
17+
(odoc :with-doc)
18+
(conf-libcurl :with-test)
19+
(ptime :with-test)
20+
(qcheck-core (and (>= 0.9) :with-test))))
21+
22+
(package
23+
(name tiny_httpd_camlzip)
24+
(synopsis "Interface to camlzip for tiny_httpd")
25+
(depends
26+
(tiny_httpd_camlzip (= :version))
27+
(camlzip (>= 1.06))
28+
(odoc :with-doc)))

tiny_httpd.opam

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
23
version: "0.14"
3-
authors: ["Simon Cruanes"]
4-
maintainer: "[email protected]"
4+
synopsis: "Minimal HTTP server using threads"
55
license: "MIT"
6-
synopsis: "Minimal HTTP server using good old threads"
7-
build: [
8-
["dune" "build" "@install" "-p" name "-j" jobs]
9-
["dune" "build" "@doc" "-p" name "-j" jobs] {with-doc}
10-
["dune" "runtest" "-p" name "-j" jobs] {with-test}
6+
tags: [
7+
"http" "thread" "server" "tiny_httpd" "http_of_dir" "simplehttpserver"
118
]
9+
homepage: "https://github.com/c-cube/tiny_httpd/"
10+
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
1211
depends: [
13-
"dune" { >= "2.0" }
14-
"base-threads"
15-
"result"
12+
"dune" {>= "2.9"}
1613
"seq"
17-
"ocaml" { >= "4.05.0" }
14+
"ocaml" {>= "4.05"}
1815
"odoc" {with-doc}
1916
"conf-libcurl" {with-test}
2017
"ptime" {with-test}
21-
"qcheck-core" {with-test & >= "0.9" }
22-
"ptime" {with-test}
18+
"qcheck-core" {>= "0.9" & with-test}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"--promote-install-files=false"
30+
"@install"
31+
"@runtest" {with-test}
32+
"@doc" {with-doc}
33+
]
34+
["dune" "install" "-p" name "--create-install-files" name]
2335
]
24-
tags: [ "http" "thread" "server" "tiny_httpd" "http_of_dir" "simplehttpserver" ]
25-
homepage: "https://github.com/c-cube/tiny_httpd/"
26-
doc: "https://c-cube.github.io/tiny_httpd/"
27-
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
2836
dev-repo: "git+https://github.com/c-cube/tiny_httpd.git"
29-
post-messages: "tiny http server, with blocking IOs. Also ships with a `http_of_dir` program."

tiny_httpd_camlzip.opam

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
23
version: "0.14"
3-
authors: ["Simon Cruanes"]
4-
maintainer: "[email protected]"
5-
license: "MIT"
64
synopsis: "Interface to camlzip for tiny_httpd"
7-
build: [
8-
["dune" "build" "@install" "-p" name "-j" jobs]
9-
["dune" "build" "@doc" "-p" name] {with-doc}
10-
["dune" "runtest" "-p" name] {with-test}
11-
]
5+
license: "MIT"
6+
homepage: "https://github.com/c-cube/tiny_httpd/"
7+
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
128
depends: [
13-
"dune" { >= "2.0" }
9+
"dune" {>= "2.9"}
10+
"tiny_httpd_camlzip" {= version}
1411
"camlzip" {>= "1.06"}
15-
"tiny_httpd" { = version }
16-
"ocaml" { >= "4.05.0" }
1712
"odoc" {with-doc}
1813
]
19-
tags: [ "http" "thread" "server" "gzip" "camlzip" ]
20-
homepage: "https://github.com/c-cube/tiny_httpd/"
21-
doc: "https://c-cube.github.io/tiny_httpd/"
22-
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
14+
build: [
15+
["dune" "subst"] {dev}
16+
[
17+
"dune"
18+
"build"
19+
"-p"
20+
name
21+
"-j"
22+
jobs
23+
"--promote-install-files=false"
24+
"@install"
25+
"@runtest" {with-test}
26+
"@doc" {with-doc}
27+
]
28+
["dune" "install" "-p" name "--create-install-files" name]
29+
]
2330
dev-repo: "git+https://github.com/c-cube/tiny_httpd.git"

0 commit comments

Comments
 (0)