Files
gentoo/dev-ml/tiny_httpd/tiny_httpd-0.19.ebuild
Paul Zander 52a8a239b0 dev-ml/tiny_httpd: use get_makeopts_*
multiprocessing backward deprecated makeopts_* in <EAPI-9, breaking CI

Done via:
```
grep -RP '(?<!get_)makeopts_jobs'
sed -e 's/(\(makeopts_jobs\))/\(get_\1)/g' -i */*/*.ebuild eclass/*.eclass
sed -e 's/(\(makeopts_jobs\)/\(get_\1/g' -i */*/*.ebuild eclass/*.eclass

grep -RP '(?<!get_)makeopts_loadavg'
sed -e 's/(\(makeopts_loadavg\))/\(get_\1)/g' -i */*/*.ebuild eclass/*.eclass
sed -e 's/(\(makeopts_loadavg\)/\(get_\1/g' -i */*/*.ebuild eclass/*.eclass
```

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/426
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2026-03-29 21:21:02 +02:00

53 lines
1.1 KiB
Bash

# Copyright 1999-2026 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/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 $(get_makeopts_jobs) || die
}
src_install() {
dune_src_install tiny_httpd
use camlzip && dune_src_install "tiny_httpd_camlzip"
}