summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-07-24 19:51:36 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2018-08-02 22:21:30 +0200
commit7e27b2242c504059f17657e6c3058dde7a16eed3 (patch)
tree85e1376ec9665fcb90a26d68d1eaf82259785094 /x11-plugins
parentx11-plugins/wmrack: EAPI7, improve ebuild (diff)
downloadgentoo-7e27b2242c504059f17657e6c3058dde7a16eed3.tar.gz
gentoo-7e27b2242c504059f17657e6c3058dde7a16eed3.tar.bz2
gentoo-7e27b2242c504059f17657e6c3058dde7a16eed3.zip
x11-plugins/wmrecord: EAPI7, improve ebuild
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
new file mode 100644
index 000000000000..f82663c26082
--- /dev/null
+++ b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop toolchain-funcs
+
+DESCRIPTION="A Dockable General Purpose Recording Utility"
+HOMEPAGE="http://ret009t0.eresmas.net/other_software/wmrecord/"
+SRC_URI="http://ret009t0.eresmas.net/other_software/wmrecord/${PN}-1.0.5_20040218_0029.tgz"
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~ppc ~x86"
+
+S="${WORKDIR}/${PN}-1.0.5"
+
+src_prepare() {
+ default
+ #prevent auto-stripping of binaries. Closes bug #252112
+ sed -i 's/install -s -o/install -o/' "${S}/Makefile" || die
+
+ #Honour Gentoo LDFLAGS. Closes bug #336753.
+ sed -i 's/-o $@ wmrecord.o/$(LDFLAGS) -o $@ wmrecord.o/' "${S}/Makefile" || die
+
+ #Fix buffer overflow. Closes bug #336754.
+ sed -i 's/sprintf(cse, "000");/snprintf(cse, "000", 3);/' "${S}/wmrecord.c" || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS} -Wall"
+}
+
+src_install() {
+ dobin ${PN}
+ doman man/${PN}.1
+ domenu "${FILESDIR}"/${PN}.desktop
+ einstalldocs
+}