1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit gnome.org gnome2-utils meson systemd xdg
8 DESCRIPTION="Virtual filesystem implementation for GIO"
9 HOMEPAGE="https://wiki.gnome.org/Projects/gvfs"
14 IUSE="afp archive bluray cdda elogind fuse google gnome-keyring gnome-online-accounts gphoto2 +http ios mtp nfs policykit samba systemd test +udev udisks zeroconf"
15 RESTRICT="!test? ( test )"
16 # elogind/systemd only relevant to udisks (in v1.38.1)
18 ?? ( elogind systemd )
20 google? ( gnome-online-accounts )
25 KEYWORDS="~alpha amd64 arm arm64 ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
28 >=dev-libs/glib-2.57.2:2
29 afp? ( >=dev-libs/libgcrypt-1.2.2:0= )
33 >=sys-auth/polkit-0.114
37 >=net-libs/libsoup-2.58.0:2.4 )
38 zeroconf? ( >=net-dns/avahi-0.6[dbus] )
39 udev? ( >=dev-libs/libgudev-147:= )
40 fuse? ( >=sys-fs/fuse-2.8.0:0 )
41 udisks? ( >=sys-fs/udisks-1.97:2 )
42 systemd? ( >=sys-apps/systemd-206:0= )
43 elogind? ( >=sys-auth/elogind-229:0= )
45 >=app-pda/libimobiledevice-1.2:=
46 >=app-pda/libplist-1:= )
47 gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.17.1:= )
48 gnome-keyring? ( app-crypt/libsecret )
49 bluray? ( media-libs/libbluray:= )
51 >=dev-libs/libusb-1.0.21
52 >=media-libs/libmtp-1.1.15 )
53 samba? ( >=net-fs/samba-4[client] )
54 archive? ( app-arch/libarchive:= )
57 >=dev-libs/libcdio-paranoia-0.78.2 )
58 google? ( >=dev-libs/libgdata-0.17.9:=[crypt,gnome-online-accounts] )
59 gphoto2? ( >=media-libs/libgphoto2-2.5.0:= )
60 nfs? ( >=net-fs/libnfs-1.9.8 )
67 app-text/docbook-xsl-stylesheets
68 app-text/docbook-xml-dtd:4.2
70 >=sys-devel/gettext-0.19.8
72 dev-util/gdbus-codegen
76 # from gnome-3-32 branch, fixes RPATH of libgvfsdaemon.so
77 "${FILESDIR}"/${PV}-gvfsdaemon-rpath.patch
81 local enable_logind="false"
82 if use systemd || use elogind; then
86 local enable_gcrypt="false"
87 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
91 local enable_libusb="false"
92 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
97 -Dsystemduserunitdir="$(systemd_get_userunitdir)"
98 -Dtmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d
99 $(meson_use policykit admin)
104 $(meson_use zeroconf dnssd)
105 $(meson_use gnome-online-accounts goa)
112 $(meson_use samba smb)
113 $(meson_use udisks udisks2)
117 -Dgcrypt=${enable_gcrypt}
118 $(meson_use udev gudev)
119 $(meson_use gnome-keyring keyring)
120 -Dlogind=${enable_logind}
121 -Dlibusb=${enable_libusb}
122 -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
123 -Dinstalled_tests=false
131 gnome2_schemas_update
132 gnome2_giomodule_cache_update
137 gnome2_schemas_update
138 gnome2_giomodule_cache_update