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 0000000000000..7674dcfd4984b --- /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.ebuild b/x11-plugins/wmstickynotes/wmstickynotes-0.7-r1.ebuild similarity index 58% rename from x11-plugins/wmstickynotes/wmstickynotes-0.7.ebuild rename to x11-plugins/wmstickynotes/wmstickynotes-0.7-r1.ebuild index 8b8830387ff33..3058805ac1e90 100644 --- a/x11-plugins/wmstickynotes/wmstickynotes-0.7.ebuild +++ b/x11-plugins/wmstickynotes/wmstickynotes-0.7-r1.ebuild @@ -3,6 +3,8 @@ 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" @@ -11,5 +13,20 @@ LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" -DEPEND="x11-libs/gtk+:2" -RDEPEND="${DEPEND}" +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 +}