commit: ec21a0a06c7db3e2d2197e1099d24a0cc420458f Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Sun Oct 20 17:48:14 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Sun Oct 20 17:48:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec21a0a0
dev-ml/tiny_httpd: add 0.17.0 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/tiny_httpd/Manifest | 1 + .../tiny_httpd/files/tiny_httpd-0.17.0-noseq.patch | 9 ++++ dev-ml/tiny_httpd/tiny_httpd-0.17.0.ebuild | 53 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/dev-ml/tiny_httpd/Manifest b/dev-ml/tiny_httpd/Manifest index e6f641205e00..fcec6b5c3309 100644 --- a/dev-ml/tiny_httpd/Manifest +++ b/dev-ml/tiny_httpd/Manifest @@ -1,2 +1,3 @@ DIST tiny_httpd-0.12.tar.gz 49124 BLAKE2B c3f407a605dabad1c710a696a3fca5dce04a75deb61e25e9ce572432e0d96cd3029628ea24d17d55a051d1d0f78aa1fd80797e7ff9c0bb7fc9d190e461784cd3 SHA512 99b4d01d4f4d138b122c689b8b3bc5043fc386d6686675311f625bf5fec72c6e1a7513712b00889fe17cd392b8c475440d4f89ee46392aff32ac6ccc39cefe09 DIST tiny_httpd-0.16.tar.gz 66034 BLAKE2B 5bbbe87f48b19c2c8519d4c109e2b9eaef0ca5c42f77acdad8f6a216a23f59a68121d03d1ab95762999cb0f7089e0eee36ac0ed11151bbb72d4b9c5ab4314500 SHA512 fea483b931c1431117f7a1d3244749f856982e440d20b64a8d7c6fd841398eec3c7f91afaece707b5a35c0b332a06dde6464337aa1ac7b757f7952047981b130 +DIST tiny_httpd-0.17.0.tar.gz 93730 BLAKE2B f5764bbc224ef3e0f2eaf25771935149ec86f38cdac8e19cc7114d361948f54d3fbbd2c3729a3e3043131b6c7461f6a00ac0d51d409672a242826fe9e1e849a5 SHA512 a891b7920c8b92f1c800e7add57bf1dea20bec3e364af66ea5dda5e46abd9d10dfe4d026a8d76c127761f63a9563df35473bd8df2e8b4f5ed692f7f6a3570f64 diff --git a/dev-ml/tiny_httpd/files/tiny_httpd-0.17.0-noseq.patch b/dev-ml/tiny_httpd/files/tiny_httpd-0.17.0-noseq.patch new file mode 100644 index 000000000000..a5bb9531cfc8 --- /dev/null +++ b/dev-ml/tiny_httpd/files/tiny_httpd-0.17.0-noseq.patch @@ -0,0 +1,9 @@ +--- a/src/dune 2024-10-20 18:15:24.137632115 +0200 ++++ b/src/dune 2024-10-20 18:15:39.144450132 +0200 +@@ -2,5 +2,5 @@ + (name tiny_httpd) + (public_name tiny_httpd) + (flags :standard -open Tiny_httpd_core) +- (libraries threads seq unix hmap tiny_httpd.core tiny_httpd.html ++ (libraries threads unix hmap tiny_httpd.core tiny_httpd.html + tiny_httpd.unix)) diff --git a/dev-ml/tiny_httpd/tiny_httpd-0.17.0.ebuild b/dev-ml/tiny_httpd/tiny_httpd-0.17.0.ebuild new file mode 100644 index 000000000000..f0947b7f0508 --- /dev/null +++ b/dev-ml/tiny_httpd/tiny_httpd-0.17.0.ebuild @@ -0,0 +1,53 @@ +# 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/hmap:= + dev-ml/iostream:=[ocamlopt?] + dev-ml/logs:=[ocamlopt?] + dev-ml/result:=[ocamlopt?] + camlzip? ( >=dev-ml/camlzip-1.06:=[ocamlopt?] ) +" +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" +}
