aboutsummaryrefslogtreecommitdiff
path: root/chinese/irssi
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2001-04-27 19:18:34 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2001-04-27 19:18:34 +0000
commit7f11c10571c4200dad736c1d8520e3eb48010744 (patch)
tree04a5d3b77cf282daa4eb6b465b65aabdaed38c30 /chinese/irssi
parenta26d7c7f14536089a98485aeffda350a49078059 (diff)
downloadports-7f11c10571c4200dad736c1d8520e3eb48010744.tar.gz
ports-7f11c10571c4200dad736c1d8520e3eb48010744.zip
Notes
Diffstat (limited to 'chinese/irssi')
-rw-r--r--chinese/irssi/Makefile24
-rw-r--r--chinese/irssi/files/patch-config60
-rw-r--r--chinese/irssi/files/patch-config.h.in10
-rw-r--r--chinese/irssi/files/patch-configure.in37
-rw-r--r--chinese/irssi/files/patch-src_fe-text_gui-entry.c28
-rw-r--r--chinese/irssi/files/patch-src_fe-text_screen.h24
-rw-r--r--chinese/irssi/pkg-comment1
7 files changed, 184 insertions, 0 deletions
diff --git a/chinese/irssi/Makefile b/chinese/irssi/Makefile
new file mode 100644
index 000000000000..98b24c56bdb2
--- /dev/null
+++ b/chinese/irssi/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: zh-tw-irssi
+# Date created: April 26 2001
+# Whom: vanilla
+#
+# $FreeBSD$
+#
+
+MASTERDIR= ${.CURDIR}/../../irc/irssi
+EXTRA_PATCHES= ${.CURDIR}/files/patch-config.h.in \
+ ${.CURDIR}/files/patch-configure.in \
+ ${.CURDIR}/files/patch-src_fe-text_gui-entry.c \
+ ${.CURDIR}/files/patch-src_fe-text_screen.h
+
+CATEGORIES= chinese
+
+MAINTAINER= vanilla@FreeBSD.org
+
+USE_AUTOCONF= yes
+CONFIGURE_ARGS+= --with-big5
+
+.include "${MASTERDIR}/Makefile"
+
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}tw-
+COMMENT= ${.CURDIR}/pkg-comment
diff --git a/chinese/irssi/files/patch-config b/chinese/irssi/files/patch-config
new file mode 100644
index 000000000000..4d304f2c7dd3
--- /dev/null
+++ b/chinese/irssi/files/patch-config
@@ -0,0 +1,60 @@
+--- config.orig Sat Apr 28 02:59:56 2001
++++ config Sat Apr 28 03:04:54 2001
+@@ -1,27 +1,15 @@
+ servers = (
+- { address = "irc.stealth.net"; chatnet = IRCNet; port = 6668; },
+- { address = "irc.efnet.net"; chatnet = EFNet; port = 6667; },
+- { address = "irc.undernet.org"; chatnet = Undernet; port = 6667; },
+- { address = "irc.dal.net"; chatnet = DALNet; port = 6667; },
+- { address = "irc.openprojects.net"; chatnet = OPN; port = 6667; },
+- { address = "irc.ptlink.net"; chatnet = PTlink; port = 6667; }
+- { address = "silc.pspt.fi"; chatnet = SILC; port = 706; }
++ { address = "irc.hinet.net"; chatnet = Hinet; port = 6667; },
++ { address = "irc.seed.net.tw"; chatnet = Seednet; port = 6667; }
+ );
+
+ chatnets = {
+- IRCNet = { type = "IRC"; max_kicks = 4; max_modes = 3; max_msgs = 5; max_whois = 4; };
+- EFNet = { type = "IRC"; max_kicks = 4; max_modes = 4; max_msgs = 3; };
+- Undernet = { type = "IRC"; max_kicks = 4; max_modes = 3; max_msgs = 3; max_query_chans = "1"; };
+- DALNet = { type = "IRC"; max_kicks = 4; max_modes = 6; max_msgs = 3; };
+- OPN = { type = "IRC"; max_kicks = 1; max_modes = 6; max_msgs = 100; };
+- PTLink = { type = "IRC"; max_kicks = 1; max_modes = 6; max_msgs = 100; };
+- SILC = { type = "SILC"; };
++ Hinet = { type = "IRC"; max_kicks = 3; max_modes = 3; max_msgs = 3; };
++ Seednet = { type = "IRC"; };
+ };
+
+ channels = (
+- { name = "#irssi"; chatnet = ircnet; autojoin = No; },
+- { name = "#irssi"; chatnet = opn; autojoin = No; },
+- { name = "#silc"; chatnet = silc; autojoin = No; }
++ { name = "#bsdchat"; chatnet = Seednet; autojoin = No; }
+ );
+
+ aliases = {
+@@ -61,4 +49,24 @@
+ WN = "window new hide";
+ SV = "say Irssi $J - http://irssi.org";
+ GOTO = "sb goto";
++};
++settings = {
++ "fe-common/core" = {
++ use_status_window = "yes";
++ use_msgs_window = "yes";
++ reuse_unused_windows = "yes";
++ autocreate_windows = "yes";
++ autolog = "yes";
++ autolog_path = "~/.irssi/logs/%Y/$m/%d/$tag.$0";
++ timestamps = "no";
++ hide_text_style = "yes";
++ autolog_level = "all";
++ autocreate_query_level = "msgs";
++ autocreate_own_query = "no";
++ window_auto_change = "no";
++ };
++ "irc/dcc" = {
++ dcc_download_path = "~/.irssi/download";
++ dcc_autoget = "yes";
++ };
+ };
diff --git a/chinese/irssi/files/patch-config.h.in b/chinese/irssi/files/patch-config.h.in
new file mode 100644
index 000000000000..e7c1b067624d
--- /dev/null
+++ b/chinese/irssi/files/patch-config.h.in
@@ -0,0 +1,10 @@
+--- config.h.in.orig Fri Mar 9 09:28:46 2001
++++ config.h.in Fri Apr 27 22:36:31 2001
+@@ -45,6 +45,7 @@
+
+ /* misc.. */
+ #undef MEM_DEBUG
++#undef WANT_BIG5
+ #undef HAVE_IPV6
+ #undef HAVE_POPT_H
+ #undef HAVE_SOCKS_H
diff --git a/chinese/irssi/files/patch-configure.in b/chinese/irssi/files/patch-configure.in
new file mode 100644
index 000000000000..0fd3ab39a540
--- /dev/null
+++ b/chinese/irssi/files/patch-configure.in
@@ -0,0 +1,37 @@
+--- configure.in.orig Tue Mar 13 23:52:32 2001
++++ configure.in Sat Apr 28 00:48:10 2001
+@@ -37,6 +37,19 @@
+ # check posix headers..
+ AC_CHECK_HEADERS(sys/time.h sys/utsname.h regex.h)
+
++AC_ARG_WITH(big5,
++[ --with-big5 Build with tr-Chinese Big5 support],
++ if test x$withval = xyes; then
++ want_big5=yes
++ else
++ if test "x$withval" = xno; then
++ want_big5=no
++ else
++ want_big5=yes
++ fi
++ fi,
++ want_big5=no)
++
+ AC_ARG_WITH(socks,
+ [ --with-socks Build with socks support],
+ if test x$withval = xyes; then
+@@ -687,6 +700,14 @@
+ AC_DEFINE(MEM_DEBUG)
+ fi
+ AM_CONDITIONAL(BUILD_MEMDEBUG, test "x$want_memdebug" = "xyes")
++
++dnl **
++dnl ** tr-Chinese Big5 support
++dnl **
++
++if test "x$want_big5" = "xyes"; then
++ AC_DEFINE(WANT_BIG5)
++fi
+
+ dnl **
+ dnl ** IPv6 support
diff --git a/chinese/irssi/files/patch-src_fe-text_gui-entry.c b/chinese/irssi/files/patch-src_fe-text_gui-entry.c
new file mode 100644
index 000000000000..e6a65fcaaf47
--- /dev/null
+++ b/chinese/irssi/files/patch-src_fe-text_gui-entry.c
@@ -0,0 +1,28 @@
+--- src/fe-text/gui-entry.c.orig Fri Apr 27 19:13:05 2001
++++ src/fe-text/gui-entry.c Fri Apr 27 22:30:26 2001
+@@ -152,6 +152,11 @@
+ {
+ if (pos < size) return;
+
++#ifdef WANT_BIG5
++ if (is_big5(entry->str[pos-2], entry->str[pos-1]))
++ size++;
++#endif WANT_BIG5
++
+ pos -= size;
+ g_string_erase(entry, pos, size);
+
+@@ -217,6 +222,13 @@
+
+ void gui_entry_move_pos(int p)
+ {
++#ifdef WANT_BIG5
++ if (p > 0 && is_big5 (entry->str[pos], entry->str[pos+1]))
++ p++;
++ else if (p < 0 && is_big5 (entry->str[pos-1], entry->str[pos]))
++ p--;
++#endif WANT_BIG5
++
+ if (pos+p >= 0 && pos+p <= entry->len)
+ pos += p;
+
diff --git a/chinese/irssi/files/patch-src_fe-text_screen.h b/chinese/irssi/files/patch-src_fe-text_screen.h
new file mode 100644
index 000000000000..be5b8f9a4831
--- /dev/null
+++ b/chinese/irssi/files/patch-src_fe-text_screen.h
@@ -0,0 +1,24 @@
+--- src/fe-text/screen.h.orig Fri Apr 27 19:13:01 2001
++++ src/fe-text/screen.h Fri Apr 27 22:38:46 2001
+@@ -16,6 +16,21 @@
+ #define ATTR_COLOR8 0x200
+ #define ATTR_REVERSE 0x400
+
++/* XXX I hope this could be integrated into BX.
++ * XXX Well, this should be done via libc,
++ * but FreeBSD libc support is quite LAME.
++ * Macro below are copied from lynx.
++ *
++ * clive@FreeBSD.org
++ */
++#ifdef WANT_BIG5
++/* XXX I didn't check the encoding range of big5+. This is standard big5. */
++#define is_big5_los(lo) (((char)0x40<=lo)&&(lo<=(char)0x7E)) /* standard */
++#define is_big5_lox(lo) (((char)0x80<=lo)&&(lo<=(char)0xFE)) /* extended */
++#define is_big5_hi(hi) (((char)0x81<=hi)&&(hi<=(char)0xFE))
++#define is_big5(hi,lo) is_big5_hi(hi) && (is_big5_los(lo) || is_big5_lox(lo))
++#endif WANT_BIG5
++
+ int init_screen(void); /* Initialize screen, detect screen length */
+ void deinit_screen(void); /* Deinitialize screen */
+
diff --git a/chinese/irssi/pkg-comment b/chinese/irssi/pkg-comment
new file mode 100644
index 000000000000..120ef438ed82
--- /dev/null
+++ b/chinese/irssi/pkg-comment
@@ -0,0 +1 @@
+A zh-tw cursor movement friendly, wrapping clean irssi