|
1 # Copyright 1999-2015 Gentoo Foundation |
|
2 # Distributed under the terms of the GNU General Public License v2 |
|
3 # $Id$ |
|
4 |
|
5 EAPI="5" |
|
6 GCONF_DEBUG="no" |
|
7 GNOME2_LA_PUNT="yes" |
|
8 |
|
9 inherit autotools bash-completion-r1 eutils gnome2 |
|
10 |
|
11 DESCRIPTION="Virtual filesystem implementation for gio" |
|
12 HOMEPAGE="https://git.gnome.org/browse/gvfs" |
|
13 |
|
14 LICENSE="LGPL-2+" |
|
15 SLOT="0" |
|
16 |
|
17 IUSE="afp archive bluray cdda fuse gnome-keyring gnome-online-accounts gphoto2 gtk +http ios mtp nfs samba systemd test +udev udisks zeroconf" |
|
18 REQUIRED_USE=" |
|
19 cdda? ( udev ) |
|
20 mtp? ( udev ) |
|
21 udisks? ( udev ) |
|
22 systemd? ( udisks ) |
|
23 " |
|
24 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris" |
|
25 |
|
26 # Can use libgphoto-2.5.0 as well. Automagic detection. |
|
27 RDEPEND=" |
|
28 app-crypt/gcr:= |
|
29 >=dev-libs/glib-2.45.7:2 |
|
30 sys-apps/dbus |
|
31 dev-libs/libxml2:2 |
|
32 net-misc/openssh |
|
33 afp? ( >=dev-libs/libgcrypt-1.2.2:0= ) |
|
34 archive? ( app-arch/libarchive:= ) |
|
35 bluray? ( media-libs/libbluray ) |
|
36 fuse? ( >=sys-fs/fuse-2.8.0 ) |
|
37 gnome-keyring? ( app-crypt/libsecret ) |
|
38 gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.7.1 >=dev-libs/libgdata-0.17.3:=[gnome] ) |
|
39 |
|
40 gphoto2? ( >=media-libs/libgphoto2-2.4.7:= ) |
|
41 gtk? ( >=x11-libs/gtk+-3.0:3 ) |
|
42 http? ( >=net-libs/libsoup-2.42:2.4 ) |
|
43 ios? ( |
|
44 >=app-pda/libimobiledevice-1.1.5:= |
|
45 >=app-pda/libplist-1:= ) |
|
46 mtp? ( >=media-libs/libmtp-1.1.6 ) |
|
47 nfs? ( >=net-fs/libnfs-1.9.7 ) |
|
48 samba? ( || ( >=net-fs/samba-3.4.6[smbclient] >=net-fs/samba-4[client] ) ) |
|
49 systemd? ( sys-apps/systemd:0= ) |
|
50 udev? ( |
|
51 cdda? ( dev-libs/libcdio-paranoia ) |
|
52 virtual/libgudev:= |
|
53 virtual/libudev:= ) |
|
54 udisks? ( >=sys-fs/udisks-1.97:2 ) |
|
55 zeroconf? ( >=net-dns/avahi-0.6 ) |
|
56 " |
|
57 DEPEND="${RDEPEND} |
|
58 app-text/docbook-xsl-stylesheets |
|
59 dev-libs/libxslt |
|
60 >=dev-util/intltool-0.40 |
|
61 virtual/pkgconfig |
|
62 dev-util/gdbus-codegen |
|
63 dev-util/gtk-doc-am |
|
64 test? ( |
|
65 >=dev-python/twisted-core-12.3.0 |
|
66 || ( |
|
67 net-analyzer/netcat |
|
68 net-analyzer/netcat6 ) ) |
|
69 !udev? ( >=dev-libs/libgcrypt-1.2.2:0 ) |
|
70 " |
|
71 # libgcrypt.m4, provided by libgcrypt, needed for eautoreconf, bug #399043 |
|
72 # test dependencies needed per https://bugzilla.gnome.org/700162 |
|
73 |
|
74 # Tests with multiple failures, this is being handled upstream at: |
|
75 # https://bugzilla.gnome.org/700162 |
|
76 RESTRICT="test" |
|
77 |
|
78 src_prepare() { |
|
79 DOCS="AUTHORS ChangeLog NEWS MAINTAINERS README TODO" # ChangeLog.pre-1.2 README.commits |
|
80 |
|
81 if ! use udev; then |
|
82 sed -e 's/gvfsd-burn/ /' \ |
|
83 -e 's/burn.mount.in/ /' \ |
|
84 -e 's/burn.mount/ /' \ |
|
85 -i daemon/Makefile.am || die |
|
86 |
|
87 # Uncomment when eautoreconf stops being needed always |
|
88 eautoreconf |
|
89 fi |
|
90 |
|
91 gnome2_src_prepare |
|
92 } |
|
93 |
|
94 src_configure() { |
|
95 # --enable-documentation installs man pages |
|
96 # --disable-obexftp, upstream bug #729945 |
|
97 gnome2_src_configure \ |
|
98 --enable-bash-completion \ |
|
99 --with-bash-completion-dir="$(get_bashcompdir)" \ |
|
100 --enable-gcr \ |
|
101 --disable-gdu \ |
|
102 --disable-hal \ |
|
103 --with-dbus-service-dir="${EPREFIX}"/usr/share/dbus-1/services \ |
|
104 --enable-documentation \ |
|
105 $(use_enable afp) \ |
|
106 $(use_enable archive) \ |
|
107 $(use_enable bluray) \ |
|
108 $(use_enable cdda) \ |
|
109 $(use_enable fuse) \ |
|
110 $(use_enable gnome-keyring keyring) \ |
|
111 $(use_enable gnome-online-accounts goa) \ |
|
112 $(use_enable gphoto2) \ |
|
113 $(use_enable gtk) \ |
|
114 $(use_enable ios afc) \ |
|
115 $(use_enable mtp libmtp) \ |
|
116 $(use_enable nfs) \ |
|
117 $(use_enable udev) \ |
|
118 $(use_enable udev gudev) \ |
|
119 $(use_enable http) \ |
|
120 $(use_enable samba) \ |
|
121 $(use_enable systemd libsystemd-login) \ |
|
122 $(use_enable udisks udisks2) \ |
|
123 $(use_enable zeroconf avahi) |
|
124 } |