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,44 +1,44 @@ 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 MAINTAINER= osa@FreeBSD.org COMMENT= Another yet Telegram client WWW= https://github.com/d99kris/nchat LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake gperf localbase:ldflags ncurses:port \ python:run pkgconfig readline shebangfix ssl sqlite USE_GITHUB= yes GH_ACCOUNT= d99kris LDFLAGS+= -lexecinfo CMAKE_ARGS+= -DCLIP_X11_WITH_PNG=OFF \ -DCMAKE_INSTALL_MANDIR=share/man \ -DCURSES_CURSES_LIBRARY="${LOCALBASE}/lib/libncurses.so" \ -DCURSES_FORM_LIBRARY="${LOCALBASE}/lib/libform.so" \ -DCURSES_INCLUDE_PATH="${LOCALBASE}/include/ncurses" \ -DCURSES_NCURSES_LIBRARY="${LOCALBASE}/lib/libncursesw.so" \ -DHAS_DYNAMICLOAD=OFF \ -DHAS_SHARED_LIBS=ON \ -DHAS_WHATSAPP=OFF SHEBANG_FILES= src/compose .include .if ${ARCH} == powerpc || ${ARCH} == powerpc64 PLIST_SUB+= LITTLE_ENDIAN="@comment " .else PLIST_SUB+= LITTLE_ENDIAN="" .endif post-install: (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s libtgchat.so libtgchat) .include 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 @@ -1,29 +1,37 @@ bin/nchat lib/libduchat.so lib/libncutil.so %%LITTLE_ENDIAN%%lib/libtdclientshared.so 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 %%DATADIR%%/themes/tomorrow-night/usercolor.conf %%DATADIR%%/themes/zenbones-dark/color.conf %%DATADIR%%/themes/zenbones-dark/usercolor.conf %%DATADIR%%/themes/zenburned/color.conf %%DATADIR%%/themes/zenburned/usercolor.conf