diff options
Diffstat (limited to 'dev-ml/tiny_httpd')
-rw-r--r-- | dev-ml/tiny_httpd/Manifest | 3 | ||||
-rw-r--r-- | dev-ml/tiny_httpd/files/tiny_httpd-0.16-noseq.patch | 11 | ||||
-rw-r--r-- | dev-ml/tiny_httpd/tiny_httpd-0.16.ebuild | 50 |
3 files changed, 64 insertions, 0 deletions
diff --git a/dev-ml/tiny_httpd/Manifest b/dev-ml/tiny_httpd/Manifest index be08a1c4171d..0202bdedfc40 100644 --- a/dev-ml/tiny_httpd/Manifest +++ b/dev-ml/tiny_httpd/Manifest @@ -1,4 +1,7 @@ AUX tiny_httpd-0.12-noseq.patch 300 BLAKE2B 15089d5aa2e596b4c2280ebc6762ea0ea65a121134abe02ec5f6abcefb9997e3fc9348825e2a95b1262a1d08df2cf24e22ec3d7beed770079301bc8f0a160869 SHA512 58dcac15a28d83c13345236cf502845962871c89d903a45a43b98cd66f9bf3865146d2fe16c5119d55fa129229729639ae26d3457d6cef2f2fd917c18c2ee495 +AUX tiny_httpd-0.16-noseq.patch 376 BLAKE2B ac7b2995ff110b06c708e8b0386b8be340b326116a958b4d1a88e2a554b1db09b9b23902c5c6003b235f25b82f469e701ed6a840c1d50e9af6b33f4f47100130 SHA512 126c7e85b029ac7bd9e9a7fb63b256e9ca54479c0cbe61cffbccddbb51585a5a03b2a571918f441076b47ed7de1def278e227dc186520c382d7792730546394e DIST tiny_httpd-0.12.tar.gz 49124 BLAKE2B c3f407a605dabad1c710a696a3fca5dce04a75deb61e25e9ce572432e0d96cd3029628ea24d17d55a051d1d0f78aa1fd80797e7ff9c0bb7fc9d190e461784cd3 SHA512 99b4d01d4f4d138b122c689b8b3bc5043fc386d6686675311f625bf5fec72c6e1a7513712b00889fe17cd392b8c475440d4f89ee46392aff32ac6ccc39cefe09 +DIST tiny_httpd-0.16.tar.gz 66034 BLAKE2B 5bbbe87f48b19c2c8519d4c109e2b9eaef0ca5c42f77acdad8f6a216a23f59a68121d03d1ab95762999cb0f7089e0eee36ac0ed11151bbb72d4b9c5ab4314500 SHA512 fea483b931c1431117f7a1d3244749f856982e440d20b64a8d7c6fd841398eec3c7f91afaece707b5a35c0b332a06dde6464337aa1ac7b757f7952047981b130 EBUILD tiny_httpd-0.12-r1.ebuild 1023 BLAKE2B 0119f754c56bd69886a79e43bc6921379679d50929b707bbe89006c885bfaeca495f2884134f30a2763d7a678a7425229fea140827941580d0fc3425d844c8b7 SHA512 96a007caebfd466133d2bf0428d3559949e19bae54f7fed6f26e575ac6d892d44460235ab4459ecd5e8d3fa58b6312ca9847e9a59ffb23214fef2915bcf8f50e +EBUILD tiny_httpd-0.16.ebuild 1023 BLAKE2B 1b51a27a99e172f8aadd258f1376c3f5f3f6c047693c71f5ce05be13c6dbdc787f20a5d2a1d36b04b66fce7bf029268fa552575c994897f16df85b503b20adfb SHA512 a815c3d946cb9d86f19db0a14ba4f385f12ff3235aaea9031e25d69f0d6147aa3f0da6a4589be2de2c89d9a9cf35a54944bcc3887e3cb3633ecef29cde8985a6 MISC metadata.xml 645 BLAKE2B d251040ed807f6fd6da65c22022e2586dc0fb369e3458943e8e9acf524f9a85222193301e228e9663d53f98b7fe778a6dc30f6acd66d4a817c22f85e742d6b34 SHA512 e82e86033f230b7e4912c464c13276728b062b31f53ec97181737a1e76cb52a3d43995449eff44cb187f37f611e391048971d0f62f524157c882ce7d87a8a58a diff --git a/dev-ml/tiny_httpd/files/tiny_httpd-0.16-noseq.patch b/dev-ml/tiny_httpd/files/tiny_httpd-0.16-noseq.patch new file mode 100644 index 000000000000..8862a3361dc9 --- /dev/null +++ b/dev-ml/tiny_httpd/files/tiny_httpd-0.16-noseq.patch @@ -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))) diff --git a/dev-ml/tiny_httpd/tiny_httpd-0.16.ebuild b/dev-ml/tiny_httpd/tiny_httpd-0.16.ebuild new file mode 100644 index 000000000000..a0453cacbc4c --- /dev/null +++ b/dev-ml/tiny_httpd/tiny_httpd-0.16.ebuild @@ -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" +} |