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:
parent
230b975b71
commit
aa3423f0c7
5 changed files with 152 additions and 0 deletions
51
dev-ml/tiny_httpd/files/tiny_httpd-0.21-noseq.patch
Normal file
51
dev-ml/tiny_httpd/files/tiny_httpd-0.21-noseq.patch
Normal 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
|
||||||
|
|
||||||
20
dev-ml/tiny_httpd/metadata.xml
Normal file
20
dev-ml/tiny_httpd/metadata.xml
Normal 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>
|
||||||
53
dev-ml/tiny_httpd/tiny_httpd-0.21.ebuild
Normal file
53
dev-ml/tiny_httpd/tiny_httpd-0.21.ebuild
Normal 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"
|
||||||
|
}
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
|
DIST kosuzu-1.4.7.tar.gz 28255 BLAKE2B 6a362c1cd2b4bfe480b247187c33f87e697967036873e051d40b03953ce06f1f3c583a4317ad41bdd390b0d7972e4e3cb50fc4abf61323f7c9a004f02c4484c2 SHA512 cd1f05e07df5e808f3a25dd5181e0657233a64b49c225b0104fce513bb86471fba75ac31685a377cdfe4e0bd654bd44569ca41848e44baf6cbbb61cbb410b136
|
||||||
DIST kosuzu-82.tar.gz 27528 BLAKE2B 5b6f958596015da2f8a7de705d8ad5e0a16ae69e91212ff943d538bdc6f9d69750549bb2825531b61e3a79f45f18499bd85444f28a0ceeb0759c4e06f47ac573 SHA512 143ddc0782df3f35e248955676e1be72f2930d8b21ded688319296b9c5e2f0757660c344e97982576530ffcbf6cbdb7403cc8203eb5b875a18a9e410dcc51ae4
|
DIST kosuzu-82.tar.gz 27528 BLAKE2B 5b6f958596015da2f8a7de705d8ad5e0a16ae69e91212ff943d538bdc6f9d69750549bb2825531b61e3a79f45f18499bd85444f28a0ceeb0759c4e06f47ac573 SHA512 143ddc0782df3f35e248955676e1be72f2930d8b21ded688319296b9c5e2f0757660c344e97982576530ffcbf6cbdb7403cc8203eb5b875a18a9e410dcc51ae4
|
||||||
|
|
|
||||||
27
www-apps/kosuzu/kosuzu-1.4.7.ebuild
Normal file
27
www-apps/kosuzu/kosuzu-1.4.7.ebuild
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Copyright 2026 Shin'ya Minazuki
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit dune
|
||||||
|
|
||||||
|
DESCRIPTION="Text archival and exchange"
|
||||||
|
HOMEPAGE="https://git.chaotic.ninja/shinyoukai/kosuzu"
|
||||||
|
SRC_URI="https://distfiles.chaotic.ninja/pub/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="EUPL-1.2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 arm arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||||
|
|
||||||
|
IUSE="ocamlopt"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-ml/cmdliner-1.3.0
|
||||||
|
dev-ml/msgpck
|
||||||
|
dev-ml/ocurl
|
||||||
|
dev-ml/text_parse
|
||||||
|
>=dev-ml/tiny_httpd-0.21
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
RESTRICT="mirror"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue