git: 88b79bd7e0e9 - main - net-im/nchat: update: 5.14.44 -> 5.15.26

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Sun, 17 May 2026 13:52:53 UTC
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=88b79bd7e0e93e6689f9dab9996a31db43684c6f

commit 88b79bd7e0e93e6689f9dab9996a31db43684c6f
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2026-05-17 13:48:10 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2026-05-17 13:48:10 +0000

    net-im/nchat: update: 5.14.44 -> 5.15.26
    
    The themes installation has been removed for some reason, and because
    of their usefulness it's better to resurrect such functionality.  In
    addition to that, add templates installation as well.
    
    ChangeLog:      https://github.com/d99kris/nchat/compare/v5.14.44...v5.15.26
    
    Sponsored by:   tipi.work
---
 net-im/nchat/Makefile                   |  2 +-
 net-im/nchat/distinfo                   |  6 ++---
 net-im/nchat/files/patch-CMakeLists.txt | 47 +++++++++++++++++++++++++++++++++
 net-im/nchat/pkg-plist                  |  8 ++++++
 4 files changed, 59 insertions(+), 4 deletions(-)

diff --git a/net-im/nchat/Makefile b/net-im/nchat/Makefile
index 58087af07686..05aeb4c925f7 100644
--- a/net-im/nchat/Makefile
+++ b/net-im/nchat/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	nchat
-PORTVERSION=	5.14.44
+PORTVERSION=	5.15.26
 DISTVERSIONPREFIX=	v
 CATEGORIES=	net-im
 EXTRACT_ONLY=	${GH_ACCOUNT}-${PORTNAME}-v${PORTVERSION}_GH0.tar.gz
diff --git a/net-im/nchat/distinfo b/net-im/nchat/distinfo
index e397ff2ec102..5d5026161ff7 100644
--- a/net-im/nchat/distinfo
+++ b/net-im/nchat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1775746362
-SHA256 (d99kris-nchat-v5.14.44_GH0.tar.gz) = e1d32c9130d94caadfcf08e69a6edd23f42c1be182479a920a73dfe546bc885c
-SIZE (d99kris-nchat-v5.14.44_GH0.tar.gz) = 7996752
+TIMESTAMP = 1779017821
+SHA256 (d99kris-nchat-v5.15.26_GH0.tar.gz) = 4f5a501747c6989fd6ecd3c2d3290446ea6a1f5a18a5981db7c420beddb15d35
+SIZE (d99kris-nchat-v5.15.26_GH0.tar.gz) = 7727498
diff --git a/net-im/nchat/files/patch-CMakeLists.txt b/net-im/nchat/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..3b98e140eb0c
--- /dev/null
+++ b/net-im/nchat/files/patch-CMakeLists.txt
@@ -0,0 +1,47 @@
+--- CMakeLists.txt.orig	2026-05-03 12:07:01 UTC
++++ CMakeLists.txt
+@@ -419,6 +419,44 @@ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_I
+ configure_file(src/compose ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBEXECDIR}/nchat/compose COPYONLY)
+ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBEXECDIR}/nchat/compose DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/nchat)
+
++# Themes
++macro(add_theme themedir)
++  configure_file(themes/${themedir}/color.conf ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/${themedir}/color.conf COPYONLY)
++  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/${themedir}/color.conf DESTINATION share/nchat/themes/${themedir})
++  if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/themes/${themedir}/usercolor.conf")
++    configure_file(themes/${themedir}/usercolor.conf ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/${themedir}/usercolor.conf COPYONLY)
++    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/${themedir}/usercolor.conf DESTINATION share/nchat/themes/${themedir})
++  endif()
++endmacro()
++add_theme("ayu-dark")
++add_theme("default")
++add_theme("basic-color")
++add_theme("dracula")
++add_theme("catppuccin-mocha")
++add_theme("espresso")
++add_theme("gruvbox-dark-hard")
++add_theme("gruvbox-dark")
++add_theme("solarized-dark-higher-contrast")
++add_theme("tokyo-night")
++add_theme("tomorrow-night")
++add_theme("zenbones-dark")
++add_theme("zenburned")
++
++# Themes
++macro(add_template templatedir)
++  configure_file(themes/templates/${templatedir}/nchat-color.conf ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/templates/${templatedir}/nchat-color.conf COPYONLY)
++  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/templates/${templatedir}/nchat-color.conf DESTINATION share/nchat/themes/templates/${templatedir})
++  if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/themes/templates/${templatedir}/nchat-usercolor.conf")
++    configure_file(themes/templates/${templatedir}/nchat-usercolor.conf ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/templates/${templatedir}/nchat-usercolor.conf COPYONLY)
++    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/templates/${templatedir}/nchat-usercolor.conf DESTINATION share/nchat/themes/templates/${templatedir})
++  endif()
++  if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/themes/templates/${templatedir}/README.md")
++    configure_file(themes/templates/${templatedir}/README.md ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/templates/${templatedir}/README.md COPYONLY)
++    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/nchat/themes/templates/${templatedir}/README.md DESTINATION share/nchat/themes/templates/${templatedir})
++  endif()
++endmacro()
++add_template("iterm2-color-schemes")
++
+ # Uninstall
+ if(HAS_SHARED_LIBS)
+   add_custom_target(uninstall
diff --git a/net-im/nchat/pkg-plist b/net-im/nchat/pkg-plist
index bec48a956960..f873865e8be4 100644
--- a/net-im/nchat/pkg-plist
+++ b/net-im/nchat/pkg-plist
@@ -6,19 +6,27 @@ lib/libtgchat
 %%LITTLE_ENDIAN%%lib/libtgchat.so
 libexec/nchat/compose
 share/man/man1/nchat.1.gz
+%%DATADIR%%/themes/ayu-dark/color.conf
+%%DATADIR%%/themes/ayu-dark/usercolor.conf
 %%DATADIR%%/themes/basic-color/color.conf
 %%DATADIR%%/themes/basic-color/usercolor.conf
 %%DATADIR%%/themes/catppuccin-mocha/color.conf
 %%DATADIR%%/themes/catppuccin-mocha/usercolor.conf
 %%DATADIR%%/themes/default/color.conf
+%%DATADIR%%/themes/default/usercolor.conf
 %%DATADIR%%/themes/dracula/color.conf
 %%DATADIR%%/themes/dracula/usercolor.conf
 %%DATADIR%%/themes/espresso/color.conf
 %%DATADIR%%/themes/espresso/usercolor.conf
+%%DATADIR%%/themes/gruvbox-dark-hard/color.conf
+%%DATADIR%%/themes/gruvbox-dark-hard/usercolor.conf
 %%DATADIR%%/themes/gruvbox-dark/color.conf
 %%DATADIR%%/themes/gruvbox-dark/usercolor.conf
 %%DATADIR%%/themes/solarized-dark-higher-contrast/color.conf
 %%DATADIR%%/themes/solarized-dark-higher-contrast/usercolor.conf
+%%DATADIR%%/themes/templates/iterm2-color-schemes/nchat-color.conf
+%%DATADIR%%/themes/templates/iterm2-color-schemes/nchat-usercolor.conf
+%%DATADIR%%/themes/templates/iterm2-color-schemes/README.md
 %%DATADIR%%/themes/tokyo-night/color.conf
 %%DATADIR%%/themes/tokyo-night/usercolor.conf
 %%DATADIR%%/themes/tomorrow-night/color.conf