From owner-svn-ports-head@freebsd.org Mon Sep 16 10:48:32 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C5AD2FBF16; Mon, 16 Sep 2019 10:48:32 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46X2z44sKsz4S5W; Mon, 16 Sep 2019 10:48:32 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8A43B1F1BD; Mon, 16 Sep 2019 10:48:32 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8GAmWa1067697; Mon, 16 Sep 2019 10:48:32 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8GAmVwT067691; Mon, 16 Sep 2019 10:48:31 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201909161048.x8GAmVwT067691@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Mon, 16 Sep 2019 10:48:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512156 - in head/devel: . termbox X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/devel: . termbox X-SVN-Commit-Revision: 512156 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2019 10:48:32 -0000 Author: 0mp Date: Mon Sep 16 10:48:31 2019 New Revision: 512156 URL: https://svnweb.freebsd.org/changeset/ports/512156 Log: New port: devel/termbox Legacy-free alternative to ncurses Termbox is a library that provides minimalistic API which allows the programmer to write text-based user interfaces. It is based on a very simple abstraction. The main idea is viewing terminals as a table of fixed-size cells and input being a stream of structured messages. Would be fair to say that the model is inspired by windows console API. The abstraction itself is not perfect and it may create problems in certain areas. The most sensitive ones are copy & pasting and wide characters (mostly Chinese, Japanese, Korean (CJK) characters). When it comes to copy & pasting, the notion of cells is not really compatible with the idea of text. And CJK runes often require more than one cell to display them nicely. Despite the mentioned flaws, using such a simple model brings benefits in a form of simplicity. And KISS principle is important. At this point one should realize, that CLI (command-line interfaces) aren't really a thing termbox is aimed at. But rather pseudo-graphical user interfaces. WWW: https://github.com/nsf/termbox PR: 240522 Submitted by: as@php.net Differential Revision: https://reviews.freebsd.org/D21614 Added: head/devel/termbox/ head/devel/termbox/Makefile (contents, props changed) head/devel/termbox/distinfo (contents, props changed) head/devel/termbox/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Sep 16 10:08:29 2019 (r512155) +++ head/devel/Makefile Mon Sep 16 10:48:31 2019 (r512156) @@ -6444,6 +6444,7 @@ SUBDIR += tclxml SUBDIR += tdl SUBDIR += template-glib + SUBDIR += termbox SUBDIR += terminality SUBDIR += tevent SUBDIR += tevent1 Added: head/devel/termbox/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/termbox/Makefile Mon Sep 16 10:48:31 2019 (r512156) @@ -0,0 +1,29 @@ +# Created by: Adam Saponara +# $FreeBSD$ + +PORTNAME= termbox +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.2 +CATEGORIES= devel + +MAINTAINER= as@php.net +COMMENT= Legacy-free alternative to ncurses + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= waf +USE_GITHUB= yes +GH_ACCOUNT= nsf +USE_LDCONFIG= yes + +PLIST_FILES= include/termbox.h \ + lib/libtermbox.so.1.0.0 \ + lib/libtermbox.so.1 \ + lib/libtermbox.so \ + lib/libtermbox.a + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtermbox.so.1.0.0 + +.include Added: head/devel/termbox/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/termbox/distinfo Mon Sep 16 10:48:31 2019 (r512156) @@ -0,0 +1,3 @@ +TIMESTAMP = 1568276632 +SHA256 (nsf-termbox-v1.1.2_GH0.tar.gz) = 61c9940b42b3ac44bf0cba67eacba75e3c02088b8c695149528c77def04d69b1 +SIZE (nsf-termbox-v1.1.2_GH0.tar.gz) = 119673 Added: head/devel/termbox/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/termbox/pkg-descr Mon Sep 16 10:48:31 2019 (r512156) @@ -0,0 +1,20 @@ +Termbox is a library that provides minimalistic API which allows the +programmer to write text-based user interfaces. + +It is based on a very simple abstraction. The main idea is viewing +terminals as a table of fixed-size cells and input being a stream of +structured messages. Would be fair to say that the model is inspired +by windows console API. The abstraction itself is not perfect and it +may create problems in certain areas. The most sensitive ones are +copy & pasting and wide characters (mostly Chinese, Japanese, Korean +(CJK) characters). When it comes to copy & pasting, the notion of +cells is not really compatible with the idea of text. And CJK runes +often require more than one cell to display them nicely. Despite the +mentioned flaws, using such a simple model brings benefits in a form +of simplicity. And KISS principle is important. + +At this point one should realize, that CLI (command-line interfaces) +aren't really a thing termbox is aimed at. But rather +pseudo-graphical user interfaces. + +WWW: https://github.com/nsf/termbox