net-libs/ulfius: new package, add 2.7.10

Web Framework for REST Applications in C.

Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
This commit is contained in:
Kurt Kanzenbach
2022-06-26 11:57:33 +02:00
parent 10c78b9169
commit 31358a69f3
3 changed files with 84 additions and 0 deletions

1
net-libs/ulfius/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST ulfius-2.7.10.tar.gz 419473 BLAKE2B 8241f9e861bbf1e393e81c24453e670adc1923ae959ec4231a1c0b3833a7e85c655b08c771cb3497331a40df4788b6118de005f13d7c5f2df309d8f748276868 SHA512 7ecbaa6cf4329b12c45a9c8d50c7781327a03de2c9226db371b27b7bcba20738e99b2af26fb845fed74b61a9b6867f984dcee70d1addbf3fe40941537be572e1

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>kurt@kmk-computers.de</email>
<name>Kurt Kanzenbach</name>
</maintainer>
<longdescription lang="en">
Web Framework for REST Applications in C.
Based on GNU Libmicrohttpd for the backend web server, Jansson for the json
manipulation library, and Libcurl for the http/smtp client API.
Used to facilitate creation of web applications in C programs with a small
memory footprint, as in embedded systems applications.
One can create webservices in HTTP or HTTPS mode, stream data, or implement
server websockets.
</longdescription>
<use>
<flag name="jansson">Jansson support for JSON</flag>
<flag name="websocket">websocket support</flag>
</use>
<upstream>
<remote-id type="github">babelouest/ulfius</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,56 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="HTTP Framework for REST Applications in C"
HOMEPAGE="https://github.com/babelouest/ulfius/"
SRC_URI="https://github.com/babelouest/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="curl doc jansson ssl websocket"
RESTRICT="test"
BDEPEND="
virtual/pkgconfig
"
DEPEND="
curl? ( net-misc/curl )
doc? ( app-doc/doxygen )
jansson? ( dev-libs/jansson:= )
ssl? ( net-libs/gnutls:= )
net-libs/libmicrohttpd:=
net-libs/orcania
sys-libs/zlib
"
RDEPEND="
${DEPEND}
"
src_configure() {
local mycmakeargs=(
-DBUILD_ULFIUS_DOCUMENTATION=$(usex doc)
-DDOWNLOAD_DEPENDENCIES=OFF
-DWITH_CURL=$(usex curl)
-DWITH_GNUTLS=$(usex ssl)
-DWITH_JANSSON=$(usex jansson)
-DWITH_WEBSOCKET=$(usex websocket)
-DWITH_YDER=OFF
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
use doc && cmake_build doc
}
src_install() {
use doc && local HTML_DOCS=( doc/html/* )
cmake_src_install
}