BitchX: new recipe (#3352)

This commit is contained in:
miqlas
2018-11-10 19:08:06 +01:00
committed by fbrosson
parent e451bd4419
commit 603d6bfef3
2 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
SUMMARY="A text-based IRC client"
DESCRIPTION="bitchx is an IRC client written in the C programming language.\
It uses a text-mode user interface.
Features:
* Built-in ANSI color.
* Ease of use. BitchX adds dozens of useful command aliases to reduce typing.
* Built-in notify, protection, bot, and shit lists.
* Built-in mass commands and tools.
* Extended set of DCC commands and built-in CDCC offering.
* Built-in link looker.
* Extended scripting functionality, including functions found nowhere else.
* Huge installed user base, an abundance of scripts, and a dedicated help \
channel (#BitchX on EFNET).
* Built-in screen client, allowing you to detach and re-attach to an irc session."
HOMEPAGE="http://www.bitchx.org/"
COPYRIGHT="1990 Michael Sandroff
1991, 1992 Troy Rollo
1992-1996 Matthew Green
1993, 1997 Jeremy Nelson
1994 Jake Khuon
1995, 1998 Jeremy Nelson and others (\"EPIC Software Labs\")
1996-2004 Colten Edwards et al.
2008-2014 Kevin Easton et al."
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://download.sourceforge.net/bitchx/bitchx-$portVersion.tar.gz"
CHECKSUM_SHA256="2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2"
PATCHES="bitchx-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
PROVIDES="
bitchx = $portVersion
cmd:bitchx = $portVersion
cmd:bitchx_$portVersion = $portVersion
cmd:scr_bx = $portVersion
"
REQUIRES="
haiku
lib:libcrypto
lib:libncursesw
lib:libssl
"
BUILD_REQUIRES="
haiku_devel
devel:libcrypto
devel:libncursesw
devel:libssl
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:gcc
cmd:grep
cmd:make
cmd:pkg_config
"
defineDebugInfoPackage bitchx \
"$binDir"/BitchX-$portVersion
BUILD()
{
autoreconf -fi
export LDFLAGS="-lnetwork -lbsd"
runConfigure ./configure \
--with-plugins
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,46 @@
From d64c55076c0ebca0ca2bf62d8d00a6ae7feda532 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sat, 10 Nov 2018 12:46:03 +0100
Subject: Build fix for gcc2
diff --git a/source/status.c b/source/status.c
index 36bba31..20bccf7 100644
--- a/source/status.c
+++ b/source/status.c
@@ -996,8 +996,8 @@ static char *status_notify_windows(Window *window)
if (get_int_var(SHOW_STATUS_ALL_VAR) || window == window->screen->current_window)
{
- *notes = 0;
Window *notify_win = NULL;
+ *notes = 0;
while ((traverse_all_windows(&notify_win)))
{
if (notify_win->miscflags & WINDOW_NOTIFIED)
--
2.19.1
From 99df4a2c4fe1a9436bd940b7adcad6bd25b8ffc4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sat, 10 Nov 2018 12:51:33 +0100
Subject: bcopy fix from keaston
diff --git a/include/irc_std.h b/include/irc_std.h
index 29400c2..0ab5279 100644
--- a/include/irc_std.h
+++ b/include/irc_std.h
@@ -205,7 +205,7 @@ int killpg (int pgrp, int sig);
char * getpass (const char * prompt);
#endif
-#ifndef BCOPY_DECLARED
+#if !defined(BCOPY_DECLARED) && !defined(bcopy)
void bcopy (const void *src, void *dest, size_t n);
#endif
--
2.19.1