diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-11 00:01:23 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-11 00:01:23 +0100 |
commit | c035b2b83f0e94c4b2e82184f00bcef874e6276b (patch) | |
tree | 8e1ab9b9e65cafbc237de0d455a13bb3c831de92 /net-irc/irssistats | |
parent | 17e5f1ea4a2e1c5664f96480ca46348d008e8711 (diff) |
gentoo auto-resync : 11:05:2024 - 00:01:22
Diffstat (limited to 'net-irc/irssistats')
-rw-r--r-- | net-irc/irssistats/Manifest | 2 | ||||
-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 |
3 files changed, 74 insertions, 0 deletions
diff --git a/net-irc/irssistats/Manifest b/net-irc/irssistats/Manifest index 4888065aa83a..e1c3707f7c4e 100644 --- a/net-irc/irssistats/Manifest +++ b/net-irc/irssistats/Manifest @@ -1,4 +1,6 @@ AUX irssistats-0.75-Makefile.patch 625 BLAKE2B b7d3a4e3efa900c3691748c3ef88d648538625fe9b8695856ff640b49314f63d7c1e4c54eca510585bcc55a956de61bc82dd47f077edf3880be5a06fbb419893 SHA512 800469eb250fb5b1e0727eb2774da4247fc96f9fedb133644be43af9ee1572547e2e1c61e222c0c1717ba757a7abf997d3e06b1f5f7f7f52194156057ed59128 +AUX irssistats-0.75-clang16-build-fix.patch 903 BLAKE2B 8e67e46b16535a3121786eef6742515a1feab1bded35bc911a1afcf83519236d0e497550405f43d0f612387339dc7505e15dca7378d6f321c72b6a1feea5ae9e SHA512 3f94ecea46771ca2a78f94a4795df1851ff786f00dfba11a3aac4cea7940b7f24750cc31571de9a7a4aafe7416818ec76e8f81f38403f3e64318ed43579f4790 DIST irssistats-0.75.tar.gz 54434 BLAKE2B 1bd35158bea9f24b8013834a876cbc3a3f285cea1802e6699f6e10af33dde1a648ec717b031819a999c0beb2cac394130da7a31b5bc877d32abb0a706142d972 SHA512 d7ac167d64c850f3803e6192f1fbf98e13cf296902b92bc3c5847f5f97a678938e7bff41b3195d2845c5ddb92f0557fea1b3a82b61d18b6a307b94ceae1c62f6 EBUILD irssistats-0.75-r1.ebuild 630 BLAKE2B afa01c457249a1e30a6f6f488143e5dc5e201a8485f13a054a9b26768bbc19f12216f3ac37f1fc234ed83790893b7cfa0d0707a799aa9e5a3bc8e3de8c1e5dbf SHA512 94f56e1aa38381404cec72ec585027b9ae025362ab9b08a78bd0531f58b7bebb7607dc648783036cc1b3436e40e3342c715b20c3bf01ca8ea415d44473774363 +EBUILD irssistats-0.75-r2.ebuild 655 BLAKE2B 485b6b8f0230a8873bd3e87252ff2582ff46f6ac0fbf1849a3d344b47e61c142c8807e3bab7fe75eddde1fbbb7384445806ff7a5c97ccd9f82d24d9981f6cb7a SHA512 913e2cc99c0bfd5a32efd0fb00ad35ff2a2c4c8d16f91546171a386c7e64d80701d16494c2ca43736c50f55776b75f5923ff50383b02daf6892e70e4ae419e25 MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a 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 +} |