summaryrefslogtreecommitdiff
path: root/packages/net-misc/uget/uget-2.2.1.exheres-0
blob: 1996d16ec60fac157d3ccc408d95cab1d2002028 (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
# Copyright 2017-2018 Rasmus Thomsen <Rasmus.thomsen@protonmail.com>
# Distributed under the terms of the GNU General Public License v2

require sourceforge [ project=urlget suffix=tar.gz ]
require gtk-icon-cache

SUMMARY="uGet, the Best Download Manager for Linux"
HOMEPAGE="http://ugetdm.com/"

LICENCES="LGPL-2.1"
SLOT="0"
PLATFORMS="~amd64 ~x86"

MYOPTIONS="
    appindicator [[ description = [ Use AppIndicator for tray icon rather than a standard tray icon ] ]]
    gstreamer [[ description = [ Enable audio support via gstreamer ] ]]
    libnotify [[ description = [ Display notifications when downloads are added or finished ] ]]
    ( providers: gnutls libressl openssl ) [[ number-selected = exactly-one ]]
"

DEPENDENCIES="
    build:
        dev-util/intltool
        sys-devel/gettext
        virtual/pkg-config
    build+run:
        dev-libs/glib:2[>=2.32]
        dev-libs/pcre
        net-misc/curl[>=7.19.1]
        x11-libs/gtk+:3[>=3.4]
        appindicator? ( dev-libs/libappindicator:0.1 )
        gstreamer? ( media-libs/gstreamer:= )
        libnotify? ( x11-libs/libnotify )
        providers:gnutls? ( dev-libs/libgcrypt )
        providers:libressl? ( dev-libs/libressl )
        providers:openssl? ( dev-libs/openssl )
"

src_configure() {
    local myconf=(
        --enable-rss-notify
        # Unpackaged dependency
        --disable-pwmd
        $(option_enable appindicator)
        $(option_enable gstreamer)
        $(option_enable libnotify notify)
    )

    if option providers:libressl || option providers:openssl; then
        myconf+=(
            --with-openssl
            --without-gnutls
        )
    else
        myconf+=(
            --with-gnutls
            --without-openssl
        )
    fi

    econf "${myconf[@]}"
}