From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9821215808F for ; Wed, 27 Apr 2022 00:08:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67080E0809; Wed, 27 Apr 2022 00:08:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44D88E07D4 for ; Wed, 27 Apr 2022 00:08:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8BD9E341799 for ; Wed, 27 Apr 2022 00:08:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0581F42F for ; Wed, 27 Apr 2022 00:08:40 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1651018117.4dc9e3a7d17342e0808c2c8be849d2c1ea53bf24.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/tiny_httpd/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-ml/tiny_httpd/Manifest dev-ml/tiny_httpd/metadata.xml dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild X-VCS-Directories: dev-ml/tiny_httpd/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 4dc9e3a7d17342e0808c2c8be849d2c1ea53bf24 X-VCS-Branch: dev Date: Wed, 27 Apr 2022 00:08:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e2d8e32a-895e-4665-9a7f-f9adb9d3db20 X-Archives-Hash: 09e6483dcc59f91c4e8e8fba52878299 commit: 4dc9e3a7d17342e0808c2c8be849d2c1ea53bf24 Author: Alessandro Barbieri gmail com> AuthorDate: Wed Apr 27 00:06:02 2022 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Wed Apr 27 00:08:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4dc9e3a7 dev-ml/tiny_httpd: new package, add 0.12 Signed-off-by: Alessandro Barbieri gmail.com> dev-ml/tiny_httpd/Manifest | 1 + dev-ml/tiny_httpd/metadata.xml | 20 +++++++++++++ dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild | 49 ++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) diff --git a/dev-ml/tiny_httpd/Manifest b/dev-ml/tiny_httpd/Manifest new file mode 100644 index 000000000..528990da2 --- /dev/null +++ b/dev-ml/tiny_httpd/Manifest @@ -0,0 +1 @@ +DIST tiny_httpd-0.12.tar.gz 49124 BLAKE2B c3f407a605dabad1c710a696a3fca5dce04a75deb61e25e9ce572432e0d96cd3029628ea24d17d55a051d1d0f78aa1fd80797e7ff9c0bb7fc9d190e461784cd3 SHA512 99b4d01d4f4d138b122c689b8b3bc5043fc386d6686675311f625bf5fec72c6e1a7513712b00889fe17cd392b8c475440d4f89ee46392aff32ac6ccc39cefe09 diff --git a/dev-ml/tiny_httpd/metadata.xml b/dev-ml/tiny_httpd/metadata.xml new file mode 100644 index 000000000..0a42dd488 --- /dev/null +++ b/dev-ml/tiny_httpd/metadata.xml @@ -0,0 +1,20 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + Interface to camlzip for tiny_httpd + + + https://c-cube.github.io/tiny_httpd/ + https://github.com/c-cube/tiny_httpd/issues + c-cube/tiny_httpd + + Simon Cruanes + simon.cruanes.2007@m4x.org + + + diff --git a/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild b/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild new file mode 100644 index 000000000..890d8831c --- /dev/null +++ b/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 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-ml/result:= + dev-ml/seq:= + + 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 )" + +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" +}