summaryrefslogtreecommitdiff
path: root/packages/net-irc/irssi/irssi.exlib
blob: 17e380fba0892fe110761301537f59c88736e70c (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
# Copyright 2007 Alexander Færøy <ahf@exherbo.org>
# Distributed under the terms of the GNU General Public License v2

require github [ release=${PV} suffix=tar.xz ]

export_exlib_phases src_install

SUMMARY="Irssi is a terminal based IRC client for UNIX systems"
HOMEPAGE="https://www.irssi.org/"

LICENCES="GPL-2"
SLOT="0"
MYOPTIONS="perl proxy socks
    bot [[ description = [ Run an irssi module, such as a bot, without a UI ] ]]
    otr [[ description = [ Enable OTR support ] ]]
    ( providers: libressl openssl ) [[ number-selected = exactly-one ]]
"

DEPENDENCIES="
    build:
        virtual/pkg-config
    build+run:
        dev-libs/glib:2[>=2.28.0]
        sys-libs/ncurses
        otr? (
            dev-libs/libgcrypt[>=1.2.0]
            net-libs/libotr[>=4.1.0]
        )
        perl? ( dev-lang/perl:=[>=5.6] )
        providers:libressl? ( dev-libs/libressl:= )
        providers:openssl? ( dev-libs/openssl )
        socks? ( net-proxy/dante )
"

DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( bot perl otr proxy socks )
DEFAULT_SRC_CONFIGURE_PARAMS=(
    --enable-true-color
    --with-perl-lib=vendor
)
DEFAULT_SRC_INSTALL_PARAMS=( docdir=/usr/share/doc/${PNVR} )

irssi_src_install() {
    default
    if option perl; then
        local perllocal=( "${IMAGE}"/usr/$(exhost --target)/lib/perl5/*/*/perllocal.pod )
        edo rm "${perllocal[0]}"
        edo rmdir "${perllocal[0]%/*}"
        edo rmdir "${perllocal[0]%/*/*}"
    fi
}