commit: 93ebcb64d30d850ff8740c9348e08feec0e532d4 parent fbdd6c9092507b0d73bece9bd2b70b4bb027aba0 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Wed, 6 Jul 2022 18:04:16 +0200 net-libs/glib-networking: Clean version bump, 2.72.0Diffstat:
M | net-libs/glib-networking/Manifest | 2 | +- |
D | net-libs/glib-networking/glib-networking-2.66.0.ebuild | 59 | ----------------------------------------------------------- |
A | net-libs/glib-networking/glib-networking-2.72.0.ebuild | 86 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
3 files changed, 87 insertions(+), 60 deletions(-)
diff --git a/net-libs/glib-networking/Manifest b/net-libs/glib-networking/Manifest @@ -1 +1 @@ -DIST glib-networking-2.66.0.tar.xz 193920 BLAKE2B bba3c74a3676c15fbe3b9cb97aafb3c9320ebb6f7be1479a66cefd233aa5a548a605be74156445e6a54e8cdb307a09e2916f6d8736640ee38fce9ca289de195f SHA512 697798864746b40542873257a789290cacee425467e32c0eb096c87e124b37510753a990ef5d350f1db85c24da88e448bca9d8d8b4308123a74feac299176de5 +DIST glib-networking-2.72.0.tar.xz 265060 BLAKE2B 2ffb25b059db40fcf9b65b104cd50d81dda9482bc75031d62c10f70eaaa2e9fcfcdfb2b718253255a2565d7b6bc9ead2214167d1b5f482c0ddd3af8573dd2ef5 SHA512 2b42aebcf496f51604005f6f3243ed7e613ab3d485742b7d8af10e103b07eefd8931cc86c1cb021889fe1415ad98bf4d877a3f33203cb53688cc2c41373a8ce4 diff --git a/net-libs/glib-networking/glib-networking-2.66.0.ebuild b/net-libs/glib-networking/glib-networking-2.66.0.ebuild @@ -1,59 +0,0 @@ -# Copyright 2018-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit gnome2-utils meson xdg multilib-minimal - -DESCRIPTION="Network-related giomodules for glib" -HOMEPAGE="https://gitlab.gnome.org/GNOME/${PN}" -SRC_URI="https://ftp.gnome.org/pub/GNOME/sources/${PN}/$(ver_cut 1-2)/${P}.tar.xz" - -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.63.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 -} diff --git a/net-libs/glib-networking/glib-networking-2.72.0.ebuild b/net-libs/glib-networking/glib-networking-2.72.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome.org gnome2-utils meson-multilib xdg + +DESCRIPTION="Network-related giomodules for glib" +HOMEPAGE="https://gitlab.gnome.org/GNOME/glib-networking" + +LICENSE="LGPL-2.1+" +SLOT="0" +IUSE="gnome +gnutls +libproxy openssl test +ssl" +RESTRICT="!test? ( test )" +KEYWORDS="~amd64" + +REQUIRED_USE="ssl? ( || ( gnutls openssl ) )" + +RDEPEND=" + >=dev-libs/glib-2.69.0: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 ) + openssl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) + gnome? ( gnome-base/gsettings-desktop-schemas ) +" + +DEPEND="${RDEPEND} + test? ( net-libs/gnutls[pkcs11] ) +" +BDEPEND=" + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig + test? ( sys-apps/dbus ) +" + +src_prepare() { + default + xdg_environment_reset + + if ! use test ; then + # Don't build tests unconditionally + # This is a hack to avoid needing gnutls[pkcs11] when USE=-test + # It may become a real runtime dependency in future + # Please check! + # bug #777462 + sed -i "/^subdir('tests')/d" tls/meson.build || die + fi +} + +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_test() { + dbus-run-session meson test -C "${BUILD_DIR}" || die 'tests failed' +} + +pkg_postinst() { + xdg_pkg_postinst + + multilib_pkg_postinst() { + gnome2_giomodule_cache_update \ + || die "Update GIO modules cache failed (for ${ABI})" + } + multilib_foreach_abi multilib_pkg_postinst +} + +pkg_postrm() { + xdg_pkg_postrm + + multilib_pkg_postrm() { + gnome2_giomodule_cache_update \ + || die "Update GIO modules cache failed (for ${ABI})" + } + multilib_foreach_abi multilib_pkg_postrm +}