# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v3 # $Header: $ EAPI=5 inherit git-2 autotools DESCRIPTION="sngrep is terminal SIP messages flow viewer" HOMEPAGE="https://github.com/irontec/sngrep/" EGIT_REPO_URI="https://github.com/irontec/sngrep/" LICENSE="GPL-3" SLOT="0" KEYWORDS="~alfa ~sparc x86 amd64 ~mips ~ppc ~ppc64 ~ppc-macos ~ia64" IUSE="pcre ssl unicode ipv6" RDEPEND="dev-vcs/git" DEPEND="${RDEPEND} net-libs/libpcap unicode? ( =sys-libs/ncurses-5* )" DOCS=( ChangeLog README.md AUTHORS ) src_prepare() { eautoreconf } src_configure() { local myconf if use ssl ; then myconf="--enable-openssl" else myconf="--disable-openssl" fi econf \ $(use_with pcre) \ $(use_enable unicode) \ $(use_enable ipv6) \ ${myconf} } src_install() { emake DESTDIR="${D}" install dodoc [A-Z][A-Z]* ChangeLog* }