[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmrecord/

2022-03-19 Thread Sam James
commit: fe1fa5e0054d389665aa261f6f8aa33ffa080973
Author: Sam James  gentoo  org>
AuthorDate: Sun Mar 20 00:15:33 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Mar 20 00:15:33 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe1fa5e0

x11-plugins/wmrecord: [QA] fix tc-get* quoting

This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James  gentoo.org>

 x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 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
index 565cf6323752..2a7bb3927249 100644
--- a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
+++ b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -37,7 +37,7 @@ src_prepare() {
 }
 
 src_compile() {
-   emake CC=$(tc-getCC) CFLAGS="${CFLAGS} -Wall"
+   emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall"
 }
 
 src_install() {



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmrecord/, x11-plugins/wmrecord/files/

2020-06-13 Thread Bernard Cafarelli
commit: 80332b22e81f0a4ea49fa7515c9388758e8d6667
Author: Bernard Cafarelli  gentoo  org>
AuthorDate: Sat Jun 13 08:59:06 2020 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Sat Jun 13 09:04:24 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80332b22

x11-plugins/wmrecord: fix build with -fno-common

Closes: https://bugs.gentoo.org/726206
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Bernard Cafarelli  gentoo.org>

 .../files/wmrecord-1.0.5.3-fno-common.patch| 29 ++
 x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild|  4 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/x11-plugins/wmrecord/files/wmrecord-1.0.5.3-fno-common.patch 
b/x11-plugins/wmrecord/files/wmrecord-1.0.5.3-fno-common.patch
new file mode 100644
index 000..a70b5f87b0e
--- /dev/null
+++ b/x11-plugins/wmrecord/files/wmrecord-1.0.5.3-fno-common.patch
@@ -0,0 +1,29 @@
+diff -Naur wmrecord-1.0.5.orig/wmgeneral/wmgeneral.c 
wmrecord-1.0.5/wmgeneral/wmgeneral.c
+--- wmrecord-1.0.5.orig/wmgeneral/wmgeneral.c  1999-07-05 20:40:04.0 
+0200
 wmrecord-1.0.5/wmgeneral/wmgeneral.c   2020-06-13 10:57:57.237900077 
+0200
+@@ -66,6 +66,9 @@
+ char  *Geometry = "";
+ GCNormalGC;
+ Pixmappixmask;
++Display   *display;
++Window  Root, iconwin, win;
++XpmIcon   wmgen;
+ 
+   /*/
+  /* Mouse Regions */
+diff -Naur wmrecord-1.0.5.orig/wmgeneral/wmgeneral.h 
wmrecord-1.0.5/wmgeneral/wmgeneral.h
+--- wmrecord-1.0.5.orig/wmgeneral/wmgeneral.h  1999-06-01 15:46:55.0 
+0200
 wmrecord-1.0.5/wmgeneral/wmgeneral.h   2020-06-13 10:57:51.055895156 
+0200
+@@ -36,9 +36,9 @@
+  /* Global variable */
+ /***/
+ 
+-Display   *display;
+-Window  Root, iconwin, win;
+-XpmIcon   wmgen;
++extern Display*display;
++extern Window  Root, iconwin, win;
++extern XpmIconwmgen;
+ 
+   /***/
+  /* Function Prototypes */

diff --git a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild 
b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
index 4be4f50aa08..565cf632375 100644
--- a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
+++ b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,6 +22,8 @@ KEYWORDS="~ppc x86"
 
 S="${WORKDIR}/${PN}-1.0.5"
 
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
+
 src_prepare() {
default
#prevent auto-stripping of binaries. Closes bug #252112



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmrecord/

2018-09-22 Thread Mikle Kolyada
commit: dbb48901bae1794cbf93a6e4fd340ef4349e2569
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sat Sep 22 11:47:34 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sat Sep 22 11:47:34 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbb48901

x11-plugins/wmrecord: Drop old

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 x11-plugins/wmrecord/wmrecord-1.0.5.3-r1.ebuild | 51 -
 1 file changed, 51 deletions(-)

diff --git a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r1.ebuild 
b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r1.ebuild
deleted file mode 100644
index 7323122856a..000
--- a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r1.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit eutils
-
-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="x86 ~ppc"
-IUSE=""
-
-S=${WORKDIR}/${PN}-1.0.5
-
-src_unpack() {
-   unpack ${A}
-
-   #prevent auto-stripping of binaries. Closes bug #252112
-   sed -i 's/install -s -o/install -o/' "${S}/Makefile"
-
-   #Honour Gentoo LDFLAGS. Closes bug #336753.
-   sed -i 's/-o $@ wmrecord.o/$(LDFLAGS) -o $@ wmrecord.o/' "${S}/Makefile"
-
-   #Fix buffer overflow. Closes bug #336754.
-   sed -i 's/sprintf(cse, "000");/snprintf(cse, "000", 3);/' 
"${S}/wmrecord.c"
-}
-
-src_compile() {
-   emake CFLAGS="${CFLAGS} -Wall" || die "make failed"
-}
-
-src_install() {
-   dodir /usr/bin
-   dodir /usr/share/man/man1
-   einstall BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/man1" || die 
"make install failed"
-
-   dodoc Changelog README TODO
-
-   domenu "${FILESDIR}"/${PN}.desktop
-}



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmrecord/

2018-09-19 Thread Thomas Deutschmann
commit: f9bf2aa80c584e06bb63686cbf59e0a1716b477b
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Wed Sep 19 18:17:44 2018 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Wed Sep 19 18:28:02 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9bf2aa8

x11-plugins/wmrecord: x86 stable (bug #666088)

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild 
b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
index f82663c2608..4be4f50aa08 100644
--- a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
+++ b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild
@@ -18,7 +18,7 @@ DEPEND="${RDEPEND}
 
 SLOT="0"
 LICENSE="GPL-2"
-KEYWORDS="~ppc ~x86"
+KEYWORDS="~ppc x86"
 
 S="${WORKDIR}/${PN}-1.0.5"
 



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmrecord/

2018-08-02 Thread Bernard Cafarelli
commit: 7e27b2242c504059f17657e6c3058dde7a16eed3
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Tue Jul 24 17:51:36 2018 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Thu Aug  2 20:21:30 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e27b224

x11-plugins/wmrecord: EAPI7, improve ebuild

 x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild | 46 +
 1 file changed, 46 insertions(+)

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 000..f82663c2608
--- /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
+}