From 97404c45c346eab15823857a6dee1ed4baf2eb03 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Fri, 2 Jun 2017 13:08:02 +0300 Subject: [PATCH] net-analyzer/playcap: bump EAPI to 6, fix building error with missing include of unistd.h --- net-analyzer/playcap/playcap-0.1.1.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/net-analyzer/playcap/playcap-0.1.1.ebuild b/net-analyzer/playcap/playcap-0.1.1.ebuild index d4aebf1..5a83b43 100644 --- a/net-analyzer/playcap/playcap-0.1.1.ebuild +++ b/net-analyzer/playcap/playcap-0.1.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=4 +EAPI=6 MY_PN="PlayCap" MY_P="${MY_PN}-${PV}" @@ -12,10 +12,10 @@ inherit cmake-utils eutils DESCRIPTION="Plays back captures made from wireshark, tcpdump, or any libpcap-based application" HOMEPAGE="http://www.signal11.us/oss/playcap/" SRC_URI="mirror://github/signal11/${MY_PN}/${MY_P}-Source.tar.gz" + LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" DEPEND="net-libs/libpcap x11-libs/fox:1.6[png] @@ -25,7 +25,9 @@ RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_P}-Source" src_prepare() { - sed -i -e 's/fox-config/fox-1.6-config/' CMakeLists.txt + sed -i -e 's/fox-config/fox-1.6-config/' CMakeLists.txt || die + sed -i -e '/#include /a#include ' PlaybackWindow.cpp || die + cmake-utils_src_prepare } #src_install() {