summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-08-30 04:29:03 +0000
committerSam James <sam@gentoo.org>2020-08-30 04:29:03 +0000
commitc7194a7ea3cc290575537323eccc8aad7adc2e72 (patch)
tree4475dcfdf28e5f21ac2b2fc7a80977581a9714d9 /net-irc
parentmedia-video/gpac: Stabilize 0.8.1 ppc64, #711262 (diff)
downloadgentoo-c7194a7ea3cc290575537323eccc8aad7adc2e72.tar.gz
gentoo-c7194a7ea3cc290575537323eccc8aad7adc2e72.tar.bz2
gentoo-c7194a7ea3cc290575537323eccc8aad7adc2e72.zip
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>
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/scrollz/files/scrollz-2.3-fcommon.patch17
-rw-r--r--net-irc/scrollz/scrollz-2.3.ebuild16
2 files changed, 27 insertions, 6 deletions
diff --git a/net-irc/scrollz/files/scrollz-2.3-fcommon.patch b/net-irc/scrollz/files/scrollz-2.3-fcommon.patch
new file mode 100644
index 000000000000..2c0c85f0b96b
--- /dev/null
+++ b/net-irc/scrollz/files/scrollz-2.3-fcommon.patch
@@ -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 */
+ /****************************************************************************/
+
diff --git a/net-irc/scrollz/scrollz-2.3.ebuild b/net-irc/scrollz/scrollz-2.3.ebuild
index b45a5957d957..08015a0442d6 100644
--- a/net-irc/scrollz/scrollz-2.3.ebuild
+++ b/net-irc/scrollz/scrollz-2.3.ebuild
@@ -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