git: 82376e2567c7 - main - www/tocaia: add port: Portable TUI Gopher client written in C89 for POSIX systems

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Fri, 05 Sep 2025 02:16:53 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=82376e2567c790c9dfcc18bc3adc009fe2fef21e

commit 82376e2567c790c9dfcc18bc3adc009fe2fef21e
Author:     Valter Nazianzeno <manipuladordedados@gmail.com>
AuthorDate: 2025-09-03 02:39:12 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-09-05 02:16:32 +0000

    www/tocaia: add port: Portable TUI Gopher client written in C89 for POSIX systems
    
    Tocaia is a minimalist and cross-platform Gopher client.
    Built with minimal dependencies, it offers a fast, efficient,
    and a direct browsing experience navigating the Gopherspace.
    
    WWW: https://github.com/manipuladordedados/tocaia
    
    PR:             289195
    Reported by:    Valter Nazianzeno <manipuladordedados@gmail.com> (new maintainer)
    Reviewed by:    Yusuf Yaman <nxjoseph@protonmail.com>
---
 www/Makefile                    |  1 +
 www/tocaia/Makefile             | 17 +++++++++++++++++
 www/tocaia/distinfo             |  3 +++
 www/tocaia/files/patch-Makefile | 31 +++++++++++++++++++++++++++++++
 www/tocaia/pkg-descr            |  3 +++
 5 files changed, 55 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 4aa83a615b71..5d9ca2a97e52 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2541,6 +2541,7 @@
     SUBDIR += tinyproxy
     SUBDIR += tivoka
     SUBDIR += tntnet
+    SUBDIR += tocaia
     SUBDIR += tokyopromenade
     SUBDIR += tomcat-devel
     SUBDIR += tomcat-native
diff --git a/www/tocaia/Makefile b/www/tocaia/Makefile
new file mode 100644
index 000000000000..e0a00bebb391
--- /dev/null
+++ b/www/tocaia/Makefile
@@ -0,0 +1,17 @@
+PORTNAME=	tocaia
+DISTVERSION=	0.9.0
+CATEGORIES=	www
+
+MAINTAINER=	manipuladordedados@gmail.com
+COMMENT=	Portable TUI Gopher client written in C89 for POSIX systems
+WWW=		https://github.com/manipuladordedados/tocaia
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	manipuladordedados
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/www/tocaia/distinfo b/www/tocaia/distinfo
new file mode 100644
index 000000000000..dc4f55f11700
--- /dev/null
+++ b/www/tocaia/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1756766827
+SHA256 (manipuladordedados-tocaia-0.9.0_GH0.tar.gz) = be4528728d782bfac6b4dba9c7df639f2d3b888715751c25ca44310960f0c58f
+SIZE (manipuladordedados-tocaia-0.9.0_GH0.tar.gz) = 1101255
diff --git a/www/tocaia/files/patch-Makefile b/www/tocaia/files/patch-Makefile
new file mode 100644
index 000000000000..8e4c5f1b6afe
--- /dev/null
+++ b/www/tocaia/files/patch-Makefile
@@ -0,0 +1,31 @@
+--- Makefile.orig	2025-08-31 09:07:10 UTC
++++ Makefile
+@@ -1,12 +1,13 @@
+-CC ?= cc
+-CFLAGS = -std=c89 -Wall -pedantic
++CC	?= cc
++CFLAGS	+= -std=c89 -Wall -pedantic
+ 
+-OBJ  = tocaia.o
+-EXEC = tocaia
++OBJ	= tocaia.o
++EXEC	= tocaia
+ 
+-PREFIX ?= /usr/local
+-BINDIR = $(PREFIX)/bin
+-INSTALL ?= install
++PREFIX	?= /usr/local
++BINDIR	= $(PREFIX)/bin
++INSTALL	?= install
++STRIP	?= strip
+ 
+ all: $(EXEC)
+ 
+@@ -24,6 +25,7 @@ install: $(EXEC)
+ install: $(EXEC)
+ 	mkdir -p $(DESTDIR)$(BINDIR)
+ 	$(INSTALL) -m 755 $(EXEC) $(DESTDIR)$(BINDIR)/$(EXEC)
++	$(STRIP) $(DESTDIR)$(BINDIR)/$(EXEC)
+ 
+ uninstall:
+ 	rm -f $(DESTDIR)$(BINDIR)/$(EXEC)
diff --git a/www/tocaia/pkg-descr b/www/tocaia/pkg-descr
new file mode 100644
index 000000000000..1599b39ef498
--- /dev/null
+++ b/www/tocaia/pkg-descr
@@ -0,0 +1,3 @@
+Tocaia is a minimalist and cross-platform Gopher client.
+Built with minimal dependencies, it offers a fast, efficient,
+and a direct browsing experience navigating the Gopherspace.