From c33f16b0f0cb13ea27db76be99d779af4431a89d Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sun, 20 Nov 2022 19:35:14 -0500 Subject: x11-plugins/wmstickynotes: fix build w/ upcoming clang16 Also set bit more explicit deps while revbumping. Closes: https://bugs.gentoo.org/874927 Signed-off-by: Ionen Wolkens --- .../files/wmstickynotes-0.7-clang16.patch | 8 ++++++ .../wmstickynotes/wmstickynotes-0.7-r1.ebuild | 32 ++++++++++++++++++++++ x11-plugins/wmstickynotes/wmstickynotes-0.7.ebuild | 15 ---------- 3 files changed, 40 insertions(+), 15 deletions(-) create mode 100644 x11-plugins/wmstickynotes/files/wmstickynotes-0.7-clang16.patch create mode 100644 x11-plugins/wmstickynotes/wmstickynotes-0.7-r1.ebuild delete mode 100644 x11-plugins/wmstickynotes/wmstickynotes-0.7.ebuild (limited to 'x11-plugins') diff --git a/x11-plugins/wmstickynotes/files/wmstickynotes-0.7-clang16.patch b/x11-plugins/wmstickynotes/files/wmstickynotes-0.7-clang16.patch new file mode 100644 index 000000000000..7674dcfd4984 --- /dev/null +++ b/x11-plugins/wmstickynotes/files/wmstickynotes-0.7-clang16.patch @@ -0,0 +1,8 @@ +https://bugs.gentoo.org/874927 +--- a/wmstickynotes.h ++++ b/wmstickynotes.h +@@ -34,3 +34,3 @@ + +-const num_color_schemes = 8; ++const int num_color_schemes = 8; + ColorScheme color_schemes[] = { diff --git a/x11-plugins/wmstickynotes/wmstickynotes-0.7-r1.ebuild b/x11-plugins/wmstickynotes/wmstickynotes-0.7-r1.ebuild new file mode 100644 index 000000000000..3058805ac1e9 --- /dev/null +++ b/x11-plugins/wmstickynotes/wmstickynotes-0.7-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="A dockapp for keeping small notes around on the desktop" +HOMEPAGE="https://sourceforge.net/projects/wmstickynotes/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:2 + x11-libs/libX11" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto" + +PATCHES=( + "${FILESDIR}"/${P}-clang16.patch +) + +src_configure() { + append-cppflags -D_GNU_SOURCE #874927 + + default +} diff --git a/x11-plugins/wmstickynotes/wmstickynotes-0.7.ebuild b/x11-plugins/wmstickynotes/wmstickynotes-0.7.ebuild deleted file mode 100644 index 8b8830387ff3..000000000000 --- a/x11-plugins/wmstickynotes/wmstickynotes-0.7.ebuild +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DESCRIPTION="A dockapp for keeping small notes around on the desktop" -HOMEPAGE="https://sourceforge.net/projects/wmstickynotes/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" - -DEPEND="x11-libs/gtk+:2" -RDEPEND="${DEPEND}" -- cgit v1.2.3-65-gdbad