# from gnome-3-32 branch, fixes RPATH of libgvfsdaemon.so
"${FILESDIR}"/${PV}-gvfsdaemon-rpath.patch
)
src_configure(){
localenable_logind="false"
if use systemd || use elogind;then
enable_logind="true"
fi
localenable_gcrypt="false"
if use afp;then# currently HAVE_GCRYPT and linkage only used with afp; check it on big bumps (grep for HAVE_GCRYPT and enable_gcrypt); adjust depends if changes
enable_gcrypt="true"
fi
localenable_libusb="false"
if use mtp;then# currently HAVE_LIBUSB and linkage only used with mtp; check it on big bumps (grep for HAVE_LIBUSB and enable_libusb); adjust depends if changes
enable_libusb="true"
fi
localemesonargs=(
-Dsystemduserunitdir="$(systemd_get_userunitdir)"
-Dtmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d
$(meson_use policykit admin)
$(meson_use ios afc)
$(meson_use afp)
$(meson_use archive)
$(meson_use cdda)
$(meson_use zeroconf dnssd)
$(meson_use gnome-online-accounts goa)
$(meson_use google)
$(meson_use gphoto2)
$(meson_use http)
$(meson_use mtp)
$(meson_use nfs)
-Dsftp=true
$(meson_use samba smb)
$(meson_use udisks udisks2)
$(meson_use bluray)
$(meson_use fuse)
-Dgcr=true
-Dgcrypt=${enable_gcrypt}
$(meson_use udev gudev)
$(meson_use gnome-keyring keyring)
-Dlogind=${enable_logind}
-Dlibusb=${enable_libusb}
-Ddevel_utils=false# wouldn't install any of it as of 1.38.1; some tests need it, but they aren't automated tests in v1.38.1