git: 4a0169a0f3f9 - main - www/chawan: new port: A text-mode web browser and pager

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Mon, 04 Aug 2025 13:46:58 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a0169a0f3f997a86024ed48b9c4e2e88c3de886

commit 4a0169a0f3f997a86024ed48b9c4e2e88c3de886
Author:     Al Hoang <hoanga@gmail.com>
AuthorDate: 2025-08-01 21:25:06 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-08-04 13:46:36 +0000

    www/chawan: new port: A text-mode web browser and pager
    
    Chawan is a text-mode web browser and pager for Unix-like systems, with a focus
    on implementing modern web standards while remaining self-contained, easy to
    understand and extensible.
    
    It includes functionality like CSS, inline images inside the terminal, and
    JavaScript through a small, independent browser engine.
    
    Most of Chawan has been developed from scratch in the memory-safe Nim
    programming language.
    
    WWW: https://chawan.net
    
    PR:             288598
    Reported by:    Al Hoang <hoanga@gmail.com> (new maintainer)
---
 www/chawan/Makefile  | 26 ++++++++++++++++++++++++++
 www/chawan/distinfo  |  3 +++
 www/chawan/pkg-descr |  9 +++++++++
 www/chawan/pkg-plist | 41 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 79 insertions(+)

diff --git a/www/chawan/Makefile b/www/chawan/Makefile
new file mode 100644
index 000000000000..057063adc47b
--- /dev/null
+++ b/www/chawan/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	chawan
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.2.2
+CATEGORIES=	www
+MASTER_SITES=	https://git.sr.ht/~bptato/chawan/archive/
+DISTNAME=	${DISTVERSIONFULL}
+
+MAINTAINER=	hoanga@gmail.com
+COMMENT=	Chawan is a text-mode web browser and pager
+WWW=		https://chawan.net
+
+LICENSE=	UNLICENSE
+LICENSE_FILE=	${WRKSRC}/UNLICENSE
+
+BUILD_DEPENDS=	${LOCALBASE}/nim/bin/nim:lang/nim
+LIB_DEPENDS=	libbrotlidec.so:archivers/brotli \
+		libbrotlicommon.so:archivers/brotli \
+		libssh2.so:security/libssh2
+
+USES=		gmake libtool pkgconfig ssl
+
+WRKSRC=		${WRKDIR}/chawan-${DISTVERSIONFULL}
+
+MAKE_ENV+=	PATH=${LOCALBASE}/nim/bin:${PATH}
+
+.include <bsd.port.mk>
diff --git a/www/chawan/distinfo b/www/chawan/distinfo
new file mode 100644
index 000000000000..7fe4f19f70e7
--- /dev/null
+++ b/www/chawan/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1754015090
+SHA256 (v0.2.2.tar.gz) = 30b4108247244f6b0721d44f84ba90cebf8ce5892ed9502d7e7c3fed92f65489
+SIZE (v0.2.2.tar.gz) = 3619374
diff --git a/www/chawan/pkg-descr b/www/chawan/pkg-descr
new file mode 100644
index 000000000000..282013e5aa92
--- /dev/null
+++ b/www/chawan/pkg-descr
@@ -0,0 +1,9 @@
+Chawan is a text-mode web browser and pager for Unix-like systems, with a focus
+on implementing modern web standards while remaining self-contained, easy to
+understand and extensible.
+
+It includes functionality like CSS, inline images inside the terminal, and
+JavaScript through a small, independent browser engine.
+
+Most of Chawan has been developed from scratch in the memory-safe Nim
+programming language.
diff --git a/www/chawan/pkg-plist b/www/chawan/pkg-plist
new file mode 100644
index 000000000000..c83345a7cc6e
--- /dev/null
+++ b/www/chawan/pkg-plist
@@ -0,0 +1,41 @@
+bin/cha
+bin/mancha
+libexec/chawan/ansi2html
+libexec/chawan/cgi-bin/canvas
+libexec/chawan/cgi-bin/chabookmark
+libexec/chawan/cgi-bin/file
+libexec/chawan/cgi-bin/finger
+libexec/chawan/cgi-bin/ftp
+libexec/chawan/cgi-bin/gemini
+libexec/chawan/cgi-bin/gopher
+libexec/chawan/cgi-bin/http
+libexec/chawan/cgi-bin/jebp
+libexec/chawan/cgi-bin/man
+libexec/chawan/cgi-bin/nanosvg
+libexec/chawan/cgi-bin/resize
+libexec/chawan/cgi-bin/sftp
+libexec/chawan/cgi-bin/sixel
+libexec/chawan/cgi-bin/spartan
+libexec/chawan/cgi-bin/stbi
+libexec/chawan/dirlist2html
+libexec/chawan/gmi2html
+libexec/chawan/gopher2html
+libexec/chawan/img2html
+libexec/chawan/md2html
+libexec/chawan/nc
+libexec/chawan/uri2html
+libexec/chawan/urldec
+libexec/chawan/urlenc
+share/man/man1/cha.1.gz
+share/man/man1/mancha.1.gz
+share/man/man5/cha-config.5.gz
+share/man/man5/cha-mailcap.5.gz
+share/man/man5/cha-mime.types.5.gz
+share/man/man5/cha-localcgi.5.gz
+share/man/man5/cha-urimethodmap.5.gz
+share/man/man7/cha-protocols.7.gz
+share/man/man7/cha-api.7.gz
+share/man/man7/cha-troubleshooting.7.gz
+share/man/man7/cha-image.7.gz
+share/man/man7/cha-css.7.gz
+share/man/man7/cha-terminal.7.gz