summaryrefslogtreecommitdiff
blob: 4ca1ee7a8e1b2cb17771120ceb93d992fb7e561a (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v3
# $Header: $

EAPI=5
AUTOTOOLS_IN_SOURCE_BUILD=1
AUTOTOOLS_AUTORECONF=1
inherit autotools-utils eutils toolchain-funcs

DESCRIPTION="Terminal SIP messages flow viewer"
HOMEPAGE="https://github.com/irontec/sngrep/"
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3 openssl"
SLOT="0"
KEYWORDS="~alfa ~sparc x86 amd64 ~mips ~ppc ~ppc64 ~ppc-macos ~ia64"
IUSE="pcre ssl unicode ipv6"

RDEPEND="
    sys-libs/ncurses
    net-libs/libpcap
    ssl? ( dev-libs/openssl )
    unicode? ( sys-libs/ncurses[unicode] )
    pcre? ( dev-libs/libpcre )"

DEPEND="${RDEPEND}"

DOCS=( ChangeLog README.md AUTHORS )

src_configure() {
    econf \
     $(use_with ssl openssl ) \
     $(use_with pcre) \
     $(use_enable unicode) \
     $(use_enable ipv6) \
     ${myconf}
}