diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2023-09-12 17:56:43 +0000 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-05-10 11:12:55 +0300 |
commit | be5d3f27a922d0819980eb8ca2a108b41196a71d (patch) | |
tree | 1501f6a7076a1daca025c12f53b6d2f76fca49c8 /net-irc | |
parent | app-emulation/libvirt: 10.3.0: Fix virshtest failure (diff) | |
download | gentoo-be5d3f27a922d0819980eb8ca2a108b41196a71d.tar.gz gentoo-be5d3f27a922d0819980eb8ca2a108b41196a71d.tar.bz2 gentoo-be5d3f27a922d0819980eb8ca2a108b41196a71d.zip |
net-irc/irssistats: Fix call to undeclared library function isdigit
and update EAPI 6 -> 8
Closes: https://bugs.gentoo.org/897866
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32742
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/irssistats/files/irssistats-0.75-clang16-build-fix.patch | 40 | ||||
-rw-r--r-- | net-irc/irssistats/irssistats-0.75-r2.ebuild | 32 |
2 files changed, 72 insertions, 0 deletions
diff --git a/net-irc/irssistats/files/irssistats-0.75-clang16-build-fix.patch b/net-irc/irssistats/files/irssistats-0.75-clang16-build-fix.patch new file mode 100644 index 000000000000..b162c4868ce3 --- /dev/null +++ b/net-irc/irssistats/files/irssistats-0.75-clang16-build-fix.patch @@ -0,0 +1,40 @@ +Bug: https://bugs.gentoo.org/897866 +--- a/irssistats.c ++++ b/irssistats.c +@@ -29,6 +29,7 @@ + #include <time.h> + #include <string.h> + #include <locale.h> ++#include <ctype.h> + #ifdef __WIN32__ + #define GLOBALCONF "irssistats.conf" + #else +@@ -1561,19 +1562,19 @@ void gen_xhtml(char *xhtmlfile) + fclose(fic); + } + +-void parse_config(char *configfile) ++void expand(char *path) + { +- void expand(char *path) ++ char temp[MAXLINELENGTH]; ++ if (*path=='~') + { +- char temp[MAXLINELENGTH]; +- if (*path=='~') +- { +- snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1); +- temp[MAXLINELENGTH-1]='\0'; +- strcpy(path,temp); +- } ++ snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1); ++ temp[MAXLINELENGTH-1]='\0'; ++ strcpy(path,temp); + } ++} + ++void parse_config(char *configfile) ++{ + FILE *fic; + char line[MAXLINELENGTH]; + char keyword[MAXLINELENGTH]; diff --git a/net-irc/irssistats/irssistats-0.75-r2.ebuild b/net-irc/irssistats/irssistats-0.75-r2.ebuild new file mode 100644 index 000000000000..c03ca60a255c --- /dev/null +++ b/net-irc/irssistats/irssistats-0.75-r2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Generates HTML IRC stats based on irssi logs" +HOMEPAGE="http://royale.zerezo.com/irssistats/" +SRC_URI="http://royale.zerezo.com/irssistats/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +DEPEND="net-irc/irssi" + +PATCHES=( + "${FILESDIR}/${P}-Makefile.patch" + "${FILESDIR}/${P}-clang16-build-fix.patch" +) + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + emake \ + PRE="${D}"/usr \ + DOC="${D}"/usr/share/doc/${PF} \ + install +} |