mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
dev-ml/tiny_httpd: new package, add 0.12
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
49
dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild
Normal file
49
dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user