summaryrefslogtreecommitdiff
path: root/x11-plugins/wmmoonclock
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/wmmoonclock')
-rw-r--r--x11-plugins/wmmoonclock/Manifest3
-rw-r--r--x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch37
-rw-r--r--x11-plugins/wmmoonclock/wmmoonclock-1.29.ebuild4
3 files changed, 42 insertions, 2 deletions
diff --git a/x11-plugins/wmmoonclock/Manifest b/x11-plugins/wmmoonclock/Manifest
index fd28dc381459..7983bfee23e4 100644
--- a/x11-plugins/wmmoonclock/Manifest
+++ b/x11-plugins/wmmoonclock/Manifest
@@ -1,3 +1,4 @@
+AUX wmmoonclock-1.29-gcc-10.patch 990 BLAKE2B 4a2eaf6adacf7d63ca50b5096117acdbdc83be22b1563f81865495b105e1781e981bf6b5fdb0a0ed97c27d50d059a2d958252a21244a22a475abfd3e9b476cf5 SHA512 5de4007d9660a44c722e660a20833f3ebc34e855ecc3728323516982d1536c360072a7ab1fd5b07ad608460e7190ac320deb75ebf31ae811b69255f542d8459a
DIST wmmoonclock-1.29.tar.gz 234991 BLAKE2B 7d38b4758d6bd4b78d069ae7d872c60f1a43a25fc424a51615ff0506d249bc0ee416cec9dc389ea27281f0b1eafa299bb126f0ea177334508ebb2b3542162162 SHA512 c36850034a0f3b7863ecfd03f73f91f9b935f645362cebeb33186873f700585d682dc5c35f3b5d67932afd3c5699fca56bf012e8f8a06615ff52c44a47ba552e
-EBUILD wmmoonclock-1.29.ebuild 460 BLAKE2B 5f366495a7360c585399b1997721d16bb5cb6841dbfd5846c5b3f73898233f04a9d6a5d87dbddf554a8e461392eec5c6aeb1a6cd91616aa094b033df5d12062f SHA512 6c27394ed6250538287f12de339e4fe2e92660ba67419e846fef6883ea875d9f939a8ecb6404e111b5a0d048b6586135d27a011e6e168adad735b35849a105c1
+EBUILD wmmoonclock-1.29.ebuild 505 BLAKE2B 6176851b991d94be6c07f068905a2ffdae0e07eea8045e702bdc48b9b9a2c05576754c3cb3783d4481df7e9212ed701bd37ec64425189c9fef5df18d5e3269c0 SHA512 25e781aa2b007a44e447de9eef7c4a431c23ded06c6528de36eb18ff496664ba4a87a17de0d3b55c0ea28ebc3e3839d0826bb6632cf6de81591ed928799cbbb6
MISC metadata.xml 717 BLAKE2B e5c17235e51c6f1491c4b9005324c9f8d8a718bd4ded9dd8e7b314109c69c88cb7583a57d7023ccf7dd06a86da4d5980152b4fdde077d43f8bf633027b0ba4eb SHA512 8b4e39220460db02c6adc76d282fa041650b96af82c46f7f308e8afa098d3f016a5646079f48e37b3814d6e168f0468f4ce921225e28bb3fe2b0ab5832a76a1f
diff --git a/x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch b/x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch
new file mode 100644
index 000000000000..9554254e6239
--- /dev/null
+++ b/x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch
@@ -0,0 +1,37 @@
+diff -Naur wmmoonclock-1.29.orig/src/xutils.c wmmoonclock-1.29/src/xutils.c
+--- wmmoonclock-1.29.orig/src/xutils.c 2017-08-15 00:32:44.000000000 +0200
++++ wmmoonclock-1.29/src/xutils.c 2020-02-27 11:42:33.266076617 +0100
+@@ -52,6 +52,13 @@
+ XpmIcon wmgen;
+ Pixmap pixmask;
+
++Display *display;
++Window Root;
++Window iconwin, win;
++int screen;
++int DisplayDepth;
++
++
+
+
+
+diff -Naur wmmoonclock-1.29.orig/src/xutils.h wmmoonclock-1.29/src/xutils.h
+--- wmmoonclock-1.29.orig/src/xutils.h 2017-08-15 00:31:51.000000000 +0200
++++ wmmoonclock-1.29/src/xutils.h 2020-02-27 11:41:58.180058348 +0100
+@@ -20,11 +20,11 @@
+ /*
+ * Global variable
+ */
+-Display *display;
+-Window Root;
+-Window iconwin, win;
+-int screen;
+-int DisplayDepth;
++extern Display *display;
++extern Window Root;
++extern Window iconwin, win;
++extern int screen;
++extern int DisplayDepth;
+
+
+
diff --git a/x11-plugins/wmmoonclock/wmmoonclock-1.29.ebuild b/x11-plugins/wmmoonclock/wmmoonclock-1.29.ebuild
index 0345f7cf9a51..9530051db958 100644
--- a/x11-plugins/wmmoonclock/wmmoonclock-1.29.ebuild
+++ b/x11-plugins/wmmoonclock/wmmoonclock-1.29.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -17,3 +17,5 @@ RDEPEND="x11-libs/libX11
x11-libs/libXpm"
DEPEND="${RDEPEND}
x11-base/xorg-proto"
+
+PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch )