summaryrefslogtreecommitdiff
path: root/x11-plugins/wmbinclock
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-01-07 06:41:06 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-01-07 06:41:06 +0000
commitd69399c7befdd98cda62d6a1788ae2aa7f104c5e (patch)
treeeac7184f4cfe7d67580c1d0a0d9942a91e6cb4ee /x11-plugins/wmbinclock
parente4d9d6796d5018e338f0b27a3bc97716195bf0b8 (diff)
gentoo auto-resync : 07:01:2025 - 06:41:06
Diffstat (limited to 'x11-plugins/wmbinclock')
-rw-r--r--x11-plugins/wmbinclock/Manifest4
-rw-r--r--x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-14.patch77
-rw-r--r--x11-plugins/wmbinclock/wmbinclock-0.51-r1.ebuild (renamed from x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild)19
3 files changed, 90 insertions, 10 deletions
diff --git a/x11-plugins/wmbinclock/Manifest b/x11-plugins/wmbinclock/Manifest
index 40ad0f2903e7..7ded6bb4ebfd 100644
--- a/x11-plugins/wmbinclock/Manifest
+++ b/x11-plugins/wmbinclock/Manifest
@@ -1,6 +1,6 @@
AUX wmbinclock-0.5-gcc-10.patch 1092 BLAKE2B 3955dcc6ac5e123bbab3e390278a88ce1038519d2d6437e67fc5784495faeb1def9658d93ba8825e46130c7e99fd362f51661b01156aeeea6f1aaf2118b91535 SHA512 86d93d7a68a8ac41eb446e3836aac5c6477814869e6b4795df521b442eabc344344dc1a5c51211ef5a74eed334bc4ca2ba443339221b81ca1e7e219acf63be66
-DIST wmbinclock-0.5.tar.bz2 15909 BLAKE2B 71a5e53fea8f042bd8e01c0a8dde9057b22e398a4d483b556221d8344b5542f097e835f0d4eafd7cf24964b4b08f04f844c476cddc443ebc8f469e8fbb5142ec SHA512 f0f1f46b19e9c34f9168e03df2d4be2f9c7a73b09dd8247a7bc977309a3354069adf34032f3c0106aa763fe259993176edd84b029941191d05a11505e27de695
+AUX wmbinclock-0.5-gcc-14.patch 1801 BLAKE2B 8b72ebea5f9b859cba63f8b2bbbd4a8a31323d5987fc5d43eac3933cdaa432e25abebcfa3062b7ed1e81a5f9873841014d46f8863c65d52c0bc8d48e58cbaf49 SHA512 e50abfebd450be091201cf443f670691e76516ccb9e1d2b1ac4eafa97ee8786571c1e08598c81b0015278f902934adc10d79db39fc8f0efa8f5f4cf2697eafc4
DIST wmbinclock-0.51.tar.gz 11501 BLAKE2B f727a9497a452525bf08daf1a30e8485ca85777a0b938c45634a779cd1adb92afd172ec9455b46e832761d8a45df7a57a4bd93ebbeaa4637da5edb6087f7e30c SHA512 343ac121c93801d69beeef6b4e5ca52020229f61ac723de9b7ee7bea3fb50c51d793b217f848ba9672eb97ec1b70629186e29c27f907798af9d33d5a4faea069
-EBUILD wmbinclock-0.5-r1.ebuild 732 BLAKE2B 00e14cf50953fb63b64a561893f8218f7741d47f2ecd00684e14ee31c6ff35b3af0290fb4ba0f5b00b655cee8befa53accd997cc23c48142993160ad598cc2c5 SHA512 3158421fef786e9f2554faee07c3a625f65f332e8ea53799f5bf4b4652de5650ae44436a4c88c63c5201c8930f17da73326e9a6827708d67b347250d6732bef7
+EBUILD wmbinclock-0.51-r1.ebuild 763 BLAKE2B 25d7d61caf6df7ca7b657e4da56f1d23a4078cbe57e723a1d30b99c2488e192fb023e8b1c41a19ebba6544d809b37bd6a8ef00629a73ad2775a995823ebc3866 SHA512 db9d931f22885b5845efac23ce543f1de302fe535e29f4086f515229fb5ba04372aa68ca7d09831bdadb6ce7284789ee5e220271a69af077925af88c8df811f1
EBUILD wmbinclock-0.51.ebuild 720 BLAKE2B 572830dd499a43779ad3f022449c79c305a87b13645d7f320e870764c8b751164d2898577e70775ad2c228520838c599bdbebce49a16b5740b1a3fdfb862674e SHA512 b6ba19fa5cd924940d435de034f00c35e45bc89a6db9a143579d9e4ad4c0494e64840a03992aefb2800ddd45956c91b38b5ef6c0f227cad577b652161cfde5de
MISC metadata.xml 537 BLAKE2B 755ad53b17327828a1877c0a9f911cea571cbd90e2368075061fa09e41d69d72be397b11a010239e85855da4b2f711fad1a8ab3993c2af2fe0e24c148eda4722 SHA512 75f5cd11f71309afb91277e84bd9f3e849aaa86b8069cb66acb1073409dd1c32a3b3903b388d5486053fe0cc42710019dd0c8cbd649cd28ba4e8794f8fa8eadb
diff --git a/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-14.patch b/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-14.patch
new file mode 100644
index 000000000000..80e8b99dbf54
--- /dev/null
+++ b/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-14.patch
@@ -0,0 +1,77 @@
+https://bugs.gentoo.org/877109
+fix type confusion
+also add fix glib feature macro for usleep
+diff -ru a/wmBinClock.c b/wmBinClock.c
+--- a/wmBinClock.c 2025-01-05 11:53:41.163293987 +0400
++++ b/wmBinClock.c 2025-01-05 11:55:33.251648423 +0400
+@@ -6,6 +6,7 @@
+ * Copyright (C) 2015 - Thomas Kuiper <tkuiper at inxsoft.net> and Sune Molgaard <sune at molgaard.org> (BSD license)
+ */
+
++#define _DEFAULT_SOURCE
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+@@ -66,7 +67,7 @@
+ int DisplayDepth;
+ GC NormalGC;
+
+-void IntToBinary(int x, int *str[]);
++void IntToBinary(int x, int str[]);
+ void PrintHelp(char err[]);
+
+ int main(int argc, char *argv[])
+@@ -667,7 +668,7 @@
+ }
+
+ tmp_hour = tmworld->tm_hour;
+- IntToBinary(tmp_hour, &tmp_str);
++ IntToBinary(tmp_hour, tmp_str);
+
+ for (s = 0; s < 6; s++)
+ {
+@@ -678,7 +679,7 @@
+ }
+
+ tmp_minute = tmworld->tm_min;
+- IntToBinary(tmp_minute, &tmp_str);
++ IntToBinary(tmp_minute, tmp_str);
+ for (s = 0; s < 6; s++)
+ {
+ if (tmp_str[s] == 1)
+@@ -688,7 +689,7 @@
+ }
+
+ tmp_second = tmworld->tm_sec;
+- IntToBinary(tmp_second, &tmp_str);
++ IntToBinary(tmp_second, tmp_str);
+
+ for (s = 0; s < 6; s++)
+ {
+@@ -699,7 +700,7 @@
+ }
+
+ tmp_day = tmworld->tm_mday;
+- IntToBinary(tmp_day, &tmp_str);
++ IntToBinary(tmp_day, tmp_str);
+
+ for (s = 0; s < 6; s++)
+ {
+@@ -710,7 +711,7 @@
+ }
+
+ tmp_month = tmworld->tm_mon + 1;
+- IntToBinary(tmp_month, &tmp_str);
++ IntToBinary(tmp_month, tmp_str);
+
+ for (s = 0; s < 6; s++)
+ {
+@@ -780,7 +781,7 @@
+ usleep(DELAY);
+ }
+ }
+-void IntToBinary(int x, int *str[])
++void IntToBinary(int x, int str[])
+ {
+ int i = 0;
+ int counter = 0;
diff --git a/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild b/x11-plugins/wmbinclock/wmbinclock-0.51-r1.ebuild
index f74bf755749f..f95e8c142994 100644
--- a/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild
+++ b/x11-plugins/wmbinclock/wmbinclock-0.51-r1.ebuild
@@ -1,17 +1,17 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit toolchain-funcs
DESCRIPTION="a nifty little binary clock dockapp"
HOMEPAGE="https://www.dockapps.net/wmbinclock"
-SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.bz2"
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
+LICENSE="BSD"
SLOT="0"
-KEYWORDS="amd64 ppc ppc64 ~sparc x86"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
RDEPEND="x11-libs/libX11
x11-libs/libXpm
@@ -19,7 +19,11 @@ RDEPEND="x11-libs/libX11
DEPEND="${RDEPEND}
x11-base/xorg-proto"
-PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5-gcc-10.patch
+ "${FILESDIR}"/${PN}-0.5-gcc-14.patch
+)
+DOCS=( CHANGELOG README.md )
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
@@ -29,6 +33,5 @@ src_compile() {
src_install() {
dobin wmBinClock
- dosym wmBinClock /usr/bin/${PN}
- dodoc CHANGELOG README
+ einstalldocs
}