Bug 197938 - New port: lang/tcbasic - Small BASIC Interpreter written in C.
Summary: New port: lang/tcbasic - Small BASIC Interpreter written in C.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-22 23:23 UTC by Thomas Cort
Modified: 2015-04-17 21:04 UTC (History)
1 user (show)

See Also:


Attachments
tcbasic port (1.96 KB, application/x-shar)
2015-02-22 23:23 UTC, Thomas Cort
no flags Details
tcbasic port (1.82 KB, application/x-shar)
2015-02-22 23:32 UTC, Thomas Cort
no flags Details
tcbasic port (1.81 KB, application/x-shar)
2015-04-11 11:51 UTC, Thomas Cort
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Cort 2015-02-22 23:23:00 UTC
Created attachment 153342 [details]
tcbasic port
Comment 1 Thomas Cort 2015-02-22 23:32:03 UTC
Created attachment 153343 [details]
tcbasic port

Some fixes after re-running portlint with -AC flags.
Comment 2 Pawel Pekala freebsd_committer freebsd_triage 2015-04-04 11:23:44 UTC
Fails to build on 8.x and 9.x (due to old version of flex probably):

=======================<phase: build          >============================
===>  Building for tcbasic-1.0.3
flex --header-file=scanner.h -o /dev/null ./scanner.l
flex: unknown flag '-'.  For usage, try
        flex --help
*** Error code 1
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop in /usr/ports/lang/tcbasic.
Comment 3 Thomas Cort 2015-04-04 14:10:12 UTC
Thanks for the feedback.

The next version of tcbasic, coming out this week, will not depend on lex/yacc. I'll update the proposed port and test on all supported versions of FreeBSD when it is released and then I'll attach the updated port to this bug report.
Comment 4 Thomas Cort 2015-04-11 11:51:56 UTC
Created attachment 155466 [details]
tcbasic port

Updated for new version of tcbasic.
Tested on FreeBSD 8, 9, and 10.
Passes `portlint -AC`
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-04-17 21:02:23 UTC
A commit references this bug:

Author: pawel
Date: Fri Apr 17 21:01:45 UTC 2015
New revision: 384187
URL: https://svnweb.freebsd.org/changeset/ports/384187

Log:
  tcbasic implements a small subset of BASIC known as Tiny BASIC.
  It provides the following statements and commands: INPUT, PRINT,
  LET, GOTO, GOSUB, RETURN, IF, END, CLEAR, LIST, and RUN. Integer
  arithmetic is supported, and strings may be PRINTed. A built-in
  RND(n) function provides random numbers.

  The small size of the language make it easy to learn and master
  while providing all of the building blocks needed to develop many
  interesting programs. tcbasic runs on a variety of platforms and
  aims to be as portable as possible.

  WWW: https://github.com/tcort/tcbasic

  PR:		197938
  Submitted by:	Thomas Cort <linuxgeek@gmail.com>

Changes:
  head/lang/Makefile
  head/lang/tcbasic/
  head/lang/tcbasic/Makefile
  head/lang/tcbasic/distinfo
  head/lang/tcbasic/pkg-descr
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-04-17 21:04:25 UTC
A commit references this bug:

Author: pawel
Date: Fri Apr 17 21:03:52 UTC 2015
New revision: 46574
URL: https://svnweb.freebsd.org/changeset/doc/46574

Log:
  For lang/tcbasic

  PR:		197938

Changes:
  head/en_US.ISO8859-1/articles/contributors/contrib.additional.xml