diff options
Diffstat (limited to 'net-libs/libmicrohttpd')
-rw-r--r-- | net-libs/libmicrohttpd/Manifest | 2 | ||||
-rw-r--r-- | net-libs/libmicrohttpd/libmicrohttpd-1.0.1.ebuild | 77 |
2 files changed, 79 insertions, 0 deletions
diff --git a/net-libs/libmicrohttpd/Manifest b/net-libs/libmicrohttpd/Manifest index 694cbebd8a39..56f884750282 100644 --- a/net-libs/libmicrohttpd/Manifest +++ b/net-libs/libmicrohttpd/Manifest @@ -1,6 +1,8 @@ AUX libmicrohttpd-0.9.75-fix-testsuite-with-lto.patch 2078 BLAKE2B c3a7882d6e340c29fb26dce1c08ee2bf13a7fec0dfaa2b02c4f12afaa7d1ac0c610e33867b44f053db757188d160c57eedd55a77f1bcbdfcbf7d957ffcd81489 SHA512 b19c93b5139bfd50f7ab05c3a586a0d1ecb2c3e67b4f57eb48d1c0839dac44e860b699df6812f40563891435ba47b124fade74703d72c7f345c15dc367b3a0ce DIST libmicrohttpd-0.9.76.tar.gz 2199858 BLAKE2B 2c2de77d731ff130bb1491733b91e9e0b0c68bc30ea1a826f7f1d97aaf83fa7f6bec3c219f81c5293de72595b26d1e6eb66cdd4bfe3b16bd37a10e3acd3c6446 SHA512 9ff8a837892142376eaeaf50c0b0dba76697d0ff44b908434cba8db4324c57dfb8bbcc1a922b97d825891ac10f50693dee9388531856e0fa81fa2cfeac538581 DIST libmicrohttpd-0.9.77.tar.gz 1896679 BLAKE2B 09a07c7da77d6072e5aa0fb121aedffb66b6cfdb2da30d1809583469282365832beb935417e779ddb31876949358d25c10bf79616079393503ca5860d88ac052 SHA512 001025c023dd94c4a0cf017ed575e65a577b5ce595e7e450346bfb75def77eaa8a4cfbeffb9f4b912e34165c2cfca147c02c895e067a4f6c5a321a12035758a5 +DIST libmicrohttpd-1.0.1.tar.gz 2239593 BLAKE2B a29e49c719fc544ae72224d81cba7b7ef914f2641efe4b90d580d2212f2c3357a6d70499c43a6f50d14f4ec9d3102da8de899fe0420bf6660eb413080d89b7f7 SHA512 c99b8b93cae5feee8debcc5667ee3ff043412a84b30696fe852e6c138f3c890bb43c8fcd7199f1d2f809d522fef159e83b607c743d6cf3401a57050fbdf9b5c1 EBUILD libmicrohttpd-0.9.76.ebuild 2141 BLAKE2B 6fef5583a9de3e782e32f8cea3bbb77b6e101330b1398cf7317abaea16be559d0b15e9623afa5fc9125cdef5f5a9c956b4e1a0a3d26349ed358f7dc032d27d02 SHA512 b4e76ed574f2b5525aeba67f31ca0b621be1117171729ec31b2e75ac701d9afac355413850c932da14ff8883ddb61f54bf43bf1ae7e99691ad79dfb1988d26dc EBUILD libmicrohttpd-0.9.77.ebuild 2069 BLAKE2B c1705709ae161e7b32d3ff8044d9fe81d8fc752cd62ddb426a85da8176ae2bcbfddbb9816382aa209c9ef188b0c1b1c0579497f18c93aea9a75387dd535cb0b5 SHA512 a0ad43d2ebc6c647b5f098c0cb31ed457014e9496958035e29e6143951baf067c9c0f254982acaeac07f128d696b17a3eaff2cda55663dfee3d0933fd8635e12 +EBUILD libmicrohttpd-1.0.1.ebuild 2127 BLAKE2B 001b2093f44d421dd914338ed4e86d58f646bb02d3312c8ee8d3a12b218608551257b8df65847da10b2828bf1becee4369c70d06f8ba4fb0c882e9053a548886 SHA512 8d8346a2c6725d93111f3364b0b987ba2396512d112ac0171134fb2d90cd8a4bc14bd55ae5fc10450c360798b5d4c93342ecd9c2008ccef31c060d9ec0f49ec5 MISC metadata.xml 739 BLAKE2B d56bb58c6d6347fc17894e8f7a5d287fcbd99f613b47fd4e589e992eb3726b55e4cc0218267db884c6e1c2006a2acad9f677a9681e73eb4498b61bd9558dd246 SHA512 b8643f623f3b874e9ff9d6ce2c9f5d0ddee1722fbb58f4e5250e1a8a784295b0f88a36fc78f15047ec2447b7fafd3d3d3fc1394ca40c9944a306d730fa48644a diff --git a/net-libs/libmicrohttpd/libmicrohttpd-1.0.1.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-1.0.1.ebuild new file mode 100644 index 000000000000..bf51ab887652 --- /dev/null +++ b/net-libs/libmicrohttpd/libmicrohttpd-1.0.1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit linux-info multilib-minimal + +MY_P="${P/_/}" + +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}/${MY_P}.tar.gz" +S="${WORKDIR}"/${MY_P} + +LICENSE="|| ( LGPL-2.1+ !ssl? ( GPL-2+-with-eCos-exception-2 ) )" +SLOT="0/12" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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 )" + +RDEPEND="ssl? ( >net-libs/gnutls-2.12.20:=[${MULTILIB_USEDEP}] )" +# libcurl and the curl binary are used during tests on CHOST +DEPEND="${RDEPEND} + test? ( net-misc/curl[ssl?] )" +BDEPEND="ssl? ( virtual/pkgconfig )" + +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 not enabled in kernel, but enabled in libmicrohttpd." + ERROR_EVENTFD+=" libmicrohttpd will not work." + check_extra_config + fi +} + +multilib_src_configure() { + local itc_type + if use eventfd; then + itc_type="eventfd" + else + itc_type="pipe" + fi + 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=${itc_type} \ + $(use_enable debug asserts) \ + $(use_enable thread-names) \ + $(use_enable epoll) \ + $(use_enable test curl) \ + $(use_enable ssl https) +} + +multilib_src_install_all() { + default + + if ! use static-libs; then + find "${ED}" -name '*.la' -delete || die + fi +} |