From 9dfa7846543fca2df0befd72e8ad1e58e7a85e00 Mon Sep 17 00:00:00 2001 From: uebayasi Date: Sat, 24 May 2003 07:51:34 +0000 Subject: Apply a patch to work with XEmacs. Tested with XEmacs 21.4.12. The fix is from Andrew J Cosgriff via misc@openbsd.org. Addresses PR21260. Bumps revision to 1. --- chat/zenicb/Makefile | 6 +++--- chat/zenicb/distinfo | 3 ++- chat/zenicb/patches/patch-ac | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 chat/zenicb/patches/patch-ac (limited to 'chat/zenicb') diff --git a/chat/zenicb/Makefile b/chat/zenicb/Makefile index 5a78ed97663..82a77bafb21 100644 --- a/chat/zenicb/Makefile +++ b/chat/zenicb/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.9 2003/01/10 14:26:38 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2003/05/24 07:51:34 uebayasi Exp $ DISTNAME= zenicb-19981202 +PKGREVISION= 1 CATEGORIES= chat MASTER_SITES= ${MASTER_SITE_LOCAL} @@ -11,8 +12,7 @@ NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL .include "../../mk/emacs.mk" -# Works fine on XEmacs 21.1. XEmacs 21.5 is probably okay too. -EMACS_VERSIONS_ACCEPTED= emacs21 emacs20 xemacs211 xemacs215 +EMACS_VERSIONS_ACCEPTED= emacs21 emacs20 xemacs214 xemacs215 .if defined(USE_XEMACS) MAKEFLAGS+= USE_XEMACS=${USE_XEMACS} diff --git a/chat/zenicb/distinfo b/chat/zenicb/distinfo index 058f5231329..d71c8b2dfbb 100644 --- a/chat/zenicb/distinfo +++ b/chat/zenicb/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.4 2003/02/12 15:53:09 yyamano Exp $ +$NetBSD: distinfo,v 1.5 2003/05/24 07:51:35 uebayasi Exp $ SHA1 (zenicb-19981202.tar.gz) = c700e51084a123e210a8aa7335ebc1b2464a85e7 Size (zenicb-19981202.tar.gz) = 30833 bytes SHA1 (patch-aa) = 55f84c908156edeb8c02bc43950b6ce416345b90 SHA1 (patch-ab) = 26e994ed66a0b0792f9741edaae5a2bf86e39345 +SHA1 (patch-ac) = a2ab8c0c13f440351d87be534c7500fe75f81cc6 diff --git a/chat/zenicb/patches/patch-ac b/chat/zenicb/patches/patch-ac new file mode 100644 index 00000000000..c33cb195e6a --- /dev/null +++ b/chat/zenicb/patches/patch-ac @@ -0,0 +1,18 @@ +$NetBSD: patch-ac,v 1.1 2003/05/24 07:51:36 uebayasi Exp $ + +--- src/zenicb.el.orig Mon Jul 20 07:37:51 1998 ++++ src/zenicb.el +@@ -279,8 +279,12 @@ + (set-buffer orig-buffer) + (store-match-data data)))) + ++(if (not (fboundp 'char-int)) ++ (defun char-int (a) ++ a)) ++ + (defun zenicb-parselines (proc string) +- (while (let ((length (+ (aref string 0)))) ++ (while (let ((length (+ (char-int (aref string 0))))) + (and (> (length string) length) + (let ((type (aref string 1)) + (line (substring string 2 length))) -- cgit v1.2.3