git: 1ef70ef330c1 - main - devel/tvision: New port: Modern port of Turbo Vision 2.0, a TUI framework
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Mar 2025 05:55:23 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1ef70ef330c14abee7543a824f3c32702afe38b2
commit 1ef70ef330c14abee7543a824f3c32702afe38b2
Author: gatekeeper <tiago.gasiba@gmail.com>
AuthorDate: 2025-03-28 05:41:43 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-03-28 05:55:18 +0000
devel/tvision: New port: Modern port of Turbo Vision 2.0, a TUI framework
Some alterations and additions were made to the original submission.
PR: 285640
---
devel/Makefile | 1 +
devel/tvision/Makefile | 24 ++++++++
devel/tvision/distinfo | 3 +
devel/tvision/files/patch-source_CMakeLists.txt | 11 ++++
devel/tvision/pkg-descr | 7 +++
devel/tvision/pkg-plist | 81 +++++++++++++++++++++++++
6 files changed, 127 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index f4cd77599077..a7c6148b8866 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -8318,6 +8318,7 @@
SUBDIR += trompeloeil
SUBDIR += truc
SUBDIR += tup
+ SUBDIR += tvision
SUBDIR += twiggy
SUBDIR += typeshare
SUBDIR += ua_parser-core
diff --git a/devel/tvision/Makefile b/devel/tvision/Makefile
new file mode 100644
index 000000000000..8e4f29f3e89b
--- /dev/null
+++ b/devel/tvision/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= tvision
+PORTVERSION= g20250326
+CATEGORIES= devel
+
+MAINTAINER= tiago.gasiba@gmail.com
+COMMENT= Modern port of Turbo Vision 2.0, a TUI framework
+WWW= https://github.com/magiblot/tvision
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYRIGHT
+
+TEST_DEPENDS= googletest>0:devel/googletest
+
+USES= cmake:testing localbase ncurses
+
+USE_GITHUB= yes
+GH_ACCOUNT= magiblot
+GH_PROJECT= tvision
+GH_TAGNAME= e587eba
+
+CMAKE_ON= BUILD_SHARED_LIBS
+CMAKE_TESTING_ON= TV_BUILD_TESTS # several tests fail, see https://github.com/magiblot/tvision/issues/176
+
+.include <bsd.port.mk>
diff --git a/devel/tvision/distinfo b/devel/tvision/distinfo
new file mode 100644
index 000000000000..36ef02c9db1b
--- /dev/null
+++ b/devel/tvision/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1743139672
+SHA256 (magiblot-tvision-g20250326-e587eba_GH0.tar.gz) = 3665f61934684bee0df6694be899e85b01b1ec26a0b5ec7fac70c6f02f9a2d9f
+SIZE (magiblot-tvision-g20250326-e587eba_GH0.tar.gz) = 845068
diff --git a/devel/tvision/files/patch-source_CMakeLists.txt b/devel/tvision/files/patch-source_CMakeLists.txt
new file mode 100644
index 000000000000..c543a2492537
--- /dev/null
+++ b/devel/tvision/files/patch-source_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- source/CMakeLists.txt.orig 2025-03-28 05:30:56 UTC
++++ source/CMakeLists.txt
+@@ -3,7 +3,7 @@ list(REMOVE_ITEM TVSOURCE "${CMAKE_CURRENT_LIST_DIR}/t
+ file(GLOB_RECURSE TVSOURCE "${CMAKE_CURRENT_LIST_DIR}/*/*.cpp")
+ list(REMOVE_ITEM TVSOURCE "${CMAKE_CURRENT_LIST_DIR}/tvision/geninc.cpp")
+
+-add_library(${PROJECT_NAME} STATIC ${TVSOURCE})
++add_library(${PROJECT_NAME} ${TVSOURCE})
+ add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
+
+ target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_14)
diff --git a/devel/tvision/pkg-descr b/devel/tvision/pkg-descr
new file mode 100644
index 000000000000..886e39085aac
--- /dev/null
+++ b/devel/tvision/pkg-descr
@@ -0,0 +1,7 @@
+A modern port of Turbo Vision 2.0, the classical framework
+for text-based user interfaces. Now cross-platform and with
+Unicode support.
+
+Note that this project has no stable releases for the time
+being. If you are a developer, try to stick to the latest
+commit and report any issues you find while upgrading.
diff --git a/devel/tvision/pkg-plist b/devel/tvision/pkg-plist
new file mode 100644
index 000000000000..b92c763335d9
--- /dev/null
+++ b/devel/tvision/pkg-plist
@@ -0,0 +1,81 @@
+bin/tvdemo
+bin/tvedit
+bin/tvhc
+include/tvision/app.h
+include/tvision/buffers.h
+include/tvision/colors.h
+include/tvision/colorsel.h
+include/tvision/compat/borland/_defs.h
+include/tvision/compat/borland/_null.h
+include/tvision/compat/borland/alloc.h
+include/tvision/compat/borland/dir.h
+include/tvision/compat/borland/dos.h
+include/tvision/compat/borland/fstream.h
+include/tvision/compat/borland/io.h
+include/tvision/compat/borland/iomanip.h
+include/tvision/compat/borland/iosfwd.h
+include/tvision/compat/borland/iostream.h
+include/tvision/compat/borland/mem.h
+include/tvision/compat/borland/strstrea.h
+include/tvision/compat/malloc/malloc.h
+include/tvision/compat/windows/windows.h
+include/tvision/config.h
+include/tvision/dialogs.h
+include/tvision/drawbuf.h
+include/tvision/editors.h
+include/tvision/hardware.h
+include/tvision/help.h
+include/tvision/helpbase.h
+include/tvision/internal/ansiwrit.h
+include/tvision/internal/base64.h
+include/tvision/internal/codepage.h
+include/tvision/internal/conctl.h
+include/tvision/internal/constarr.h
+include/tvision/internal/constmap.h
+include/tvision/internal/dispbuff.h
+include/tvision/internal/endian.h
+include/tvision/internal/errredir.h
+include/tvision/internal/events.h
+include/tvision/internal/far2l.h
+include/tvision/internal/findfrst.h
+include/tvision/internal/getenv.h
+include/tvision/internal/gpminput.h
+include/tvision/internal/linuxcon.h
+include/tvision/internal/mutex.h
+include/tvision/internal/ncurdisp.h
+include/tvision/internal/ncursinp.h
+include/tvision/internal/pathconv.h
+include/tvision/internal/platform.h
+include/tvision/internal/sighandl.h
+include/tvision/internal/sigwinch.h
+include/tvision/internal/strings.h
+include/tvision/internal/termio.h
+include/tvision/internal/unixclip.h
+include/tvision/internal/unixcon.h
+include/tvision/internal/utf8.h
+include/tvision/internal/win32con.h
+include/tvision/internal/winwidth.h
+include/tvision/menus.h
+include/tvision/msgbox.h
+include/tvision/objects.h
+include/tvision/outline.h
+include/tvision/resource.h
+include/tvision/scrncell.h
+include/tvision/stddlg.h
+include/tvision/surface.h
+include/tvision/system.h
+include/tvision/textview.h
+include/tvision/tkeys.h
+include/tvision/tobjstrm.h
+include/tvision/tspan.h
+include/tvision/tstrview.h
+include/tvision/ttext.h
+include/tvision/ttypes.h
+include/tvision/tv.h
+include/tvision/tvobjs.h
+include/tvision/util.h
+include/tvision/validate.h
+include/tvision/views.h
+lib/cmake/tvision/tvision-config-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/tvision/tvision-config.cmake
+lib/libtvision.so