diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2021-02-20 18:17:39 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-11 06:48:02 +0100 |
commit | 6159690ee96fdf2dc3473f5de08ac8e361dc8804 (patch) | |
tree | b9d030f92ea2179f0e265fe75d0dc3a60ce9fdeb /sys-apps/ethq | |
parent | net-misc/ipv6calc: drop Werror (diff) | |
download | gentoo-6159690ee96fdf2dc3473f5de08ac8e361dc8804.tar.gz gentoo-6159690ee96fdf2dc3473f5de08ac8e361dc8804.tar.bz2 gentoo-6159690ee96fdf2dc3473f5de08ac8e361dc8804.zip |
sys-apps/ethq: wrt 770943
Closes: https://bugs.gentoo.org/770943
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/ethq')
-rw-r--r-- | sys-apps/ethq/ethq-0.6.1-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/sys-apps/ethq/ethq-0.6.1-r1.ebuild b/sys-apps/ethq/ethq-0.6.1-r1.ebuild new file mode 100644 index 000000000000..b95aba17d42b --- /dev/null +++ b/sys-apps/ethq/ethq-0.6.1-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV=${PV//./_} +MY_P=${PN}-${MY_PV} + +inherit toolchain-funcs + +DESCRIPTION="Ethernet NIC Queue stats viewer" +HOMEPAGE="https://github.com/isc-projects/ethq" +SRC_URI="https://github.com/isc-projects/ethq/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="sys-libs/ncurses:0" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + + # Respect FLAGS, remove Werror + sed -i -e '/CXXFLAGS/s/= -O3/+=/' \ + -e '/CXXFLAGS/s/ -Werror//' \ + -e '/LDFLAGS/s/=/+=/' Makefile || die "sed failed for Makefile" + + if ! use test ; then + sed -i '/TARGETS/s/ethq_test//' Makefile \ + || die "sed failed for USE flag test" + fi +} + +src_compile() { + # override for ncurses[tinfo] + emake CXX="$(tc-getCXX)" LIBS_CURSES="$($(tc-getPKG_CONFIG) --libs ncurses)" +} + +src_test() { + local driver + for driver in tests/* ; do + "${S}"/ethq_test "${driver##*/}" "${driver}" \ + || die "test failed on ${driver}" + done +} + +src_install() { + einstalldocs + dobin ethq +} |