dev-ml/tiny_httpd: add 0.16

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2024-07-01 18:39:54 +02:00
parent db8ae04501
commit 2dedbfbe38
3 changed files with 62 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST tiny_httpd-0.12.tar.gz 49124 BLAKE2B c3f407a605dabad1c710a696a3fca5dce04a75deb61e25e9ce572432e0d96cd3029628ea24d17d55a051d1d0f78aa1fd80797e7ff9c0bb7fc9d190e461784cd3 SHA512 99b4d01d4f4d138b122c689b8b3bc5043fc386d6686675311f625bf5fec72c6e1a7513712b00889fe17cd392b8c475440d4f89ee46392aff32ac6ccc39cefe09
DIST tiny_httpd-0.16.tar.gz 66034 BLAKE2B 5bbbe87f48b19c2c8519d4c109e2b9eaef0ca5c42f77acdad8f6a216a23f59a68121d03d1ab95762999cb0f7089e0eee36ac0ed11151bbb72d4b9c5ab4314500 SHA512 fea483b931c1431117f7a1d3244749f856982e440d20b64a8d7c6fd841398eec3c7f91afaece707b5a35c0b332a06dde6464337aa1ac7b757f7952047981b130

View File

@@ -0,0 +1,11 @@
--- a/src/dune 2024-07-01 18:38:15.116581859 +0200
+++ b/src/dune 2024-07-01 18:38:21.807507542 +0200
@@ -1,7 +1,7 @@
(library
(name tiny_httpd)
(public_name tiny_httpd)
- (libraries threads seq unix
+ (libraries threads unix
(select Tiny_httpd_log.ml from
(logs -> Tiny_httpd_log.logs.ml)
(-> Tiny_httpd_log.default.ml)))

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dune multiprocessing
DESCRIPTION="Minimal HTTP server with a small request router"
HOMEPAGE="
https://github.com/c-cube/tiny_httpd
https://opam.ocaml.org/packages/tiny_httpd
"
SRC_URI="https://github.com/c-cube/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="camlzip ocamlopt test"
RDEPEND="
>=dev-lang/ocaml-4.08
dev-ml/result:=
camlzip? ( >=dev-ml/camlzip-1.06:= )
"
DEPEND="
${RDEPEND}
test? (
dev-ml/qtest
dev-ml/ounit2
dev-ml/ptime
dev-ml/qcheck
net-misc/curl
)
"
RESTRICT="!test? ( test )"
REQUIRED_USE="test? ( camlzip )"
PATCHES=( "${FILESDIR}"/${P}-noseq.patch )
src_compile() {
local pkgs="tiny_httpd"
use camlzip && pkgs="${pkgs},tiny_httpd_camlzip"
dune build -p "${pkgs}" -j $(makeopts_jobs) || die
}
src_install() {
dune_src_install tiny_httpd
use camlzip && dune_src_install "tiny_httpd_camlzip"
}