mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-05 19:00:32 -05:00
chore: generate opam files from dune; require dune 2.9
This commit is contained in:
parent
b2b637041b
commit
db90017ae4
3 changed files with 74 additions and 34 deletions
28
dune-project
28
dune-project
|
|
@ -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)))
|
||||
|
|
|
|||
|
|
@ -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: "simon.cruanes.2007@m4x.org"
|
||||
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."
|
||||
|
|
|
|||
|
|
@ -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: "simon.cruanes.2007@m4x.org"
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue