net-irc/scrollz: fix gcc 10 build

Closes: https://bugs.gentoo.org/708640
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2020-08-30 04:29:03 +00:00
parent 6727e7e430
commit c7194a7ea3
2 changed files with 27 additions and 6 deletions
@@ -0,0 +1,17 @@
https://svnweb.freebsd.org/ports/head/irc/scrollz/files/patch-a8b05aab?view=markup&pathrev=545768
https://bugs.gentoo.org/708640
----
--- a/include/ircterm.h
+++ b/include/ircterm.h
@@ -89,9 +89,9 @@ extern char *CM,
extern int SG;
/**************************** PATCHED by Flier ******************************/
#ifdef WANTANSI
-char *SETAF,
+extern char *SETAF,
*SETAB;
-int NUMCOLORS;
+extern int NUMCOLORS;
#endif /* WANTANSI */
/****************************************************************************/
+10 -6
View File
@@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
MY_P="ScrollZ-${PV}"
@@ -17,20 +18,23 @@ KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="gmp gnutls ipv6 socks5 ssl"
REQUIRED_USE="gnutls? ( ssl )"
RDEPEND="
BDEPEND="virtual/pkgconfig"
DEPEND="
sys-libs/ncurses:0=
gmp? ( dev-libs/gmp:0= )
ssl? (
gnutls? ( net-libs/gnutls:0= )
!gnutls? ( dev-libs/openssl:0= )
)
"
DEPEND="${RDEPEND}
virtual/pkgconfig
)
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/ScrollZ-${MY_P}"
PATCHES=(
"${FILESDIR}/${PN}-2.3-fcommon.patch"
)
src_configure() {
local _myssl
@@ -54,7 +58,7 @@ src_configure() {
src_install() {
emake \
DESTDIR="${D}" \
DESTDIR="${ED}" \
mandir="${EPREFIX}/usr/share/man/man1" \
install