net-libs/libmicrohttpd: new upstream version 1.0.3

Closes: https://bugs.gentoo.org/966771
Signed-off-by: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/46066
Closes: https://github.com/gentoo/gentoo/pull/46066
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Evgeny Grin (Karlson2k)
2026-04-07 23:02:01 +02:00
committed by Sam James
parent b00199ba78
commit deae4f0c98
2 changed files with 77 additions and 0 deletions

View File

@@ -2,3 +2,5 @@ DIST libmicrohttpd-0.9.77.tar.gz 1896679 BLAKE2B 09a07c7da77d6072e5aa0fb121aedff
DIST libmicrohttpd-0.9.77.tar.gz.sig 581 BLAKE2B 99ea14c7a80b0ed542672752617b045bea9a16a906e43422a130e83de048ea4d989ab53978b25b77f2982da9599aea711357c05b5a48fb5be84583c04596686c SHA512 60489620bfb2388afb19dd91c105927e593c6a17ba0293b4814c746b66d4f0418edafe49837de333640c1479bacde3e46740b031c2d4ec5bd106493122c87b19
DIST libmicrohttpd-1.0.1.tar.gz 2239593 BLAKE2B a29e49c719fc544ae72224d81cba7b7ef914f2641efe4b90d580d2212f2c3357a6d70499c43a6f50d14f4ec9d3102da8de899fe0420bf6660eb413080d89b7f7 SHA512 c99b8b93cae5feee8debcc5667ee3ff043412a84b30696fe852e6c138f3c890bb43c8fcd7199f1d2f809d522fef159e83b607c743d6cf3401a57050fbdf9b5c1
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

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
}