From: Patrice Clement Date: Tue, 8 Mar 2016 10:03:55 +0000 (+0000) Subject: app-misc/cpipe: Add cpipe to the tree. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=bc88c93259c52696b2d171e6bf7b09d543ddc082;p=gentoo.git app-misc/cpipe: Add cpipe to the tree. cpipe is a tiny C program that measures how fast data is sent through a UNIX pipe. Gentoo-Bug: https://bugs.gentoo.org/497618 Reporter: Marcin Mirosław Signed-off-by: Patrice Clement Package-Manager: portage-2.2.26 --- diff --git a/app-misc/cpipe/Manifest b/app-misc/cpipe/Manifest new file mode 100644 index 000000000000..2fedec61bdb0 --- /dev/null +++ b/app-misc/cpipe/Manifest @@ -0,0 +1 @@ +DIST cpipe-3.0.3.tar.gz 16392 SHA256 3803a71233a4cd8dd3bfba5a52d3320ed037740cf3a45b07cc30d8be457ea1cc SHA512 255e3833ddaf27af1768e650a47d0565224ddd22137636ae0fae491a4d03f523b74a76f26b261c71442a7509f42eee64b75fbcf7078641a64b66a2590bb803b3 WHIRLPOOL e9bba8ff169055c41e71f536eb99155a2f4396c4f078fa3f0f6e6087ecd0029f8a5f04f4a9e1a27d385d187f472ffce5f9b001d3975fba54e27ef5d422c88ba1 diff --git a/app-misc/cpipe/cpipe-3.0.3.ebuild b/app-misc/cpipe/cpipe-3.0.3.ebuild new file mode 100644 index 000000000000..3821e559ad2b --- /dev/null +++ b/app-misc/cpipe/cpipe-3.0.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="Counting pipe, measures data transfered over pipe" +HOMEPAGE="https://github.com/HaraldKi/cpipe" +SRC_URI="https://github.com/HaraldKi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + sed -i \ + -e "s/CFLAGS =/CFLAGS =${CFLAGS} /" \ + -e "s/-lm/-lm ${LDFLAGS}/" \ + -e "s/744/644/" makefile || die "sed failed" +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dobin "${PN}" + doman "${PN}.1" +} diff --git a/app-misc/cpipe/metadata.xml b/app-misc/cpipe/metadata.xml new file mode 100644 index 000000000000..449e6b0b1299 --- /dev/null +++ b/app-misc/cpipe/metadata.xml @@ -0,0 +1,11 @@ + + + + + HaraldKi/cpipe + + + monsieurp@gentoo.org + Patrice Clement + +