commit: df5973bf382c741bf91510cbfee45bdf056aeb05
parent: 5889d1d16dbbbef7a3f909f362e6a1ba64b6bffb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 23 Mar 2019 22:48:49 +0100
net-libs/glib-networking: make it multilib
Diffstat:
1 file changed, 21 insertions(+), 9 deletions(-)
diff --git a/net-libs/glib-networking/glib-networking-2.60.0.1.ebuild b/net-libs/glib-networking/glib-networking-2.60.0.1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit gnome2-utils meson xdg
+inherit gnome2-utils meson xdg multilib-minimal
DESCRIPTION="Network-related giomodules for glib"
HOMEPAGE="https://git.gnome.org/browse/${PN}/"
@@ -17,16 +17,16 @@ KEYWORDS="~amd64"
REQUIRED_USE="ssl? ( || ( gnutls openssl ) )"
DEPEND="
- >=dev-libs/glib-2.55.1:2
- libproxy? ( >=net-libs/libproxy-0.3.1:= )
- gnutls? ( >=net-libs/gnutls-3.4.6:= )
+ >=dev-libs/glib-2.55.1:2[${MULTILIB_USEDEP}]
+ libproxy? ( >=net-libs/libproxy-0.3.1:=[${MULTILIB_USEDEP}] )
+ gnutls? ( >=net-libs/gnutls-3.4.6:=[${MULTILIB_USEDEP}] )
openssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:= )
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
)
"
-src_configure() {
+multilib_src_configure() {
local emesonargs=(
$(meson_feature gnutls)
$(meson_feature openssl)
@@ -39,12 +39,24 @@ src_configure() {
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
- gnome2_giomodule_cache_update
+ multilib_foreach_abi gnome2_giomodule_cache_update
}
pkg_postrm() {
xdg_pkg_postrm
- gnome2_giomodule_cache_update
+ multilib_foreach_abi gnome2_giomodule_cache_update
}