summaryrefslogtreecommitdiffstats
path: root/packages/mail-client/daily/daily-scm.exheres-0
blob: f23c9e7ff0d214072c39a4ce4d12c47633aa16bf (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
# Copyright 2011-2014 Quentin "Sardem FF7" Glidic <sardemff7@exherbo.org>
# Distributed under the terms of the GNU General Public License v2

require mozilla-app [ application=comm/mail comm=true ]
require toolchain-funcs

SUMMARY="Thunderbird Mail and News client"
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird"

PLATFORMS="~amd64"

DEFAULT_SRC_PREPARE_PATCHES=(
    "${FILES}"/gtk2less.patch
    "${FILES}"/bundled-botan-cc-fix.patch
)

src_configure() {
    local botan_compiler

    if cxx-is-gcc; then
        botan_compiler=gcc
    elif cxx-is-clang; then
        botan_compiler=clang
    else
        die "Unknown compiler ${CXX}; you will need to add a check for it to the daily exheres"
    fi

    mozilla-app_src_configure \
        EXHERBO_BOTAN_CC=${botan_compiler}
}