1 |
commit: 4dc9e3a7d17342e0808c2c8be849d2c1ea53bf24 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 27 00:06:02 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Apr 27 00:08:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4dc9e3a7 |
7 |
|
8 |
dev-ml/tiny_httpd: new package, add 0.12 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-ml/tiny_httpd/Manifest | 1 + |
13 |
dev-ml/tiny_httpd/metadata.xml | 20 +++++++++++++ |
14 |
dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild | 49 ++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 70 insertions(+) |
16 |
|
17 |
diff --git a/dev-ml/tiny_httpd/Manifest b/dev-ml/tiny_httpd/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..528990da2 |
20 |
--- /dev/null |
21 |
+++ b/dev-ml/tiny_httpd/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST tiny_httpd-0.12.tar.gz 49124 BLAKE2B c3f407a605dabad1c710a696a3fca5dce04a75deb61e25e9ce572432e0d96cd3029628ea24d17d55a051d1d0f78aa1fd80797e7ff9c0bb7fc9d190e461784cd3 SHA512 99b4d01d4f4d138b122c689b8b3bc5043fc386d6686675311f625bf5fec72c6e1a7513712b00889fe17cd392b8c475440d4f89ee46392aff32ac6ccc39cefe09 |
24 |
|
25 |
diff --git a/dev-ml/tiny_httpd/metadata.xml b/dev-ml/tiny_httpd/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..0a42dd488 |
28 |
--- /dev/null |
29 |
+++ b/dev-ml/tiny_httpd/metadata.xml |
30 |
@@ -0,0 +1,20 @@ |
31 |
+<?xml version="1.0" encoding="UTF8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>lssndrbarbieri@×××××.com</email> |
36 |
+ <name>Alessandro Barbieri</name> |
37 |
+ </maintainer> |
38 |
+ <use> |
39 |
+ <flag name="camlzip">Interface to camlzip for tiny_httpd</flag> |
40 |
+ </use> |
41 |
+ <upstream> |
42 |
+ <doc>https://c-cube.github.io/tiny_httpd/</doc> |
43 |
+ <bugs-to>https://github.com/c-cube/tiny_httpd/issues</bugs-to> |
44 |
+ <remote-id type="github">c-cube/tiny_httpd</remote-id> |
45 |
+ <maintainer> |
46 |
+ <name>Simon Cruanes</name> |
47 |
+ <email>simon.cruanes.2007@×××.org</email> |
48 |
+ </maintainer> |
49 |
+ </upstream> |
50 |
+</pkgmetadata> |
51 |
|
52 |
diff --git a/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild b/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild |
53 |
new file mode 100644 |
54 |
index 000000000..890d8831c |
55 |
--- /dev/null |
56 |
+++ b/dev-ml/tiny_httpd/tiny_httpd-0.12.ebuild |
57 |
@@ -0,0 +1,49 @@ |
58 |
+# Copyright 1999-2022 Gentoo Authors |
59 |
+# Distributed under the terms of the GNU General Public License v2 |
60 |
+ |
61 |
+EAPI=8 |
62 |
+ |
63 |
+inherit dune multiprocessing |
64 |
+ |
65 |
+DESCRIPTION="Minimal HTTP server with a small request router" |
66 |
+HOMEPAGE=" |
67 |
+ https://github.com/c-cube/tiny_httpd |
68 |
+ https://opam.ocaml.org/packages/tiny_httpd |
69 |
+" |
70 |
+SRC_URI="https://github.com/c-cube/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
71 |
+ |
72 |
+LICENSE="MIT" |
73 |
+SLOT="0/${PV}" |
74 |
+KEYWORDS="~amd64" |
75 |
+IUSE="camlzip ocamlopt test" |
76 |
+ |
77 |
+RDEPEND=" |
78 |
+ dev-ml/result:= |
79 |
+ dev-ml/seq:= |
80 |
+ |
81 |
+ camlzip? ( >=dev-ml/camlzip-1.06:= ) |
82 |
+" |
83 |
+DEPEND=" |
84 |
+ ${RDEPEND} |
85 |
+ test? ( |
86 |
+ dev-ml/qtest |
87 |
+ dev-ml/ounit2 |
88 |
+ dev-ml/ptime |
89 |
+ dev-ml/qcheck |
90 |
+ net-misc/curl |
91 |
+ ) |
92 |
+" |
93 |
+ |
94 |
+RESTRICT="!test? ( test )" |
95 |
+REQUIRED_USE="test? ( camlzip )" |
96 |
+ |
97 |
+src_compile() { |
98 |
+ local pkgs="tiny_httpd" |
99 |
+ use camlzip && pkgs="${pkgs},tiny_httpd_camlzip" |
100 |
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ dune_src_install tiny_httpd |
105 |
+ use camlzip && dune_src_install "tiny_httpd_camlzip" |
106 |
+} |