logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 4718b112bf5acfa7ec89a090cc6442937f25d2a1
parent 5a86b7091de66e8200e6c7c1d7c25f71c39b4bb7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 28 Feb 2023 16:50:36 +0100

net-libs/glib-networking: Add automagic safeguard

Diffstat:

Mnet-libs/glib-networking/glib-networking-2.74.0.ebuild5++++-
Anet-libs/glib-networking/glib-networking-9999.ebuild59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+), 1 deletion(-)

diff --git a/net-libs/glib-networking/glib-networking-2.74.0.ebuild b/net-libs/glib-networking/glib-networking-2.74.0.ebuild @@ -17,7 +17,7 @@ KEYWORDS="~amd64" REQUIRED_USE="ssl? ( || ( gnutls openssl ) )" RDEPEND=" - >=dev-libs/glib-2.69.0:2[${MULTILIB_USEDEP}] + >=dev-libs/glib-2.73.3:2[${MULTILIB_USEDEP}] libproxy? ( >=net-libs/libproxy-0.4.11-r1:=[${MULTILIB_USEDEP}] ) gnutls? ( >=net-libs/gnutls-3.7.2:=[${MULTILIB_USEDEP}] ) ssl? ( app-misc/ca-certificates ) @@ -50,6 +50,9 @@ src_prepare() { multilib_src_configure() { local emesonargs=( + # Avoid automagic, built-in feature of meson + -Dauto_features=disabled + $(meson_feature gnutls) $(meson_feature openssl) $(meson_feature libproxy) diff --git a/net-libs/glib-networking/glib-networking-9999.ebuild b/net-libs/glib-networking/glib-networking-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 2018-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 gnome2-utils meson xdg multilib-minimal + +DESCRIPTION="Network-related giomodules for glib" +HOMEPAGE="https://gitlab.gnome.org/GNOME/${PN}" +EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/glib-networking.git" + +LICENSE="LGPL-2.1+" +SLOT="0" +IUSE="gnome gnutls +libproxy +openssl test ssl" +KEYWORDS="-amd64" + +REQUIRED_USE="ssl? ( || ( gnutls openssl ) )" + +DEPEND=" + >=dev-libs/glib-2.67.0:2[${MULTILIB_USEDEP}] + libproxy? ( >=net-libs/libproxy-0.3.1:=[${MULTILIB_USEDEP}] ) + gnutls? ( >=net-libs/gnutls-3.4.6:=[${MULTILIB_USEDEP}] ) + openssl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) +" + +multilib_src_configure() { + local emesonargs=( + $(meson_feature gnutls) + $(meson_feature openssl) + $(meson_feature libproxy) + $(meson_feature gnome gnome_proxy) + -Dinstalled_tests=false + -Dstatic_modules=false + ) + + meson_src_configure +} + +multilib_src_compile() { + meson_src_compile +} + +multilib_src_install() { + meson_src_install +} + +multilib_src_test() { + meson_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + multilib_foreach_abi gnome2_giomodule_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + multilib_foreach_abi gnome2_giomodule_cache_update +}