chore: generate opam files from dune; require dune 2.9

This commit is contained in:
Simon Cruanes 2023-12-05 15:28:08 -05:00
parent b2b637041b
commit db90017ae4
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
3 changed files with 74 additions and 34 deletions

View file

@ -1,2 +1,28 @@
(lang dune 2.0) (lang dune 2.9)
(name tiny_httpd) (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)))

View file

@ -1,29 +1,36 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0" opam-version: "2.0"
version: "0.14" version: "0.14"
authors: ["Simon Cruanes"] synopsis: "Minimal HTTP server using threads"
maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT" license: "MIT"
synopsis: "Minimal HTTP server using good old threads" tags: [
build: [ "http" "thread" "server" "tiny_httpd" "http_of_dir" "simplehttpserver"
["dune" "build" "@install" "-p" name "-j" jobs]
["dune" "build" "@doc" "-p" name "-j" jobs] {with-doc}
["dune" "runtest" "-p" name "-j" jobs] {with-test}
] ]
homepage: "https://github.com/c-cube/tiny_httpd/"
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
depends: [ depends: [
"dune" { >= "2.0" } "dune" {>= "2.9"}
"base-threads"
"result"
"seq" "seq"
"ocaml" { >= "4.05.0" } "ocaml" {>= "4.05"}
"odoc" {with-doc} "odoc" {with-doc}
"conf-libcurl" {with-test} "conf-libcurl" {with-test}
"ptime" {with-test} "ptime" {with-test}
"qcheck-core" {with-test & >= "0.9" } "qcheck-core" {>= "0.9" & with-test}
"ptime" {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" 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."

View file

@ -1,23 +1,30 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0" opam-version: "2.0"
version: "0.14" version: "0.14"
authors: ["Simon Cruanes"]
maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT"
synopsis: "Interface to camlzip for tiny_httpd" synopsis: "Interface to camlzip for tiny_httpd"
build: [ license: "MIT"
["dune" "build" "@install" "-p" name "-j" jobs] homepage: "https://github.com/c-cube/tiny_httpd/"
["dune" "build" "@doc" "-p" name] {with-doc} bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
["dune" "runtest" "-p" name] {with-test}
]
depends: [ depends: [
"dune" { >= "2.0" } "dune" {>= "2.9"}
"tiny_httpd_camlzip" {= version}
"camlzip" {>= "1.06"} "camlzip" {>= "1.06"}
"tiny_httpd" { = version }
"ocaml" { >= "4.05.0" }
"odoc" {with-doc} "odoc" {with-doc}
] ]
tags: [ "http" "thread" "server" "gzip" "camlzip" ] build: [
homepage: "https://github.com/c-cube/tiny_httpd/" ["dune" "subst"] {dev}
doc: "https://c-cube.github.io/tiny_httpd/" [
bug-reports: "https://github.com/c-cube/tiny_httpd/issues" "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" dev-repo: "git+https://github.com/c-cube/tiny_httpd.git"