Here's the second version of my diff.

It includes a better patch from upstream for variable.c and tweaks to
the ports Makefile.

Namely, WANTLIB c was removed.

Licensing was also updated for GPLv2.

This was re-tested on amd64.


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/tintin++/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile    12 Jul 2010 22:07:42 -0000      1.16
+++ Makefile    9 Sep 2011 00:24:51 -0000
@@ -1,32 +1,33 @@
-# $OpenBSD: Makefile,v 1.16 2010/07/12 22:07:42 sthen Exp $
+COMMENT=       client program for playing muds

-COMMENT=       client program to help playing muds
-
-DISTNAME=       tintin++v1.5pl6
-PKGNAME=       tintin-1.5.6
+DISTNAME=       tintin-2.00.7
+PKGNAME=       tintin-2.00.7
 REVISION=      0
 CATEGORIES=     net games

-MASTER_SITES=  http://ftp.kiae.su/pub/unix/games/
-EXTRACT_SUFX=   .tar.Z
+MASTER_SITES=${MASTER_SITE_SOURCEFORGE:=tintin/}

-# Public Domain
+# GPL v2
 PERMIT_PACKAGE_CDROM=  Yes
 PERMIT_PACKAGE_FTP=    Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes

-WANTLIB += c

-CONFIGURE_STYLE=       gnu old
+CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
+                LDFLAGS="-L${LOCALBASE}/lib"
+
+LIB_DEPENDS +=                 devel/pcre
+WANTLIB     +=                 pcre
+
+CONFIGURE_STYLE=       gnu
+
+WRKDIST=               ${WRKDIR}/tt/src

-WRKDIST=       ${WRKDIR}/tintin++/src
+NO_REGRESS=            Yes

-NO_REGRESS=    Yes

 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/lib/tintin
        ${INSTALL_PROGRAM} ${WRKSRC}/tt++ ${PREFIX}/bin
-       ${INSTALL_DATA} ${WRKSRC}/support/.tt_help.txt.Z ${PREFIX}/lib/tintin

 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/tintin++/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo    5 Apr 2007 16:20:16 -0000       1.3
+++ distinfo    9 Sep 2011 00:24:51 -0000
@@ -1,5 +1,5 @@
-MD5 (tintin++v1.5pl6.tar.Z) = NeU9ZhYG0DXD6SoknkQWDw==
-RMD160 (tintin++v1.5pl6.tar.Z) = iyDVrnwyTOt4Gj5eXeWKvld/Cks=
-SHA1 (tintin++v1.5pl6.tar.Z) = aybfgVFdRTk6aMoOW9FxKHu3ezQ=
-SHA256 (tintin++v1.5pl6.tar.Z) = mpU9NhEUm+g0/IEmXjwTJNhdy9r8ZsbvuEDa+o8zSi8=
-SIZE (tintin++v1.5pl6.tar.Z) = 176477
+MD5 (tintin-2.00.7.tar.gz) = 9nkXg6cHcFikmiFvXK+Akw==
+RMD160 (tintin-2.00.7.tar.gz) = +Imlqu4TACUY8PChEQZSm/x79Qw=
+SHA1 (tintin-2.00.7.tar.gz) = fkmQWk/jjriI/T7KytrwZQ6H6tA=
+SHA256 (tintin-2.00.7.tar.gz) = M/LaLPNzkWuLQb7TaWEiR38G0/1GgJ13Bs8w0JCaLBw=
+SIZE (tintin-2.00.7.tar.gz) = 255502
Index: patches/patch-Makefile_in
===================================================================
RCS file: /cvs/ports/net/tintin++/patches/patch-Makefile_in,v
retrieving revision 1.1
diff -u -p -r1.1 patch-Makefile_in
--- patches/patch-Makefile_in   26 Oct 2007 22:10:06 -0000      1.1
+++ patches/patch-Makefile_in   9 Sep 2011 00:24:51 -0000
@@ -1,45 +1,11 @@
-$OpenBSD: patch-Makefile_in,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- Makefile.in.orig   Fri Sep  9 17:35:20 1994
-+++ Makefile.in        Sat Oct 27 00:05:07 2007
-@@ -10,8 +10,7 @@
- # try uncommenting the 'gcc' line and commenting the 'cc' one.
- # Tintin++ doesn't *need* an ANSI compiler anymore, but gcc
- # is still better than cc on many platforms...
--CC = @CC@ -O
--CFLAGS = @DEFS@
-+CFLAGS += @DEFS@
- LIBS = @LIBS@
- PIPE = @PIPE@
- # If you plan on doing debugging (with gdb), it is very helpful to turn all
-@@ -22,10 +21,10 @@ PIPE = @PIPE@
+--- Makefile.in        Thu Feb 24 19:05:51 2011
++++ Makefile.in        Wed Sep  7 23:07:33 2011
+@@ -35,7 +35,7 @@

- # BINDIR is the directory you wish tt++ to be placed if you wish to use
- # make install.
--BINDIR = ..
-+BINDIR = /usr/local/bin
+ LDFLAGS = @LDFLAGS@

- # DEFAULT_FILE_DIR is the path to tintin files.
--DEFAULT_FILE_DIR = @HOME@
-+DEFAULT_FILE_DIR = /usr/local/lib/tintin
+-INCS = @MYINCLUDE@
++INCS += "-I${LOCALBASE}/include" @MYINCLUDE@

- #########################################
- # You shouldn't need to change anything #
-@@ -41,14 +40,15 @@ CFILES = main.c parse.c action.c alias.c substitute.c
-       variables.c highlight.c antisub.c ivars.c help.c text.c glob.c
- OFILES = $(CFILES:.c=.o)
+ LIBS = @MYLIB@ @LIBS@

--all: tintin++ install
-+all: tintin++
-
- tintin++: $(OFILES) tintin.h
-       @echo "Linking..."
-       $(CC) $(CFLAGS) $(FFLAGS) $(LFLAGS) -o tt++ $(OFILES) $(LIBS)
-
--install: all
--      @./install.sh $(BINDIR) $(DEFAULT_FILE_DIR) $(COMPRESSED_HELP)
-+install:
-+      @mkdir -p $(DEFAULT_FILE_DIR)
-+      @./install.sh $(BINDIR) $(DEFAULT_FILE_DIR) Ok
-
- # Autocompile all .c files into .o files using this rule:
- .c.o:
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- patches/patch-configure     26 Oct 2007 22:10:06 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,43 +0,0 @@
-$OpenBSD: patch-configure,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- configure.orig     Sun Aug 28 12:06:38 1994
-+++ configure  Sat Oct 27 00:05:07 2007
-@@ -474,17 +474,20 @@ fi
- OLD_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -pipe"
-
--echo "Do you want the helpfile to be compressed (yes/no)? "
--read YESNO
--if test $YESNO; then
--  if echo "$YESNO"|grep -i "no" >/dev/null; then
--    DEFS="$DEFS -DCOMPRESSED_HELP=0"
--  else
--    DEFS="$DEFS -DCOMPRESSED_HELP=1"
--    COMPRESSED_HELP="Ok"
--  fi
--fi
-+DEFS="$DEFS -DCOMPRESSED_HELP=1"
-+COMPRESSED_HELP="Ok"
-
-+#echo "Do you want the helpfile to be compressed (yes/no)? "
-+#read YESNO
-+#if test $YESNO; then
-+#  if echo "$YESNO"|grep -i "no" >/dev/null; then
-+#    DEFS="$DEFS -DCOMPRESSED_HELP=0"
-+#  else
-+#    DEFS="$DEFS -DCOMPRESSED_HELP=1"
-+#    COMPRESSED_HELP="Ok"
-+#  fi
-+#fi
-+
- test -n "$silent" || echo "checking for -pipe"
- cat > conftest.${ac_ext} <<EOF
- #include "confdefs.h"
-@@ -854,7 +857,7 @@ else
-    :;
- fi
-
--for ac_func in bcopy
-+for ac_func in
- do
- ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
- test -n "$silent" || echo "checking for ${ac_func}"
Index: patches/patch-files_c
===================================================================
RCS file: patches/patch-files_c
diff -N patches/patch-files_c
--- patches/patch-files_c       11 Jan 2010 07:19:17 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-$OpenBSD: patch-files_c,v 1.1 2010/01/11 07:19:17 ajacoutot Exp $
---- files.c.orig       Mon Jan 11 03:22:56 2010
-+++ files.c    Mon Jan 11 03:23:09 2010
-@@ -13,6 +13,7 @@
- #include <strings.h>
- #endif
- #endif
-+#include <stdlib.h>
- #include "tintin.h"
-
- struct listnode *common_aliases, *common_actions, *common_subs,
Index: patches/patch-install_sh
===================================================================
RCS file: patches/patch-install_sh
diff -N patches/patch-install_sh
--- patches/patch-install_sh    26 Oct 2007 22:10:06 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-$OpenBSD: patch-install_sh,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- install.sh.orig    Fri Sep  9 03:43:26 1994
-+++ install.sh Sat Oct 27 00:05:07 2007
-@@ -5,12 +5,11 @@
-
- echo " "
- echo "Copying the tintin++ executable to \"$1\"..."
--strip tt++
--cp tt++ "$1"
-+install -c -s -o bin -g bin -m 555 tt++ "$1"
-
- echo "Copying the tintin++ help file to \"$2\"..."
- if [ "$3" ]; then
--  cp support/.tt_help.txt.Z "$2/"
-+  install -c -o bin -g bin -m 444 support/.tt_help.txt.Z "$2"
- else
-   echo Uncompressing.
-   uncompress -c support/.tt_help.txt.Z | cat > "$2"/.tt_help.txt
Index: patches/patch-line_c
===================================================================
RCS file: patches/patch-line_c
diff -N patches/patch-line_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-line_c        9 Sep 2011 00:24:51 -0000
@@ -0,0 +1,9 @@
+--- line.c     Sun May 15 14:32:05 2011
++++ line.c     Wed Sep  7 23:15:04 2011
+@@ -235,4 +235,4 @@
+
+       return ses;
+ }
+-      
+\ No newline at end of file
++
Index: patches/patch-main_c
===================================================================
RCS file: patches/patch-main_c
diff -N patches/patch-main_c
--- patches/patch-main_c        26 Oct 2007 22:10:06 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,39 +0,0 @@
-$OpenBSD: patch-main_c,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- main.c.orig        Sun Aug 28 16:12:06 1994
-+++ main.c     Sat Oct 27 00:05:07 2007
-@@ -562,7 +562,7 @@ void read_mud(ses)
-     if(ses->logfile) {
-       if (!OLD_LOG) {
-       count=0;
--      for(n=0;n<=didget;n++)
-+      for(n=0;n<didget;n++)
-          if (buffer[n]!='\r') {
-             temp[count]=buffer[n];
-             count++;
-@@ -732,7 +732,7 @@ void tintin_puts2(cptr, ses)
-       sprintf(strng,"%c8%s\n\r%c7%c[%d;%df", E, cptr, E, E,
input_row, input_col);
-     else
-       sprintf(strng,"%s\n\r", cptr);
--    write(1,strng, strlen(strng)+1);
-+    write(1,strng, strlen(strng));
-     display_col=1;
-     if (redraw && term_echoing && !is_split)
-       write(1, k_input, strlen(k_input));
-@@ -764,7 +764,7 @@ void tintin_puts3(cptr, ses)
-       cptr++;
-       sprintf(strng,"%s\n\r", cptr);
-     }
--    write(1,strng, strlen(strng)+1);
-+    write(1,strng, strlen(strng));
-     display_col=1;
-   }
-   text_came=TRUE;
-@@ -832,7 +832,7 @@ void split_command(arg)
-   input_col=1;
-   sprintf(fn, "%c[2J%c[1;%dr%c[%d;1f", E, E, display_row, E, split_line);
-   write(1,fn, strlen(fn));
--  
write(1,"-------------------------------------------------------------------------------",
80);
-+  
write(1,"--------------------------------------------------------------------------------",
80);
-   sprintf(fn, "%c[%d;1f%c7", E, split_line-1, E);
-   write(1,fn,strlen(fn));
-   sprintf(fn, "%c[%d;1f", E, input_row);
Index: patches/patch-misc_c
===================================================================
RCS file: patches/patch-misc_c
diff -N patches/patch-misc_c
--- patches/patch-misc_c        11 Jan 2010 07:19:17 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-$OpenBSD: patch-misc_c,v 1.2 2010/01/11 07:19:17 ajacoutot Exp $
---- misc.c.orig        Sun Aug 28 16:12:08 1994
-+++ misc.c     Mon Jan 11 08:15:04 2010
-@@ -106,7 +106,7 @@ void bell_command(ses)
-   char temp[2];
-   temp[0]=7;
-   temp[1]=0;
--  write(1, temp, 2);
-+  write(1, temp, 1);
- }
-
-
-@@ -172,7 +172,7 @@ void end_command(command, ses)
-       cleanup_session(sesptr);
-     ses=NULL;
-     if (is_split)
--      write(1, "c", 3);
-+      write(1, "c", 2);
-     tintin_puts2("TINTIN suffers from bloodlack, and the lack of a
beating heart...", ses);
-     tintin_puts2("TINTIN is dead! R.I.P.", ses);
-     tintin_puts2("Your blood freezes as you hear TINTIN's death cry.", ses);
Index: patches/patch-net_c
===================================================================
RCS file: patches/patch-net_c
diff -N patches/patch-net_c
--- patches/patch-net_c 26 Oct 2007 22:10:06 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-net_c,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- net.c.orig Sun Aug 28 16:12:10 1994
-+++ net.c      Sat Oct 27 00:05:07 2007
-@@ -80,7 +80,7 @@ int connect_mud(host, port, ses)
-
-   tintin_puts("#Trying to connect..", ses);
-
--  alarm(15);                  /* We'll allow connect to hang in 15seconds! NO 
MORE! */
-+  alarm(30);                    /* We'll allow connect to hang in
30seconds! NO MORE! */
-   ticker_interrupted=FALSE;
-   connectresult=connect(sock, (struct sockaddr *)&sockaddr, sizeof(sockaddr));
- #if defined(DEBUG)
Index: patches/patch-parse_c
===================================================================
RCS file: patches/patch-parse_c
diff -N patches/patch-parse_c
--- patches/patch-parse_c       11 Jan 2010 07:19:17 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-parse_c,v 1.2 2010/01/11 07:19:17 ajacoutot Exp $
---- parse.c.orig       Sun Aug 28 16:12:10 1994
-+++ parse.c    Mon Jan 11 08:15:04 2010
-@@ -670,10 +670,10 @@ void prompt(ses)
-   if(ses && !PSEUDO_PROMPT)
-     write_line_mud("", ses);
-   else if (!is_split)
--    write(1,"> ", 3);
-+    write(1,"> ", 2);
-   else {
-     sprintf(strng,"8> 7[%d;%df", input_row, input_col);
--    write(1,strng, strlen(strng)+1);
-+    write(1,strng, strlen(strng));
-     display_col+=2;
-   }
- }
Index: patches/patch-utils_c
===================================================================
RCS file: patches/patch-utils_c
diff -N patches/patch-utils_c
--- patches/patch-utils_c       26 Oct 2007 22:10:06 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,22 +0,0 @@
-$OpenBSD: patch-utils_c,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- utils.c.orig       Sun Aug 28 16:12:16 1994
-+++ utils.c    Sat Oct 27 00:05:07 2007
-@@ -21,6 +21,8 @@
- #include <unistd.h>
- #endif
-
-+#include <sys/param.h>
-+
- void syserr();
-
- /*********************************************/
-@@ -56,7 +58,9 @@ void syserr(msg)
-      char *msg;
- {
-   extern int errno, sys_nerr;
-+#if !defined(BSD) || (BSD < 199306)
-   extern char *sys_errlist[];
-+#endif
-
-   fprintf(stderr,"ERROR: %s (%d",msg, errno);
-   if(errno>0 && errno<sys_nerr)
Index: patches/patch-variable_c
===================================================================
RCS file: patches/patch-variable_c
diff -N patches/patch-variable_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-variable_c    9 Sep 2011 00:24:51 -0000
@@ -0,0 +1,11 @@
+--- variable.c Mon May 30 11:55:48 2011
++++ variable.c Thu Sep  8 16:57:00 2011
+@@ -587,7 +587,7 @@
+                                       }
+                                       else
+                                       {
+-                                              sprintf(ptt, "%d", atoi(ptt) + 
strlen(arglist[i]) -
string_raw_str_len(ses, arglist[i], 0, BUFFER_SIZE));
++                                              sprintf(ptt, "%d", atoi(ptt) + 
(int) strlen(arglist[i]) -
string_raw_str_len(ses, arglist[i], 0, BUFFER_SIZE));
+                                       }
+                               }
+                               
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/tintin++/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST   11 Jan 2010 07:19:17 -0000      1.5
+++ pkg/PLIST   9 Sep 2011 00:24:51 -0000
@@ -1,4 +1,2 @@
-@comment $OpenBSD: PLIST,v 1.5 2010/01/11 07:19:17 ajacoutot Exp $
+@comment $OpenBSD$
 @bin bin/tt++
-lib/tintin/
-lib/tintin/.tt_help.txt.Z

Reply via email to