{ "name": "weechat", "version": "4.10.1", "summary": "WeeChat: a terminal IRC client with Perl, Python, Lua and Tcl scripts, and weechat-headless", "category": "network", "license": "GPL-3.0-or-later", "homepage": "https://weechat.org/", "source": { "url": "https://weechat.org/files/src/weechat-4.10.1.tar.xz", "sha256": "b8744c6f5dc5543062791f563e0516dbc96a36161e1a03c468b3b7dcc8be5aff" }, "watch": {"kind": "index", "url": "https://weechat.org/files/src/", "regex": "weechat-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.xz"}, "deps": [ "ncurses", "curl", "gnutls", "libgcrypt", "zlib", "zstd", "cjson", "libxcrypt", "perl", "python", "lua", "tcl" ], "env_packages": [ "cmake", "ninja-build" ], "static": false, "nss": true, "check": "t=$(mktemp -d) && printf '%s\\n' 'weechat::register \"bvs\" \"bvs\" \"1.0\" \"GPL3\" \"bvs check\" \"\" \"\"' 'weechat::print \"\" \"tcl [expr {6*7}]\"' > \"$t/bvs.tcl\" && timeout 60 bin/weechat-headless --dir \"$t\" -r \"/print bvs check 42;/python eval weechat.prnt(\\\"\\\", \\\"py %d\\\" % (6*7));/perl eval weechat::print(\\\"\\\", \\\"pl \\\" . 6*7);/lua eval weechat.print(\\\"\\\", \\\"lua \\\" .. 6*7);/tcl load $t/bvs.tcl;/plugin list;/set irc.server_default.nicks bvsnick;/save;/quit\" > \"$t/out\" 2>&1 && L=\"$t/logs/core.weechat.weechatlog\" && for w in 'bvs check 42' 'py 42' 'pl 42' 'lua 42' 'tcl 42' 'irc: ' 'relay: ' 'logger: ' 'python: ' 'perl: '; do has -F \"$w\" < \"$L\" > /dev/null || { echo \"weechat: no '$w' in its log\"; exit 1; }; done && has -x 'nicks = \"bvsnick\"' < \"$t/irc.conf\" > /dev/null && echo 'weechat 4.10.1: weechat-headless prints a line, runs Python, Perl and Lua code and a Tcl script, lists its plugins (irc, relay, logger…) and saves a setting'" }