From 0ded55eced0c1dbf01e558ffc6036d102a80bfdc Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Mon, 30 Jan 2023 20:40:27 +0100 Subject: dev-ml/tiny_httpd: rm dev-ml/seq deps Signed-off-by: Alfredo Tupone --- .../tiny_httpd/files/tiny_httpd-0.12-noseq.patch | 11 +++++ dev-ml/tiny_httpd/tiny_httpd-0.12-r1.ebuild | 50 ++++++++++++++++++++++ dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild | 49 --------------------- 3 files changed, 61 insertions(+), 49 deletions(-) create mode 100644 dev-ml/tiny_httpd/files/tiny_httpd-0.12-noseq.patch create mode 100644 dev-ml/tiny_httpd/tiny_httpd-0.12-r1.ebuild delete mode 100644 dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild (limited to 'dev-ml/tiny_httpd') diff --git a/dev-ml/tiny_httpd/files/tiny_httpd-0.12-noseq.patch b/dev-ml/tiny_httpd/files/tiny_httpd-0.12-noseq.patch new file mode 100644 index 000000000000..b35ba64f8d72 --- /dev/null +++ b/dev-ml/tiny_httpd/files/tiny_httpd-0.12-noseq.patch @@ -0,0 +1,11 @@ +--- a/src/dune 2023-01-30 20:28:23.578884847 +0100 ++++ b/src/dune 2023-01-30 20:28:33.523713488 +0100 +@@ -2,7 +2,7 @@ + (library + (name tiny_httpd) + (public_name tiny_httpd) +- (libraries threads seq) ++ (libraries threads) + (flags :standard -safe-string -warn-error -a+8) + (wrapped false)) + diff --git a/dev-ml/tiny_httpd/tiny_httpd-0.12-r1.ebuild b/dev-ml/tiny_httpd/tiny_httpd-0.12-r1.ebuild new file mode 100644 index 000000000000..957cfe61d316 --- /dev/null +++ b/dev-ml/tiny_httpd/tiny_httpd-0.12-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 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-lang/ocaml-4.08 + dev-ml/result:= + 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 )" + +PATCHES=( "${FILESDIR}"/${P}-noseq.patch ) + +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" +} diff --git a/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild b/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild deleted file mode 100644 index 890d8831cf38..000000000000 --- a/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# 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" -} -- cgit v1.2.3-65-gdbad