app-misc/cpipe: Add cpipe to the tree.
authorPatrice Clement <monsieurp@gentoo.org>
Tue, 8 Mar 2016 10:03:55 +0000 (10:03 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 8 Mar 2016 10:04:26 +0000 (10:04 +0000)
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 <bug@mejor.pl>
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Package-Manager: portage-2.2.26

app-misc/cpipe/Manifest [new file with mode: 0644]
app-misc/cpipe/cpipe-3.0.3.ebuild [new file with mode: 0644]
app-misc/cpipe/metadata.xml [new file with mode: 0644]

diff --git a/app-misc/cpipe/Manifest b/app-misc/cpipe/Manifest
new file mode 100644 (file)
index 0000000..2fedec6
--- /dev/null
@@ -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 (file)
index 0000000..3821e55
--- /dev/null
@@ -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 (file)
index 0000000..449e6b0
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <upstream>
+               <remote-id type="github">HaraldKi/cpipe</remote-id>
+       </upstream>
+       <maintainer type="person">
+               <email>monsieurp@gentoo.org</email>
+               <name>Patrice Clement</name>
+       </maintainer>
+</pkgmetadata>