aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Kanzenbach <kurt@kmk-computers.de>2023-11-25 16:44:35 +0100
committerKurt Kanzenbach <kurt@kmk-computers.de>2023-11-27 08:37:56 +0100
commit83d5986bf463dae00a7fe506460642c82370a309 (patch)
treebef756c6aea86ab9865d5caa18552bfcf4abe5d8 /net-libs
parentmedia-video/mediaelch: update build dependencies (diff)
downloadguru-83d5986bf463dae00a7fe506460642c82370a309.tar.gz
guru-83d5986bf463dae00a7fe506460642c82370a309.tar.bz2
guru-83d5986bf463dae00a7fe506460642c82370a309.zip
net-libs/ulfius: add 2.7.15
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/ulfius/Manifest1
-rw-r--r--net-libs/ulfius/ulfius-2.7.15.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/net-libs/ulfius/Manifest b/net-libs/ulfius/Manifest
index 09c14e5a2..29b32fda1 100644
--- a/net-libs/ulfius/Manifest
+++ b/net-libs/ulfius/Manifest
@@ -1 +1,2 @@
DIST ulfius-2.7.14.tar.gz 452224 BLAKE2B 860163bc8b2de8b7eb07e3d99c7205fc752de6c4894423405b8966ae551b5d9cd13081d562f5affa539265ed4ea5884202fbb75d61140d41c0ac86d6a9a54d33 SHA512 c7a07df78432aebada45f3540abf6c434fd1ded6cd06d19b11270de6318664993d1555560a8e7700a5f36dff349649a073ea7d9279c3cf823db7cd5f355ee4cb
+DIST ulfius-2.7.15.tar.gz 453596 BLAKE2B 523c4ae70b0b5864052e8f3d2fc105b5d6b61d00ea0d6a2c47ac0ba608fd868d011a5c54d4cb574badcc8c6e6e3230e7c0a2075a5388a1641502e8f009156e6f SHA512 2eb26794b5e504c753622ef4b1a453bd8a6b6e7aae30e6fbcd4f3795f7dd2929d2805fec8ec42c6fb8fa8033d8c1c4f6b780996198b7ca81a91889b9cf247023
diff --git a/net-libs/ulfius/ulfius-2.7.15.ebuild b/net-libs/ulfius/ulfius-2.7.15.ebuild
new file mode 100644
index 000000000..076a180e0
--- /dev/null
+++ b/net-libs/ulfius/ulfius-2.7.15.ebuild
@@ -0,0 +1,62 @@
+# 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
+ media-gfx/graphviz
+ )
+ 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)
+ -DWITH_CURL=$(usex curl)
+ -DWITH_GNUTLS=$(usex ssl)
+ -DWITH_JANSSON=$(usex jansson)
+ -DWITH_WEBSOCKET=$(usex websocket)
+ -DWITH_YDER=OFF
+ )
+
+ # bug 917149
+ sed -i -e "s/-Werror//g" CMakeLists.txt || die
+
+ 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
+}