commit: 8d541f597773ba09ab9c1b9770b9717266b65180 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Fri Dec 13 23:30:40 2019 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Fri Dec 13 23:30:40 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d541f59
net-irc/weechat: fix build with python2 Closes: https://bugs.gentoo.org/702706 Package-Manager: Portage-2.3.79, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> net-irc/weechat/weechat-2.7.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net-irc/weechat/weechat-2.7.ebuild b/net-irc/weechat/weechat-2.7.ebuild index f7a938e7645..545aee9eafe 100644 --- a/net-irc/weechat/weechat-2.7.ebuild +++ b/net-irc/weechat/weechat-2.7.ebuild @@ -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 }
