commit:     cbc31bfe00302607bf2d8c0f0920f1e3e798aa60
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun May  5 05:06:31 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May  5 11:47:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbc31bfe

net-irc/weechat: implement new option in live ebuild

If we don't set this option the build fails.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-irc/weechat/metadata.xml        | 1 +
 net-irc/weechat/weechat-9999.ebuild | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/net-irc/weechat/metadata.xml b/net-irc/weechat/metadata.xml
index 24a75e8121cd..905904120abb 100644
--- a/net-irc/weechat/metadata.xml
+++ b/net-irc/weechat/metadata.xml
@@ -24,6 +24,7 @@
                <flag name="irc">Enable IRC protocol support</flag>
                <flag name="logger">Enable support for logging</flag>
                <flag name="relay">Enable relay plugin (experimental)</flag>
+               <flag name="relay-api">Enable json API support for the relay 
plugin (experimental)</flag>
                <flag name="scripts">Build infrastructure for scripting</flag>
                <flag name="trigger">Enable trigger plugin</flag>
                <flag name="typing">Enable typing plugin</flag>

diff --git a/net-irc/weechat/weechat-9999.ebuild 
b/net-irc/weechat/weechat-9999.ebuild
index 0a07f1ce102d..84e5faff5549 100644
--- a/net-irc/weechat/weechat-9999.ebuild
+++ b/net-irc/weechat/weechat-9999.ebuild
@@ -32,13 +32,14 @@ PLUGINS="+alias +buflist +charset +exec +fifo +fset +logger 
+relay +scripts +spe
 # dev-lang/php eclass support is lacking, php plugins don't work. bug #705702
 SCRIPT_LANGS="guile lua +perl +python ruby tcl"
 LANGS=" cs de es fr it ja pl ru"
-IUSE="doc enchant man nls selinux test +zstd ${SCRIPT_LANGS} ${PLUGINS} 
${INTERFACES} ${NETWORKS}"
+IUSE="doc enchant man nls relay-api selinux test +zstd ${SCRIPT_LANGS} 
${PLUGINS} ${INTERFACES} ${NETWORKS}"
 
 REQUIRED_USE="
        enchant? ( spell )
        lua? ( ${LUA_REQUIRED_USE} )
        python? ( ${PYTHON_REQUIRED_USE} )
        test? ( nls )
+       relay-api? ( relay )
 "
 
 RDEPEND="
@@ -164,6 +165,7 @@ src_configure() {
                -DENABLE_PERL=$(usex perl)
                -DENABLE_PYTHON=$(usex python)
                -DENABLE_RELAY=$(usex relay)
+               -DENABLE_CJSON=$(usex relay-api)
                -DENABLE_RUBY=$(usex ruby)
                -DENABLE_SCRIPT=$(usex scripts)
                -DENABLE_SCRIPTS=$(usex scripts)

Reply via email to