commit: 7f1d6f96e35804b93d84429cb9399fd095a2efc6 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sat Feb 15 07:07:15 2025 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Sun Feb 16 20:09:05 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f1d6f96
x11-plugins/wmmaiload: update EAPI 7 -> 8, port to C23 Also add dependency on openssl in build system that was missing from ebuild. Closes: https://bugs.gentoo.org/943914 Closes: https://bugs.gentoo.org/921310 Closes: https://bugs.gentoo.org/875470 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> .../wmmaiload/files/wmmaiload-2.3.0-c23.patch | 34 +++++++++++++++ x11-plugins/wmmaiload/wmmaiload-2.3.0-r3.ebuild | 48 ++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/x11-plugins/wmmaiload/files/wmmaiload-2.3.0-c23.patch b/x11-plugins/wmmaiload/files/wmmaiload-2.3.0-c23.patch new file mode 100644 index 000000000000..6a8b25fb21ea --- /dev/null +++ b/x11-plugins/wmmaiload/files/wmmaiload-2.3.0-c23.patch @@ -0,0 +1,34 @@ +diff --git a/wmmaiload/dockapp.c b/wmmaiload/dockapp.c +index f29ec9c..ee659a4 100644 +--- a/wmmaiload/dockapp.c ++++ b/wmmaiload/dockapp.c +@@ -27,6 +27,7 @@ + #include <sys/time.h> + #include <sys/types.h> + #include <unistd.h> ++#include <stdlib.h> + + #define WINDOWED_SIZE_W 64 + #define WINDOWED_SIZE_H 64 +diff --git a/wmmaiload/main.c b/wmmaiload/main.c +index a3d0b52..78ed1bb 100644 +--- a/wmmaiload/main.c ++++ b/wmmaiload/main.c +@@ -138,7 +138,7 @@ static void mbox_add(MailBox **list, const char *value); + static BoxType getboxtype(const char *t); + static void free_mbox(MailBox **list); + static int nb_mbox(MailBox *list); +-static void check_cfg_values(); ++static void check_cfg_values(Bool wait); + static void replace_box_list(MailBox *replace); + + +@@ -167,7 +167,7 @@ int main(int argc, char **argv) + #if DEBUG_LEVEL>0 + printf("arguments parsed.\n"); + #endif +- check_cfg_values(); ++ check_cfg_values(False); + /* Load default configuration */ + if (! config_file) + { diff --git a/x11-plugins/wmmaiload/wmmaiload-2.3.0-r3.ebuild b/x11-plugins/wmmaiload/wmmaiload-2.3.0-r3.ebuild new file mode 100644 index 000000000000..e679cd0294c4 --- /dev/null +++ b/x11-plugins/wmmaiload/wmmaiload-2.3.0-r3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit toolchain-funcs + +DESCRIPTION="dockapp that monitors one or more mailboxes" +HOMEPAGE="http://tnemeth.free.fr/projets/dockapps.html" +SRC_URI="http://tnemeth.free.fr/projets/programmes/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND="x11-libs/gtk+:2 + x11-libs/libXpm + dev-libs/openssl" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.1-checkthread.patch + "${FILESDIR}"/${P}-fno-common.patch + "${FILESDIR}"/${P}-ssl.patch + "${FILESDIR}"/${P}-c23.patch +) + +src_configure() { + # The ./configure script is not autoconf based, therefore don't use econf: + ./configure -p /usr || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CPP="$(tc-getCPP)" \ + CFLAGS="${CFLAGS}" \ + DEBUG_LDFLAGS="" \ + LDFLAGS="${LDFLAGS}" \ + DEBUG_CFLAGS="" +} + +src_install() { + dobin ${PN}/${PN} ${PN}-config/${PN}-config + doman doc/*.1 + dodoc AUTHORS ChangeLog FAQ NEWS README THANKS TODO doc/sample.${PN}rc +}
