Skip to content

Commit

Permalink
chore: generate opam files from dune; require dune 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Dec 5, 2023
1 parent b2b6370 commit db90017
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 34 deletions.
28 changes: 27 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
(lang dune 2.0)
(lang dune 2.9)
(name tiny_httpd)
(generate_opam_files true)

(version 0.14)
(source (github c-cube/tiny_httpd))
(homepage https://github.com/c-cube/tiny_httpd/)
(license MIT)

(package
(name tiny_httpd)
(synopsis "Minimal HTTP server using threads")
(tags (http thread server tiny_httpd http_of_dir simplehttpserver))
(depends
seq
(ocaml (>= 4.05))
(odoc :with-doc)
(conf-libcurl :with-test)
(ptime :with-test)
(qcheck-core (and (>= 0.9) :with-test))))

(package
(name tiny_httpd_camlzip)
(synopsis "Interface to camlzip for tiny_httpd")
(depends
(tiny_httpd_camlzip (= :version))
(camlzip (>= 1.06))
(odoc :with-doc)))
43 changes: 25 additions & 18 deletions tiny_httpd.opam
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.14"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
synopsis: "Minimal HTTP server using threads"
license: "MIT"
synopsis: "Minimal HTTP server using good old threads"
build: [
["dune" "build" "@install" "-p" name "-j" jobs]
["dune" "build" "@doc" "-p" name "-j" jobs] {with-doc}
["dune" "runtest" "-p" name "-j" jobs] {with-test}
tags: [
"http" "thread" "server" "tiny_httpd" "http_of_dir" "simplehttpserver"
]
homepage: "https://github.com/c-cube/tiny_httpd/"
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
depends: [
"dune" { >= "2.0" }
"base-threads"
"result"
"dune" {>= "2.9"}
"seq"
"ocaml" { >= "4.05.0" }
"ocaml" {>= "4.05"}
"odoc" {with-doc}
"conf-libcurl" {with-test}
"ptime" {with-test}
"qcheck-core" {with-test & >= "0.9" }
"ptime" {with-test}
"qcheck-core" {>= "0.9" & with-test}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
tags: [ "http" "thread" "server" "tiny_httpd" "http_of_dir" "simplehttpserver" ]
homepage: "https://github.com/c-cube/tiny_httpd/"
doc: "https://c-cube.github.io/tiny_httpd/"
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
dev-repo: "git+https://github.com/c-cube/tiny_httpd.git"
post-messages: "tiny http server, with blocking IOs. Also ships with a `http_of_dir` program."
37 changes: 22 additions & 15 deletions tiny_httpd_camlzip.opam
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.14"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
license: "MIT"
synopsis: "Interface to camlzip for tiny_httpd"
build: [
["dune" "build" "@install" "-p" name "-j" jobs]
["dune" "build" "@doc" "-p" name] {with-doc}
["dune" "runtest" "-p" name] {with-test}
]
license: "MIT"
homepage: "https://github.com/c-cube/tiny_httpd/"
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
depends: [
"dune" { >= "2.0" }
"dune" {>= "2.9"}
"tiny_httpd_camlzip" {= version}
"camlzip" {>= "1.06"}
"tiny_httpd" { = version }
"ocaml" { >= "4.05.0" }
"odoc" {with-doc}
]
tags: [ "http" "thread" "server" "gzip" "camlzip" ]
homepage: "https://github.com/c-cube/tiny_httpd/"
doc: "https://c-cube.github.io/tiny_httpd/"
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/c-cube/tiny_httpd.git"

0 comments on commit db90017

Please sign in to comment.