summaryrefslogtreecommitdiff
path: root/packages/mail-client/evolution/evolution-scm.exheres-0
blob: aec55e6c64c67df85c1483bf7cad58c27194d8c8 (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
# Copyright 2009, 2011, 2013 Marvin Schmidt <marv@exherbo.org>
# Distributed under the terms of the GNU General Public License v2

SCM_REPOSITORY="git://git.gnome.org/evolution"

require scm-git
require evolution gsettings gtk-icon-cache freedesktop-desktop
require cmake [ api=2 cmake_minimum_version=3.1 ]

PLATFORMS="~amd64 ~x86"

MYOPTIONS="
    bogofilter gtk-doc help libnotify weather

    bogofilter   [[ description = [ Enable spam filtering using Bogofilter ] ]]
    geolocation [[
        description = [ Adds a map showing the locations of your contacts ]
    ]]
    gtkspell     [[ description = [ Enable spell checking using gtkspell ] ]]
    help         [[ description = [ Install the user documentation ] ]]
    ldap         [[ description = [ Enable LDAP support in evolution ] ]]
    spamassassin [[ description = [ Enable spam filtering using SpamAssassin ] ]]
    weather      [[ description = [ Build the weather calendar plugin ] ]]
    ( linguas: af am an ar as ast az be be@latin bg bn bn_IN br bs ca ca@valencia cs cy da de dz el
               en_AU en_CA en_GB en@shaw eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk kn
               ko ku lt lv mai mk ml mn mr ms nb nds ne nl nn oc or pa pl ps pt pt_BR ro ru rw si sk
               sl sq sr sr@latin sv ta te tg th tr ug uk vi wa xh zh_CN zh_HK zh_TW )
"
# pst-import plugin needs libpst

DEPENDENCIES="
    build:
        dev-util/intltool[>=0.40.0]
        gnome-desktop/yelp-tools
        virtual/pkg-config
        gtk-doc? ( dev-doc/gtk-doc[>=1.14] )
    build+run:
        app-spell/enchant:0[>=1.6.0]
        app-text/iso-codes[>=0.49]
        dev-libs/atk
        dev-libs/glib:2[>=2.46.0]
        dev-libs/libcryptui
        dev-libs/libxml2:2.0[>=2.7.3]
        dev-libs/nspr
        dev-libs/nss
        gnome-desktop/gnome-autoar[>=0.1.1]
        gnome-desktop/evolution-data-server:1.2[>=$(ever range 1-3)][gtk][weather?][ldap?]
        gnome-desktop/gcr[>=3.4]
        gnome-desktop/gnome-desktop:3.0[>=2.91.3]
        gnome-desktop/gsettings-desktop-schemas[>=2.91.92]
        gnome-desktop/libsoup:2.4[>=2.42]
        media-libs/libcanberra[>=0.25][providers:gtk3]
        net-libs/webkit:4.0[>=2.16.0]
        x11-libs/cairo
        x11-libs/gdk-pixbuf:2.0[>=2.24.0]
        x11-libs/gtk+:3[>=3.22.0]
        x11-misc/shared-mime-info[>=0.22]
        bogofilter? ( mail-filter/bogofilter )
        geolocation? (
            gnome-desktop/geocode-glib:1.0[>=3.10.0]
            x11-libs/clutter-gtk:1.0[>=0.90]
            x11-libs/libchamplain:0.12
        )
        gtkspell? ( app-spell/gtkspell:3.0 )
        ldap? ( net-directory/openldap[>=2.4.0] )
        libnotify? ( x11-libs/libnotify[>=0.7] )
        spamassassin? ( mail-filter/spamassassin )
        weather? ( gnome-desktop/libgweather:3.0[>=3.10] )
"

CMAKE_SRC_CONFIGURE_PARAMS=(
    -DSHARE_INSTALL_PREFIX:STRING=/usr/share
    -DSYSCONF_INSTALL_DIR:STRING=/etc
    -DENABLE_AUTOAR:BOOL=TRUE
    -DENABLE_CANBERRA:BOOL=TRUE
    -DENABLE_GNOME_DESKTOP:BOOL=TRUE
    -DENABLE_LIBCRYPTUI:BOOL=TRUE
    -DENABLE_PLUGINS:STRING=all
    -DENABLE_SMIME:BOOL=TRUE
    -DENABLE_PST_IMPORT:BOOL=FALSE
    -DENABLE_TEXT_HIGHLIGHT:BOOL=FALSE
    -DENABLE_YTNEF:BOOL=FALSE
)
CMAKE_SRC_CONFIGURE_OPTIONS=(
    'bogofilter WITH_BOGOFILTER'
    'geolocation ENABLE_CONTACT_MAPS'
    'gtkspell ENABLE_GTKSPELL'
    'spamassassin WITH_SPAMASSASSIN'
    'weather ENABLE_WEATHER'
    'help WITH_HELP'
    'ldap WITH_OPENLDAP'
)

pkg_postinst() {
    freedesktop-desktop_pkg_postinst
    gsettings_pkg_postinst
    gtk-icon-cache_pkg_postinst
}

pkg_postrm() {
    freedesktop-desktop_pkg_postrm
    gsettings_pkg_postrm
    gtk-icon-cache_pkg_postrm
}