net-irc/weechat: sync live ebuild
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Fri, 13 Dec 2019 23:31:10 +0000 (15:31 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Fri, 13 Dec 2019 23:31:10 +0000 (15:31 -0800)
Package-Manager: Portage-2.3.79, Repoman-2.3.17
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
net-irc/weechat/weechat-9999.ebuild

index f7a938e7645d003eae0f5a30de9997cb1d519158..545aee9eafe2036d1790298d70314025954fa598 100644 (file)
@@ -51,6 +51,7 @@ DEPEND="${RDEPEND}
 "
 
 BDEPEND="
+       virtual/pkgconfig
        doc? ( >=dev-ruby/asciidoctor-1.5.4 )
        man? ( >=dev-ruby/asciidoctor-1.5.4 )
        nls? ( >=sys-devel/gettext-0.15 )
@@ -135,6 +136,10 @@ src_configure() {
                -DENABLE_XFER=$(usex xfer)
        )
 
+       if use python; then
+               python_is_python3 || mycmakeargs+=( -DENABLE_PYTHON2=ON )
+       fi
+
        cmake-utils_src_configure
 }