Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/pipebench/, app-benchmarks/pipebench/files/
Date: Thu, 28 Dec 2017 15:07:44
Message-Id: 1514473573.db695fb165071cb86660dda3f99bc1930d54150d.soap@gentoo
1 commit: db695fb165071cb86660dda3f99bc1930d54150d
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 28 13:10:05 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 28 15:06:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db695fb1
7
8 app-benchmarks/pipebench: [QA] Respect LDFLAGS
9
10 Closes: https://bugs.gentoo.org/334909
11 Package-Manager: Portage-2.3.19, Repoman-2.3.6
12
13 .../files/pipebench-0.40-fix-build-system.patch | 21 ++++++++++++++++++++
14 app-benchmarks/pipebench/pipebench-0.40-r2.ebuild | 23 +++++-----------------
15 2 files changed, 26 insertions(+), 18 deletions(-)
16
17 diff --git a/app-benchmarks/pipebench/files/pipebench-0.40-fix-build-system.patch b/app-benchmarks/pipebench/files/pipebench-0.40-fix-build-system.patch
18 new file mode 100644
19 index 00000000000..2d79d80ef7b
20 --- /dev/null
21 +++ b/app-benchmarks/pipebench/files/pipebench-0.40-fix-build-system.patch
22 @@ -0,0 +1,21 @@
23 +--- a/Makefile
24 ++++ b/Makefile
25 +@@ -1,16 +1,11 @@
26 + # $Id: Makefile,v 1.2 2002/12/15 19:58:36 marvin Exp $
27 +
28 +-CC=gcc
29 +-CFLAGS=-Wall -w -pedantic
30 +
31 + all: pipebench
32 + doc: pipebench.1
33 + install: pipebench
34 +- cp pipebench /usr/local/bin/
35 +- cp pipebench.1 /usr/local/man/man1/
36 +-
37 +-pipebench: pipebench.c
38 +- $(CC) $(CFLAGS) -o pipebench pipebench.c
39 ++ mkdir -p $(DESTDIR)$(EPREFIX)/usr/bin && cp pipebench $(DESTDIR)$(EPREFIX)/usr/bin/
40 ++ mkdir -p $(DESTDIR)$(EPREFIX)/usr/share/man/man1 && cp pipebench.1 $(DESTDIR)$(EPREFIX)/usr/share/man/man1/
41 +
42 + pipebench.1: pipebench.yodl
43 + yodl2man -o pipebench.1 pipebench.yodl
44
45 diff --git a/app-benchmarks/pipebench/pipebench-0.40-r2.ebuild b/app-benchmarks/pipebench/pipebench-0.40-r2.ebuild
46 index 610bcc5df90..2542f0f9d36 100644
47 --- a/app-benchmarks/pipebench/pipebench-0.40-r2.ebuild
48 +++ b/app-benchmarks/pipebench/pipebench-0.40-r2.ebuild
49 @@ -3,7 +3,7 @@
50
51 EAPI=6
52
53 -inherit toolchain-funcs
54 +inherit flag-o-matic toolchain-funcs
55
56 DESCRIPTION="Measures the speed of stdin/stdout communication"
57 HOMEPAGE="http://www.habets.pp.se/synscan/programs.php?prog=pipebench"
58 @@ -14,22 +14,9 @@ SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~arm-linux ~x86-linux"
60 IUSE=""
61
62 -src_prepare() {
63 - sed -i Makefile \
64 - -e 's:CFLAGS=-Wall:CFLAGS+= -Wall:' \
65 - -e 's:$(CFLAGS) -o:$(LDFLAGS) &:g' \
66 - -e "s:/usr/local/bin/:${ED}/usr/bin:" \
67 - -e "s:/usr/local/man/man1/:${ED}/usr/share/man/man1:" \
68 - || die "sed Makefile"
69 - default
70 -}
71 -
72 -src_compile() {
73 - emake CC=$(tc-getCC)
74 -}
75 +PATCHES=( "${FILESDIR}"/${PN}-0.40-fix-build-system.patch )
76
77 -src_install() {
78 - dodir /usr/{bin,share/man/man1}
79 - emake install
80 - dodoc README
81 +src_configure() {
82 + append-cflags -Wall -w -pedantic
83 + tc-export CC
84 }