net-analyzer/playcap: bump EAPI to 6, fix building error with missing include of unistd.h
This commit is contained in:
parent
8deef5828d
commit
97404c45c3
@ -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 <stdio.h>/a#include <unistd.h>' PlaybackWindow.cpp || die
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
#src_install() {
|
||||
|
Loading…
Reference in New Issue
Block a user