Subject: pkg/12912: new pkg devel/tvision, a C++ console graphics toolkit.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nathan.ahlstrom@medtronic.com>
List: netbsd-bugs
Date: 05/11/2001 13:58:59
>Number:         12912
>Category:       pkg
>Synopsis:       new pkg devel/tvision, a C++ console graphics toolkit.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri May 11 11:59:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Ahlstrom
>Release:        pkgsrc from 09 May 2001
>Organization:
me
>Environment:
System: NetBSD bsd 1.5.1_BETA NetBSD 1.5.1_BETA (BSD) #4: Tue May 8 10:49:50 CDT 2001 root@bsd:/usr/src/sys/arch/i386/compile/BSD i386

>Description:
	There is no NetBSD pkg of the Turbo Vision C++ console toolkit.
>How-To-Repeat:
	Try to use -ltvision under NetBSD.
>Fix:
	Attached is a shar file of the package.  Also below is the ChangeLog 
	file.


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	tvision
#	tvision/Makefile
#	tvision/pkg
#	tvision/pkg/DESCR
#	tvision/pkg/PLIST
#	tvision/distinfo
#	tvision/patches
#	tvision/patches/patch-aa
#	tvision/patches/patch-ab
#
echo c - tvision
mkdir -p tvision > /dev/null 2>&1
echo x - tvision/Makefile
sed 's/^X//' >tvision/Makefile << 'END-of-tvision/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=		tvision-0.7
XCATEGORIES=		devel
XMASTER_SITES=		${MASTER_SITE_SUNSITE:=devel/lang/c++/}
X
XMAINTAINER=		packages@NetBSD.org
XCOMMENT=		The Turbo Vision C++ CUI library for UNIX.
X
XDEPENDS+=		ncurses>=5.2:../../devel/ncurses
X
XGNU_CONFIGURE=		YES
XUSE_LIBTOOL=		YES
XINSTALLS_SHLIB=		YES
X
XLTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig
XCONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
X
X.include "../../mk/bsd.pkg.mk"
END-of-tvision/Makefile
echo c - tvision/pkg
mkdir -p tvision/pkg > /dev/null 2>&1
echo x - tvision/pkg/DESCR
sed 's/^X//' >tvision/pkg/DESCR << 'END-of-tvision/pkg/DESCR'
XTurbo Vision for UNIX
X
XTurbo Vision (or TV, for short) is a library that provides an application
Xframework for C++ programmers.  With TV, you can write beautiful
Xobject-oriented character-mode user interfaces in very a short time.
X
XTV is available in C++ and Pascal and is a product of Borland International.
XIt was developed to run on MS-DOS systems, but today it is available for many
Xother platforms (ported by independent programmers).
X
XThis port is based on the Borland 2.0 version with fixes.
X
XBorland has released the source code to the public some time ago (take a look
Xat the COPYRIGHT file in the source package for more information).
END-of-tvision/pkg/DESCR
echo x - tvision/pkg/PLIST
sed 's/^X//' >tvision/pkg/PLIST << 'END-of-tvision/pkg/PLIST'
X@comment $NetBSD$
Xinclude/tvision/app.h
Xinclude/tvision/buffers.h
Xinclude/tvision/colorsel.h
Xinclude/tvision/dialogs.h
Xinclude/tvision/drawbuf.h
Xinclude/tvision/editors.h
Xinclude/tvision/help.h
Xinclude/tvision/helpbase.h
Xinclude/tvision/menus.h
Xinclude/tvision/msgbox.h
Xinclude/tvision/objects.h
Xinclude/tvision/outline.h
Xinclude/tvision/resource.h
Xinclude/tvision/stddlg.h
Xinclude/tvision/system.h
Xinclude/tvision/textview.h
Xinclude/tvision/tkeys.h
Xinclude/tvision/tobjstrm.h
Xinclude/tvision/ttypes.h
Xinclude/tvision/tv.h
Xinclude/tvision/tvconfig.h
Xinclude/tvision/tvobjs.h
Xinclude/tvision/util.h
Xinclude/tvision/validate.h
Xinclude/tvision/views.h
Xlib/libtvision.a
Xlib/libtvision.so
Xlib/libtvision.so.0.7
Xlib/libtvision.la
X@dirrm include/tvision
END-of-tvision/pkg/PLIST
echo x - tvision/distinfo
sed 's/^X//' >tvision/distinfo << 'END-of-tvision/distinfo'
X$NetBSD$
X
XSHA1 (tvision-0.7.tar.gz) = 5350d8e641dc66c62a68aa2606b5f389fad027f3
XSize (tvision-0.7.tar.gz) = 446880 bytes
XSHA1 (patch-aa) = 7ddf8b87f7991ad41a84c28f65646c7c9f11dde0
XSHA1 (patch-ab) = 0ed36ab7cafbbf702647e69c862f1ecc6d1cc5b3
END-of-tvision/distinfo
echo c - tvision/patches
mkdir -p tvision/patches > /dev/null 2>&1
echo x - tvision/patches/patch-aa
sed 's/^X//' >tvision/patches/patch-aa << 'END-of-tvision/patches/patch-aa'
X$NetBSD$
X
X+++ lib/drawbuf.h	Fri May 11 12:31:46 2001
X@@ -97,6 +97,8 @@
X 
X #ifdef __FreeBSD__
X #include <machine/endian.h>
X+#elif defined(__NetBSD__)
X+#include <sys/endian.h>
X #else
X #include <endian.h>
X #endif
END-of-tvision/patches/patch-aa
echo x - tvision/patches/patch-ab
sed 's/^X//' >tvision/patches/patch-ab << 'END-of-tvision/patches/patch-ab'
X$NetBSD$
X
X+++ lib/system.h	Fri May 11 12:34:15 2001
X@@ -107,6 +107,8 @@
X 
X #ifdef __FreeBSD__
X #include <machine/endian.h>
X+#elif defined(__NetBSD__)
X+#include <sys/endian.h>
X #else
X #include <endian.h>
X #endif
END-of-tvision/patches/patch-ab
exit



>Release-Note:
>Audit-Trail:
>Unformatted:
 >>>>>>>> Changes from version 0.1 to 0.2 <<<<<<<<
 
 - (n)curses functions are used to read keys and do video output (if
   the /dev/vcs* system can not be used).
 - Under X-Window a monochrome palette is used and bold and inverse
   attributes are used to draw the text.  SIGWINCH signal is hooked
   so the screen can be resized at runtime.
 - Help system fixed.
 - "File Open" style dialogs fixed.
 
 >>>>>>>> Changes from version 0.2 to 0.3 <<<<<<<<
 
 - A bug fixed in function validFileName() in TDirCollection.cc.  This
   bug causes an 'Invalid file name' error in "File Save" dialog even if 
   the file name is correct.
   Patch from: Vasily Egoshin <wasa@nica.marstu.mari.su>
   Date: Thu,  9 Jan 1997 16:36:10 +0300 (MSK)
 
 - Temporary hack to see Russian letters added in TEditor.cc.  To enable
   this feature, add '-D__RUSSIAN_LETTERS' to the CONF_CFLAGS string in the
   make.conf file.
   Code from: Vasily Egoshin <wasa@nica.marstu.mari.su>
   Date: Sun, 12 Jan 1997 12:09:52 +0300 (MSK)
 
 - 'glob' function is used in TFileList::readDirectory(), file TFileList.cc.
   Code from: Rainer Keuchel <r_keuchel@smaug.netwave.de>
   Date: 18 Jan 1997 22:52:12 +0000
 
 - New approach to detect the number of the console the user is on.  See
   function TScreen::TScreen() in file linux.cc.
   Idea from: Martynas Kunigelis <algikun@santaka.sc-uni.ktu.lt>
   Date: Mon, 20 Jan 1997 15:55:14 +0000 (EET)
 
 - In file TFileList.cc, function readFf_blk(): month value should begin
   at 1.
   Date: Thu, 23 Jan 1997 11:34:50 +0100 (MET)
 
 - evMouseAuto event fixed in file linux.cc.
   Date: Tue, 28 Jan 1997 19:35:31 +0100 (MET)
 
 - Added support for TVOPT environment variable in file linux.cc.
   Date: Wed, 29 Jan 1997 16:51:40 +0100 (MET)
 
 - Added support for colored output.
   Date: Sun,  2 Feb 1997 14:05:04 +0100 (CET)
 
 - Added support for the FreeBSD operating system.
   Date: Mon,  3 Feb 1997 17:14:01 +0100 (CET)
 
 - Fixed some grammar errors in the text files.
   Help from: Bonni Mierzejewska <u6ed4@wvnvm.wvnet.edu>
   Date: Wed, 5 Feb 1997 14:07:42 -0500 (EST)
 
 - Signals SIGINT (Ctrl-Z) and SIGQUIT (usually generated by Ctrl-\) trapped.
   Date: Wed, 12 Feb 1997 10:45:55 +0100 (MET)
 
 >>>>>>>> Changes from version 0.3 to 0.4 <<<<<<<<
 
 - A bug fixed in TInputLine.cc, function TInputLine::handleEvent().
   This bug can close any dialog box when the input line is focused, you
   hold down the shift key and press any letter key.
   Date: Sun Feb 23 15:15:49 MET 1997
 
 - Fixed double click event under Linux.
 
 - Added mouse support under FreeBSD.
 
 >>>>>>>> Changes from version 0.4 to 0.5 <<<<<<<<
 
 - Added some changes in system.cc to have a better ncurses support.
   From: Ruslan V. Brushkoff <ruslan@Baby.TM.Odessa.UA>
   Date: Wed, 18 Jun 1997 07:32:15 +0300 (EET DST)
 
 - Big changes in system.cc.  Now all the code uses only high level ncurses
   functions.  The drawback of this is that the video output is slower than
   the previous version.
 
 - Fixed some code to make TV run under Linux for the PowerPC and other big
   endian architectures.  It runs fine, but maybe some other changes are
   required.
 
 >>>>>>>> Changes from version 0.5 to 0.6 <<<<<<<<
 
 - A real configure script.
 
 - TVLOG environment variable introduced.  Log informations are written in the
   file specified by the TVLOG variable.  If the variable is not set, no log
   informations are produced.  Log informations will never be written on the
   screen.
 
 - Dmitrij Korovkin <tkf@glasnet.ru> added the following changes:
   - TEditor and TFileEditor classes are modified to support files
     larger than 64kB
   - better signal handling
   - improved cyrillic character set support
   - mouse support in xterm
 
 - Harald Hoyer <HarryH@Royal.Net> added the following:
   - mouse support in xterm
   - some changes is system.cc
 
 - Pedro F. Giffuni <giffunip@asme.org> helped to fix a problem in
   `configure.in' under FreeBSD.
 
 >>>>>>>> Changes from version 0.6 to 0.7 <<<<<<<<
 
 - Vitaly Fedrushkov <willy@snowyowl.csu.ac.ru> added the following changes:
   - fixed a bug in system.cc about function has_colors()
   - changed some things in TMenuView.cc that prevent building with egcs-1.0.3
   - fixed configure.in
 
 - Fixed some cursor things in system.cc.  Nice exit when the user teminates
   the program with Ctrl-C.
 
 - Cosmetic changes and general cleaning in the code.  Now the library should
   compile without warnings, even using flags `-W -Wall'.  If you want to try
   just type:
 
   CXXFLAGS='-W -Wall' ./configure
 
   followed by `make'.
 
 - More documentation included.  I used KDOC, a program distributed with KDE.
   KDOC uses specially-formatted documentation embedded in C++ class
   declarations to generate documentation for the classes.  Warning: this work
   is not finished yet.  Only the main classes are documented.
 
 - Changes to fix warnings with egcs-1.1