www-apps/kosuzu: add new version (1.4.7) with dev-ml/tiny_httpd as dependency

Signed-off-by: Shin'ya Minazuki <shinyoukai@chaotic.ninja>
This commit is contained in:
Shin'ya Minazuki 2026-08-25 12:10:38 -04:00
commit aa3423f0c7
5 changed files with 152 additions and 0 deletions

View file

@ -0,0 +1,51 @@
From 6200b0202f2a42752a861ae31ea582cf77223d03 Mon Sep 17 00:00:00 2001
From: Shin'ya Minazuki <shinyoukai@chaotic.ninja>
Date: Tue, 25 Aug 2026 11:52:34 -0400
Subject: [PATCH] Compile without using the seq library
---
src/core/dune | 1 -
src/dune | 1 -
src/html/dune | 2 +-
3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/core/dune b/src/core/dune
index 757eb8e5..9a8fafe7 100644
--- a/src/core/dune
+++ b/src/core/dune
@@ -4,7 +4,6 @@
(private_modules parse_ common_)
(libraries
threads
- seq
hmap
iostream
(select
diff --git a/src/dune b/src/dune
index 1e38b1ef..9e3e0bd3 100644
--- a/src/dune
+++ b/src/dune
@@ -4,7 +4,6 @@
(flags :standard -open Tiny_httpd_core)
(libraries
threads
- seq
unix
hmap
(re_export tiny_httpd.core)
diff --git a/src/html/dune b/src/html/dune
index a9cc3c54..ac337913 100644
--- a/src/html/dune
+++ b/src/html/dune
@@ -2,7 +2,7 @@
(name tiny_httpd_html)
(public_name tiny_httpd.html)
(flags :standard -open Tiny_httpd_core)
- (libraries seq tiny_httpd.core))
+ (libraries tiny_httpd.core))
(rule
(targets html_.ml)
--
2.54.0

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Shin'ya Minazuki</name>
<email>shinyoukai@chaotic.ninja</email>
</maintainer>
<use>
<flag name="camlzip">Interface to camlzip for tiny_httpd</flag>
</use>
<upstream>
<doc>https://c-cube.github.io/tiny_httpd/</doc>
<bugs-to>https://github.com/c-cube/tiny_httpd/issues</bugs-to>
<remote-id type="github">c-cube/tiny_httpd</remote-id>
<maintainer>
<name>Simon Cruanes</name>
<email>simon.cruanes.2007@m4x.org</email>
</maintainer>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1,53 @@
# Copyright 2026 Shin'ya Minzazuki
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}"
# Use stable keyword: www-apps/kosuzu now depends on it
KEYWORDS="amd64"
IUSE="camlzip ocamlopt test"
RDEPEND="
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 ) mirror"
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 $(get_makeopts_jobs) || die
}
src_install() {
dune_src_install tiny_httpd
use camlzip && dune_src_install "tiny_httpd_camlzip"
}