Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 2018 11:34:47 +0000 (UTC)
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r457765 - in head/lang/bwbasic: . files
Message-ID:  <201801011134.w01BYlF0007283@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wen
Date: Mon Jan  1 11:34:46 2018
New Revision: 457765
URL: https://svnweb.freebsd.org/changeset/ports/457765

Log:
  - Update to 3.20
  - Take maintainership

Deleted:
  head/lang/bwbasic/files/patch-bwb__var.c
Modified:
  head/lang/bwbasic/Makefile
  head/lang/bwbasic/distinfo
  head/lang/bwbasic/files/patch-Makefile.in
  head/lang/bwbasic/files/patch-bwb__cmd.c
  head/lang/bwbasic/files/patch-renum.c

Modified: head/lang/bwbasic/Makefile
==============================================================================
--- head/lang/bwbasic/Makefile	Mon Jan  1 10:53:03 2018	(r457764)
+++ head/lang/bwbasic/Makefile	Mon Jan  1 11:34:46 2018	(r457765)
@@ -2,11 +2,11 @@
 # $FreeBSD$
 
 PORTNAME=	bwbasic
-PORTVERSION=	3.10
+PORTVERSION=	3.20
 CATEGORIES=	lang
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION}/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	wen@FreeBSD.org
 COMMENT=	Bywater Basic interpreter
 
 LICENSE=	GPLv2
@@ -19,9 +19,7 @@ GNU_CONFIGURE=	yes
 MAKE_ARGS=	CFLAGS="${CFLAGS} -Wall -ansi"
 
 PORTDOCS=	*
-PORTEXAMPLES=	*
-PORTEXAMPLES1=	B15A B15B C77A C77B D71 G65 GAMES HB1 HB1X \
-		HB2 HB2X I70 M80 NBS2 NBS2X T80A T80B T80C
+
 PLIST_FILES=	bin/${PORTNAME} \
 		bin/renum
 
@@ -33,11 +31,5 @@ post-patch:
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.doc ${STAGEDIR}${DOCSDIR}
-
-post-install-EXAMPLES-on:
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-.for d in ${PORTEXAMPLES1}
-	(cd ${WRKSRC}; ${COPYTREE_SHARE} ${d} ${STAGEDIR}${EXAMPLESDIR})
-.endfor
 
 .include <bsd.port.mk>

Modified: head/lang/bwbasic/distinfo
==============================================================================
--- head/lang/bwbasic/distinfo	Mon Jan  1 10:53:03 2018	(r457764)
+++ head/lang/bwbasic/distinfo	Mon Jan  1 11:34:46 2018	(r457765)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1484703673
-SHA256 (bwbasic-3.10.zip) = f73c1a4de8e5bb7ef66c62b00b1699ec414bc9e36b9ed59bcd3692cb9fbd1be1
-SIZE (bwbasic-3.10.zip) = 3158727
+TIMESTAMP = 1514798362
+SHA256 (bwbasic-3.20.zip) = ee18eefab7ed91ad1ad50ccab33eb038c4abd753595e19982890867f282339f1
+SIZE (bwbasic-3.20.zip) = 510680

Modified: head/lang/bwbasic/files/patch-Makefile.in
==============================================================================
--- head/lang/bwbasic/files/patch-Makefile.in	Mon Jan  1 10:53:03 2018	(r457764)
+++ head/lang/bwbasic/files/patch-Makefile.in	Mon Jan  1 11:34:46 2018	(r457765)
@@ -1,23 +1,5 @@
---- Makefile.in.orig	2017-01-19 00:10:01 UTC
+--- Makefile.in.orig	2018-01-01 11:17:18 UTC
 +++ Makefile.in
-@@ -29,13 +29,13 @@ bindir = $(exec_prefix)/bin
- 
- SHELL = /bin/sh
- 
--CFILES=         bwbasic.c bwb_cmd.c bwb_cnd.c bwb_dio.c bwb_elx.c\
--                bwb_exp.c bwb_fnc.c bwb_inp.c bwb_int.c bwb_ops.c\
-+CFILES=         bwbasic.c bwb_cmd.c bwb_cnd.c bwb_dio.c\
-+                bwb_exp.c bwb_fnc.c bwb_inp.c bwb_int.c\
-                 bwb_prn.c bwb_stc.c bwb_str.c bwb_tbl.c bwb_var.c\
- 		bwd_cmd.c bwd_fun.c bwx_tty.c
- 
--OFILES=         bwbasic.o bwb_cmd.o bwb_cnd.o bwb_dio.o bwb_elx.o\
--                bwb_exp.o bwb_fnc.o bwb_inp.o bwb_int.o bwb_ops.o\
-+OFILES=         bwbasic.o bwb_cmd.o bwb_cnd.o bwb_dio.o\
-+                bwb_exp.o bwb_fnc.o bwb_inp.o bwb_int.o\
-                 bwb_prn.o bwb_stc.o bwb_str.o bwb_tbl.o bwb_var.o\
- 		bwd_cmd.o bwd_fun.o bwx_tty.o
-  
 @@ -66,8 +66,8 @@ bwbasic:	$(OFILES)
  		$(CC) $(OFILES) -lm -o $@ $(LDFLAGS)
  
@@ -25,7 +7,7 @@
 -renum:
 -	$(CC) renum.c -o renum
 +renum:		renum.o
-+		$(CC) renum.o -o $@ $(LDFLAGS) 
++	$(CC)	renum.o -o $@ $(LDFLAGS) 
  
  $(OFILES):      $(HFILES)
  

Modified: head/lang/bwbasic/files/patch-bwb__cmd.c
==============================================================================
--- head/lang/bwbasic/files/patch-bwb__cmd.c	Mon Jan  1 10:53:03 2018	(r457764)
+++ head/lang/bwbasic/files/patch-bwb__cmd.c	Mon Jan  1 11:34:46 2018	(r457765)
@@ -1,10 +1,10 @@
---- bwb_cmd.c.orig	2017-01-19 00:10:00 UTC
+--- bwb_cmd.c.orig	2018-01-01 11:17:18 UTC
 +++ bwb_cmd.c
-@@ -38,6 +38,7 @@
+@@ -40,6 +40,7 @@
  
  
  
 +#include <string.h>
  #include "bwbasic.h"
  
- 
+ static void bwb_copy_file (char *Source, char *Target);

Modified: head/lang/bwbasic/files/patch-renum.c
==============================================================================
--- head/lang/bwbasic/files/patch-renum.c	Mon Jan  1 10:53:03 2018	(r457764)
+++ head/lang/bwbasic/files/patch-renum.c	Mon Jan  1 11:34:46 2018	(r457765)
@@ -1,63 +1,25 @@
-Fix various warnings. Don't use unsafe gets().
+Fix various warnings. 
 
---- renum.c.orig	2017-01-19 00:10:01 UTC
+--- renum.c.orig	2018-01-01 11:17:37 UTC
 +++ renum.c
-@@ -7,6 +7,7 @@
+@@ -20,7 +20,7 @@ int f2, l2, n, x;
+ int sidx[MAX_LINE_COUNT][2];
+ char rstr[MAX_LINE_LENGTH];
  
- #include <stdio.h>
- #include <string.h>
-+#include <stdlib.h>
- 
- int instr();
- char *midstr1();
-@@ -17,14 +18,14 @@ int f2, l2, n, x;
- int sidx[1500][2];
- char rstr[255];
- 
 -main(argc, argv)
 +int main(argc, argv)
     int argc;
     char *argv[];
  {
-    int f, d, s, p, s1, t, l, g;
+@@ -28,7 +28,6 @@ main(argc, argv)
     int c, f1, c1, i, f8, r, l1, l3;
     int v1, f6, l6, b, f9, x9, b1, p8, p9, a, d9;
--   char pstr[255], sstr[255], f9str[255], s9str[255], tempstr[255];
-+   char pstr[255], f9str[255], s9str[255], tempstr[255];
-    FILE *fdin, *fdout;
-    int skip, bp, temp, getout, disp_msg;
- 
-@@ -34,7 +35,10 @@ main(argc, argv)
-    else
-    {
-       printf("Program in file? ");
--      gets(pstr);
-+      fgets(pstr, 255, stdin);
-+      if (pstr[0] != '\n' || pstr[0] != '\0') {
-+	pstr[strlen(pstr) - 1] = '\0';
-+      }
-    }
-    if (strlen(pstr) == 0) strcpy(pstr, "0.doc");
- 
-@@ -124,7 +128,7 @@ main(argc, argv)
-       skip = 0;
-       bp = 0;
-       printf("RENUMBER-");
--      gets(pstr);
-+      fgets(pstr, 255, stdin);
-       p = strlen(pstr);
- 
-       if (g == 0)
-@@ -268,7 +272,7 @@ main(argc, argv)
-       printf("%d -> %d\n", sidx[r][0], sidx[r][1]); */
- 
-    printf("VERIFY? ");
--   gets(pstr);
-+   fgets(pstr, 255, stdin);
-    v1 = 0;
-    if (strcmp(midstr2(pstr, 1, 1), "N") == 0) v1 = 1;
- 
-@@ -473,7 +477,7 @@ main(argc, argv)
+    char pstr[MAX_LINE_LENGTH];
+-   char sstr[MAX_LINE_LENGTH];
+    char f9str[MAX_LINE_LENGTH];
+    char s9str[MAX_LINE_LENGTH];
+    char tempstr[MAX_LINE_LENGTH];
+@@ -490,7 +489,7 @@ main(argc, argv)
     fclose(fdin);
     fclose(fdout);
  #if !defined(__MVS__) && !defined(__CMS__)
@@ -66,7 +28,7 @@ Fix various warnings. Don't use unsafe gets().
     system(tempstr);
  #endif
     return (0);
-@@ -542,7 +546,7 @@ void binary_search(void)
+@@ -561,7 +560,7 @@ void binary_search(void)
  
        if (sidx[m][0] == n)
        {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801011134.w01BYlF0007283>