Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmrecord/
Date: Thu, 02 Aug 2018 20:24:51
Message-Id: 1533241290.7e27b2242c504059f17657e6c3058dde7a16eed3.voyageur@gentoo
1 commit: 7e27b2242c504059f17657e6c3058dde7a16eed3
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 24 17:51:36 2018 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 2 20:21:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e27b224
7
8 x11-plugins/wmrecord: EAPI7, improve ebuild
9
10 x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild | 46 +++++++++++++++++++++++++
11 1 file changed, 46 insertions(+)
12
13 diff --git a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
14 new file mode 100644
15 index 00000000000..f82663c2608
16 --- /dev/null
17 +++ b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
18 @@ -0,0 +1,46 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=7
23 +
24 +inherit desktop toolchain-funcs
25 +
26 +DESCRIPTION="A Dockable General Purpose Recording Utility"
27 +HOMEPAGE="http://ret009t0.eresmas.net/other_software/wmrecord/"
28 +SRC_URI="http://ret009t0.eresmas.net/other_software/wmrecord/${PN}-1.0.5_20040218_0029.tgz"
29 +
30 +RDEPEND="
31 + x11-libs/libX11
32 + x11-libs/libXext
33 + x11-libs/libXpm"
34 +DEPEND="${RDEPEND}
35 + x11-base/xorg-proto"
36 +
37 +SLOT="0"
38 +LICENSE="GPL-2"
39 +KEYWORDS="~ppc ~x86"
40 +
41 +S="${WORKDIR}/${PN}-1.0.5"
42 +
43 +src_prepare() {
44 + default
45 + #prevent auto-stripping of binaries. Closes bug #252112
46 + sed -i 's/install -s -o/install -o/' "${S}/Makefile" || die
47 +
48 + #Honour Gentoo LDFLAGS. Closes bug #336753.
49 + sed -i 's/-o $@ wmrecord.o/$(LDFLAGS) -o $@ wmrecord.o/' "${S}/Makefile" || die
50 +
51 + #Fix buffer overflow. Closes bug #336754.
52 + sed -i 's/sprintf(cse, "000");/snprintf(cse, "000", 3);/' "${S}/wmrecord.c" || die
53 +}
54 +
55 +src_compile() {
56 + emake CC=$(tc-getCC) CFLAGS="${CFLAGS} -Wall"
57 +}
58 +
59 +src_install() {
60 + dobin ${PN}
61 + doman man/${PN}.1
62 + domenu "${FILESDIR}"/${PN}.desktop
63 + einstalldocs
64 +}