1 |
commit: 31358a69f3217c1aedbe88eeed295118dabeeceb |
2 |
Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de> |
3 |
AuthorDate: Sun Jun 26 09:57:33 2022 +0000 |
4 |
Commit: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de> |
5 |
CommitDate: Sun Jun 26 09:58:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=31358a69 |
7 |
|
8 |
net-libs/ulfius: new package, add 2.7.10 |
9 |
|
10 |
Web Framework for REST Applications in C. |
11 |
|
12 |
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de> |
13 |
|
14 |
net-libs/ulfius/Manifest | 1 + |
15 |
net-libs/ulfius/metadata.xml | 27 +++++++++++++++++ |
16 |
net-libs/ulfius/ulfius-2.7.10.ebuild | 56 ++++++++++++++++++++++++++++++++++++ |
17 |
3 files changed, 84 insertions(+) |
18 |
|
19 |
diff --git a/net-libs/ulfius/Manifest b/net-libs/ulfius/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000..15482fa5c |
22 |
--- /dev/null |
23 |
+++ b/net-libs/ulfius/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST ulfius-2.7.10.tar.gz 419473 BLAKE2B 8241f9e861bbf1e393e81c24453e670adc1923ae959ec4231a1c0b3833a7e85c655b08c771cb3497331a40df4788b6118de005f13d7c5f2df309d8f748276868 SHA512 7ecbaa6cf4329b12c45a9c8d50c7781327a03de2c9226db371b27b7bcba20738e99b2af26fb845fed74b61a9b6867f984dcee70d1addbf3fe40941537be572e1 |
26 |
|
27 |
diff --git a/net-libs/ulfius/metadata.xml b/net-libs/ulfius/metadata.xml |
28 |
new file mode 100644 |
29 |
index 000000000..5e9dfd182 |
30 |
--- /dev/null |
31 |
+++ b/net-libs/ulfius/metadata.xml |
32 |
@@ -0,0 +1,27 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>kurt@×××××××××××××.de</email> |
38 |
+ <name>Kurt Kanzenbach</name> |
39 |
+ </maintainer> |
40 |
+ <longdescription lang="en"> |
41 |
+ Web Framework for REST Applications in C. |
42 |
+ |
43 |
+ Based on GNU Libmicrohttpd for the backend web server, Jansson for the json |
44 |
+ manipulation library, and Libcurl for the http/smtp client API. |
45 |
+ |
46 |
+ Used to facilitate creation of web applications in C programs with a small |
47 |
+ memory footprint, as in embedded systems applications. |
48 |
+ |
49 |
+ One can create webservices in HTTP or HTTPS mode, stream data, or implement |
50 |
+ server websockets. |
51 |
+ </longdescription> |
52 |
+ <use> |
53 |
+ <flag name="jansson">Jansson support for JSON</flag> |
54 |
+ <flag name="websocket">websocket support</flag> |
55 |
+ </use> |
56 |
+ <upstream> |
57 |
+ <remote-id type="github">babelouest/ulfius</remote-id> |
58 |
+ </upstream> |
59 |
+</pkgmetadata> |
60 |
|
61 |
diff --git a/net-libs/ulfius/ulfius-2.7.10.ebuild b/net-libs/ulfius/ulfius-2.7.10.ebuild |
62 |
new file mode 100644 |
63 |
index 000000000..e5d9c08a2 |
64 |
--- /dev/null |
65 |
+++ b/net-libs/ulfius/ulfius-2.7.10.ebuild |
66 |
@@ -0,0 +1,56 @@ |
67 |
+# Copyright 1999-2022 Gentoo Authors |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+ |
70 |
+EAPI=8 |
71 |
+ |
72 |
+inherit cmake |
73 |
+ |
74 |
+DESCRIPTION="HTTP Framework for REST Applications in C" |
75 |
+HOMEPAGE="https://github.com/babelouest/ulfius/" |
76 |
+SRC_URI="https://github.com/babelouest/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="LGPL-2.1" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64 ~x86" |
81 |
+IUSE="curl doc jansson ssl websocket" |
82 |
+RESTRICT="test" |
83 |
+ |
84 |
+BDEPEND=" |
85 |
+ virtual/pkgconfig |
86 |
+" |
87 |
+DEPEND=" |
88 |
+ curl? ( net-misc/curl ) |
89 |
+ doc? ( app-doc/doxygen ) |
90 |
+ jansson? ( dev-libs/jansson:= ) |
91 |
+ ssl? ( net-libs/gnutls:= ) |
92 |
+ net-libs/libmicrohttpd:= |
93 |
+ net-libs/orcania |
94 |
+ sys-libs/zlib |
95 |
+" |
96 |
+RDEPEND=" |
97 |
+ ${DEPEND} |
98 |
+" |
99 |
+ |
100 |
+src_configure() { |
101 |
+ local mycmakeargs=( |
102 |
+ -DBUILD_ULFIUS_DOCUMENTATION=$(usex doc) |
103 |
+ -DDOWNLOAD_DEPENDENCIES=OFF |
104 |
+ -DWITH_CURL=$(usex curl) |
105 |
+ -DWITH_GNUTLS=$(usex ssl) |
106 |
+ -DWITH_JANSSON=$(usex jansson) |
107 |
+ -DWITH_WEBSOCKET=$(usex websocket) |
108 |
+ -DWITH_YDER=OFF |
109 |
+ ) |
110 |
+ |
111 |
+ cmake_src_configure |
112 |
+} |
113 |
+ |
114 |
+src_compile() { |
115 |
+ cmake_src_compile |
116 |
+ use doc && cmake_build doc |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ use doc && local HTML_DOCS=( doc/html/* ) |
121 |
+ cmake_src_install |
122 |
+} |