net-libs/libmicrohttpd: add new version 1.0.5

Signed-off-by: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/46116
Closes: https://github.com/gentoo/gentoo/pull/46116
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Evgeny Grin (Karlson2k)
2026-04-16 15:57:08 +02:00
committed by Sam James
parent 7ed3bf0780
commit ab34d14a3b
2 changed files with 77 additions and 0 deletions

View File

@@ -4,3 +4,5 @@ DIST libmicrohttpd-1.0.1.tar.gz 2239593 BLAKE2B a29e49c719fc544ae72224d81cba7b7e
DIST libmicrohttpd-1.0.1.tar.gz.sig 581 BLAKE2B 6b8eda94d348d63e070f0b2046ea51ac7e4480593ef20c5d1445c66d7c0a611bbd0f9fba2b2df5f2e20665522b5ec79b51794435a649f17f5745a86e0302c97e SHA512 c4c00b71f1afb4fa2da0ac578ab8975a4691d2118863454eeba2a5084ef0fa428b58bb30351a4e5d0f5068d04ebbc59c24574eec0043388a6e13766da909e55e
DIST libmicrohttpd-1.0.3.tar.gz 2102293 BLAKE2B a739b5b954b94644e586e0323d6da5e6313eefb87a9f85230ed776a92176bae6393f0bf2fd2a45070989b0b193b63017f9c9e76b8409fb5632e4d1f6c6e6b8b1 SHA512 5b57df7a4f3f9e5b7c3fea50231490061cf4ee2aaa13575777942ad51564d5a3f1aaed493d8741f736d390888e95161f71d9f39d2bf61cc2e4958df09b496a07
DIST libmicrohttpd-1.0.3.tar.gz.sig 833 BLAKE2B fa3600ef118f4b02bea51de8ea100f5dca397df05b6128cd70a12e0dc1ccbdfa6d8bcf9544c7449a88013b90d5ae9703b6b843a00a3f2a78344a567a8bf3828a SHA512 69d765dcea750aa5b18bc3a6963fcd3ea8695ce3d3f9067dda7c13b292842f8b6271eeec934aa54f982604e320bd32013e83c2d61255f7799f3514ebb3910317
DIST libmicrohttpd-1.0.5.tar.gz 2103850 BLAKE2B dd6ea96a4ab94925d041ef4c45066bf8fb5568c93a727e93295d69db5432ef498d72138f1c64fe157327aca8f97636c9140757c1c048e589d91fddc8ff83a119 SHA512 7ed3e81f0c4253a409f5e825446c8d2d8b975c0eb6f381b6867796bbdcf4890004a24659e95b8ec8c39e8df0a9885cc08a0ba75f953893ee1455ae180dc89391
DIST libmicrohttpd-1.0.5.tar.gz.sig 833 BLAKE2B ed1922c43e87dfd4af04fc02172012f9e4f96794796845a91f7ce5b6279070f5d0fb64c24bb71a9facd64a8f66c3a7dc3e70a48b002fc2c8a1c6fc444946c97c SHA512 06e4e8ced756485e8e18abe45014117f2184966b5637f8ba715ada5fbc59e1e347dfabedc05022d3ace1cedb14a5a3672868f696cac999d6204bc9f5b19e73bb

View File

@@ -0,0 +1,75 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
inherit linux-info multilib-minimal verify-sig
DESCRIPTION="Small C library to run an HTTP server as part of another application"
HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
verify-sig? ( mirror://gnu/${PN}/${P}.tar.gz.sig )"
LICENSE="|| ( LGPL-2.1+ !ssl? ( GPL-2+-with-eCos-exception-2 ) )"
SLOT="0/12"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="debug +epoll +eventfd ssl static-libs test +thread-names verify-sig"
REQUIRED_USE="epoll? ( kernel_linux )"
RESTRICT="!test? ( test )"
KEYRING_VER=201906
RDEPEND="ssl? ( >net-libs/gnutls-2.12.20-r0:=[${MULTILIB_USEDEP}] )"
# libcurl and the curl binary are used during tests on CHOST
DEPEND="${RDEPEND}
test? ( net-misc/curl[ssl?] )"
BDEPEND="ssl? ( virtual/pkgconfig )
verify-sig? ( ~sec-keys/openpgp-keys-libmicrohttpd-${KEYRING_VER} )"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libmicrohttpd-${KEYRING_VER}.asc
DOCS=( AUTHORS NEWS COPYING README ChangeLog )
pkg_pretend() {
if use kernel_linux ; then
CONFIG_CHECK=""
use epoll && CONFIG_CHECK+=" ~EPOLL"
ERROR_EPOLL="EPOLL is not enabled in kernel, but enabled in libmicrohttpd."
ERROR_EPOLL+=" libmicrohttpd will fail to start with 'automatic' configuration."
use eventfd && CONFIG_CHECK+=" ~EVENTFD"
ERROR_EVENTFD="EVENTFD is enabled in libmicrohttpd, but not available in kernel."
ERROR_EVENTFD+=" libmicrohttpd will not work."
check_extra_config
fi
}
multilib_src_configure() {
ECONF_SOURCE="${S}" \
econf \
--enable-shared \
$(use_enable static-libs static) \
--enable-bauth \
--enable-dauth \
--enable-messages \
--enable-postprocessor \
--enable-httpupgrade \
--disable-examples \
--disable-tools \
--disable-experimental \
--disable-heavy-tests \
--enable-itc=$(usex eventfd eventfd pipe) \
$(use_enable debug asserts) \
$(use_enable thread-names) \
$(use_enable epoll) \
$(use_enable test curl) \
$(use_with ssl gnutls) \
$(use_enable ssl https)
}
multilib_src_install_all() {
default
if ! use static-libs; then
find "${ED}" -name '*.la' -delete || die
fi
}