1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 EGIT_REPO_URI="https://github.com/isc-projects/${PN}.git"
8 inherit git-r3 toolchain-funcs
10 DESCRIPTION="Ethernet NIC Queue stats viewer"
11 HOMEPAGE="https://github.com/isc-projects/ethq"
18 RESTRICT="!test? ( test )"
20 DEPEND="sys-libs/ncurses:0"
28 -e '/CXXFLAGS/s/= -O3/+=/' \
30 -e '/LDFLAGS/s/=/+=/' Makefile || die "sed failed for Makefile"
33 sed -i '/TARGETS/s/ethq_test//' Makefile \
34 || die "sed failed for USE flag test"
39 # override for ncurses[tinfo]
40 emake CXX="$(tc-getCXX)" LIBS_CURSES="$($(tc-getPKG_CONFIG) --libs ncurses)"
45 for driver in tests/* ; do
46 "${S}"/ethq_test "${driver##*/}" "${driver}" \
47 || die "test failed on ${driver}"