From 88fa966edc547795fcb2c38a0489ef6940fbe72a Mon Sep 17 00:00:00 2001
From: gatekeeper <tiago.gasiba@gmail.com>
Date: Tue, 25 Mar 2025 00:03:54 +0100
Subject: [PATCH] magiblot tvision

---
 devel/Makefile          |  1 +
 devel/tvision/Makefile  | 18 +++++++++
 devel/tvision/distinfo  |  3 ++
 devel/tvision/pkg-descr |  7 ++++
 devel/tvision/pkg-plist | 81 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 110 insertions(+)
 create mode 100644 devel/tvision/Makefile
 create mode 100644 devel/tvision/distinfo
 create mode 100644 devel/tvision/pkg-descr
 create mode 100644 devel/tvision/pkg-plist

diff --git a/devel/Makefile b/devel/Makefile
index 2698ddcf94f1..e07ccbe485bf 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -8314,6 +8314,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..e1328f6ef963
--- /dev/null
+++ b/devel/tvision/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	tvision
+PORTVERSION=	20250324
+CATEGORIES=	devel
+
+MAINTAINER=	tiago.gasiba@gmail.com
+COMMENT=	Modern port of Turbo Vision 2.0
+WWW=		https://github.com/magiblot/tvision
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
+
+USES=		cmake ninja
+USE_GITHUB=	yes
+GH_ACCOUNT=	magiblot
+GH_PROJECT=	tvision
+GH_TAGNAME=	50121124adff5983dfd0befdc7fc957f2df4bc62
+
+.include <bsd.port.mk>
diff --git a/devel/tvision/distinfo b/devel/tvision/distinfo
new file mode 100644
index 000000000000..ab148253f4b2
--- /dev/null
+++ b/devel/tvision/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1742856085
+SHA256 (magiblot-tvision-20250324-50121124adff5983dfd0befdc7fc957f2df4bc62_GH0.tar.gz) = bf400eb003264b546fd157305b5e726e6620871667f2084bfeaeb142a946b9d2
+SIZE (magiblot-tvision-20250324-50121124adff5983dfd0befdc7fc957f2df4bc62_GH0.tar.gz) = 845205
diff --git a/devel/tvision/pkg-descr b/devel/tvision/pkg-descr
new file mode 100644
index 000000000000..4b1c5d03f476
--- /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..d83a56b3d6be
--- /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.a
-- 
2.48.1