diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2018-10-27 00:26:31 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-11-03 10:40:10 +0100 |
commit | 01dd122f505e72061b26a082ff84338ed77986f0 (patch) | |
tree | 1911afcb9def2d8e1d54db178c510ab352d6990a /sys-apps/ethq | |
parent | app-benchmarks/stress-ng: drop old version (diff) | |
download | gentoo-01dd122f505e72061b26a082ff84338ed77986f0.tar.gz gentoo-01dd122f505e72061b26a082ff84338ed77986f0.tar.bz2 gentoo-01dd122f505e72061b26a082ff84338ed77986f0.zip |
sys-apps/ethq: version bump to 0.6.1
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10244
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-apps/ethq')
-rw-r--r-- | sys-apps/ethq/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/ethq/ethq-0.6.1.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/sys-apps/ethq/Manifest b/sys-apps/ethq/Manifest index e96200ec1042..424470715491 100644 --- a/sys-apps/ethq/Manifest +++ b/sys-apps/ethq/Manifest @@ -1 +1,2 @@ DIST ethq-0_5_0.tar.gz 15830 BLAKE2B b18326f1564d08f94500aa934838053a3b84b78f3d6fa90984c3730ac8922fbe3fd5141d5e9ff4a2c8db54bb8d2c2e493f5583f46b287324d4327583f29b8bf5 SHA512 989978e0dfbb553497f5325807f2d09e4e2842de9df5f5717e832312141adba3e99ef1d57dde4ac0fdd2919c9f5a0eadef5b5f76a300ab4ac7e881c8509fbbec +DIST ethq-0_6_1.tar.gz 23475 BLAKE2B 04d933294ba432ed69108022b0a2b13c47537902f66c6969bbd5afca144a977a6215a2164cbefd975d0f599bd8503feca79ef9e38856d8c9e6943c2cd2c3f99f SHA512 72c38ecb0cb6c7d6f522d99f2a6ec08bd2c42065d5f83d86890706a52420006fcdb5774a1457a66ccd5e174113e09c2a4285d311af334616a01c32ad8753126d diff --git a/sys-apps/ethq/ethq-0.6.1.ebuild b/sys-apps/ethq/ethq-0.6.1.ebuild new file mode 100644 index 000000000000..71eae77cf755 --- /dev/null +++ b/sys-apps/ethq/ethq-0.6.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 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" + +DEPEND="sys-libs/ncurses:0" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + + # Respect FLAGS + sed -i -e '/CXXFLAGS/s/= -O3/+=/' \ + -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 +} |