summaryrefslogtreecommitdiff
path: root/packages/gnome-desktop/gvfs/gvfs-1.34.0.exheres-0
blob: abf62f3a6c92d4394bd3ddc885704dc2be1e39b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Copyright 2008 Saleem Abdulrasool <compnerd@compnerd.org>
# Distributed under the terms of the GNU General Public License v2

require gnome.org [ suffix=tar.xz ] gsettings
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 ] ]

SUMMARY="VFS interfaces for GTK+"
HOMEPAGE="http://www.gnome.org/"

LICENCES="LGPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS="
    afc [[ description = [ add support for accessing AFC (Apple File Connection) filesystems ] ]]
    afp [[ description = [ add support for accessing AFP (Apple Filing Protocol) shares ] ]]
    archive [[ description = [ add support for reading compressed archives supported by libarchive ] ]]
    avahi
    bluray [[ description = [ Blu-ray disc metadata support ] ]]
    cdda
    gphoto2
    doc fuse
    http [[ description = [ enable support http, dav, ssl uris ] ]]
    keyring
    monitor [[ description = [ add support for gnome-disk-utility ] ]]
    mtp [[ description = [ build MTP volume monitor (e.g. Android tablets and phones) ] ]]
    nfs [[ description = [ add support for accessing NFS shares ] ]]
    online-accounts [[ description = [ build online accounts volume monitor ] ]]
    samba
    systemd
    udisks [[ description = [ add support for udisks based volume monitoring ] ]]
    ( linguas: af ar as ast be be@latin bg bn bn_IN ca ca@valencia cs da de el en_GB en@shaw eo es
               et eu fa fi fr ga gl gu he hi hu id it ja kk kn ko ku lt lv mai mk ml mr nb nds nl
               nn or pa pl pt pt_BR ro ru sk sl sq sr sr@latin sv ta te tg th tr ug uk vi zh_CN
               zh_HK zh_TW )
"

DEPENDENCIES="
    build:
        sys-devel/gettext[>=0.19.4]
        virtual/pkg-config[>=0.20]
        doc? ( dev-doc/gtk-doc
               dev-libs/libxslt )
    build+run:
        dev-libs/glib:2[>=2.51.0]
        dev-libs/libusb:1
        dev-libs/libxml2:2.0
        gnome-desktop/gcr
        gnome-desktop/libgudev[>=147]
        net-misc/openssh
        sys-apps/dbus[>=1.0]
        sys-auth/polkit
        sys-libs/libcap
        afc? ( app-pda/libimobiledevice[>=1.2]
               dev-libs/libplist[>=0.15] )
        afp? ( dev-libs/libgcrypt[>=1.2.2] )
        archive? ( app-arch/libarchive )
        avahi? ( net-dns/avahi[>=0.6][dbus] )
        bluray? ( media-libs/libbluray )
        cdda? ( dev-libs/libcdio[>=0.78.2]
                dev-libs/libcdio-paranoia )
        fuse? ( sys-fs/fuse:0[>=2.8.0] )
        gphoto2? ( media-libs/libgphoto2[>=2.4.10] )
        http? ( gnome-desktop/libsoup:2.4[>=2.42.0] )
        keyring? ( dev-libs/libsecret:1 )
        monitor? ( dev-libs/expat
                   gnome-desktop/gnome-disk-utility[>=3.0.2] )
        mtp? ( media-libs/libmtp[>=1.1.12] [[ note = [ permit on-device reading ] ]] )
        nfs? ( net-fs/libnfs[>=1.9.8] )
        online-accounts? (
            gnome-desktop/gnome-online-accounts[>=3.17.1]
            gnome-desktop/libgdata[>=0.17.9][online-accounts]
        )
        samba? ( net-fs/samba[>=3.4.0] )
        systemd? ( sys-apps/systemd )
        udisks? ( sys-apps/udisks:2[>=1.97] )
"
#    test:
#        dev-lang/python:3.2

RESTRICT="test" # requires python:3

DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/0001-gvfs-exherbo-specific-systemd-path-changes.patch" )

DEFAULT_SRC_CONFIGURE_PARAMS=( '--enable-admin' '--enable-libusb' '--enable-udev' '--enable-gudev' '--enable-gcr' )
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( 'afc' 'afp' 'archive' 'avahi'
                                       'bluray' 'cdda' 'doc gtk-doc'
                                       'doc documentation' 'fuse' 'gphoto2' 'http'
                                       'keyring' 'monitor gdu' 'nfs' 'online-accounts goa'
                                       'online-accounts google' 'samba'
                                       'systemd libsystemd-login' 'udisks udisks2' 'mtp libmtp' )

src_prepare() {
    edo sed -i "/AC_PATH_PROG(PKG_CONFIG/d" configure.ac
    edo autopoint
    autotools_src_prepare
}

src_install() {
    default

    ( option avahi || option samba ) || edo rmdir "${IMAGE}"/usr/share/GConf/{gsettings,}

    keepdir /usr/share/gvfs/remote-volume-monitors
}

pkg_preinst() {
    # We formerly had a keepdir on /media, and systemd mounts it as a tmpfs, so we cannot let gvfs
    # remove it and recreate it in postinst or the "rmdir /media" in the merge phase would fail.
    # Create a temporary file so that /media doesn't get unmerged, and remove it in postinst
    edo touch "${ROOT}"/media/.keep-the-media-directory-please
}

pkg_postinst() {
    gsettings_pkg_postinst
    nonfatal edo rm "${ROOT}"/media/.keep-the-media-directory-please
}