commit:     1212aa2a8ead5636bbc647159b82e143c7a54368
Author:     Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Thu Nov  9 18:05:54 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Nov  9 18:05:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1212aa2a

net-libs/ulfius: add 2.7.14

Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>

 net-libs/ulfius/Manifest             |  1 +
 net-libs/ulfius/ulfius-2.7.14.ebuild | 57 ++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/net-libs/ulfius/Manifest b/net-libs/ulfius/Manifest
index 5614e9f984..16d898cd67 100644
--- a/net-libs/ulfius/Manifest
+++ b/net-libs/ulfius/Manifest
@@ -1 +1,2 @@
 DIST ulfius-2.7.13.tar.gz 427607 BLAKE2B 
1ccc3c37af135bfab2c7c81231ec8e788cd9df46f9025ae6745e58baff29e0820b7b62f929338f890f1e165bc84b292e3a8e0c6b07e5f83fb9972dcd6414221f
 SHA512 
cb92631f2d20088f21c8accee8841774793d79ae7851e4a0d160db084131e68cb9b78d44bc6519b624f35f007209da61e8173912248cefbec9141cd09690cc3d
+DIST ulfius-2.7.14.tar.gz 452224 BLAKE2B 
860163bc8b2de8b7eb07e3d99c7205fc752de6c4894423405b8966ae551b5d9cd13081d562f5affa539265ed4ea5884202fbb75d61140d41c0ac86d6a9a54d33
 SHA512 
c7a07df78432aebada45f3540abf6c434fd1ded6cd06d19b11270de6318664993d1555560a8e7700a5f36dff349649a073ea7d9279c3cf823db7cd5f355ee4cb

diff --git a/net-libs/ulfius/ulfius-2.7.14.ebuild 
b/net-libs/ulfius/ulfius-2.7.14.ebuild
new file mode 100644
index 0000000000..c3a0062617
--- /dev/null
+++ b/net-libs/ulfius/ulfius-2.7.14.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2023 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
+       net-libs/yder
+       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
+}

Reply via email to