commit:     1f6ab8468450056662c6fdd88c55a4f3b99f3762
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  4 13:58:23 2023 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Tue Jul  4 14:00:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f6ab846

net-libs/xrootd: conditionally add CMake configure option

The option -DINSTALL_PYTHON_BINDINGS only exists when Python support
is enabled. We need to disble it so that only disutils-r1 installs
the Python bindings.

Closes: https://bugs.gentoo.org/909630
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 net-libs/xrootd/xrootd-5.6.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-libs/xrootd/xrootd-5.6.0.ebuild 
b/net-libs/xrootd/xrootd-5.6.0.ebuild
index 2b1bbcc41697..f7121d82e57c 100644
--- a/net-libs/xrootd/xrootd-5.6.0.ebuild
+++ b/net-libs/xrootd/xrootd-5.6.0.ebuild
@@ -101,7 +101,7 @@ src_prepare() {
 src_configure() {
        local mycmakeargs=(
                -DUSE_SYSTEM_ISAL=TRUE
-               -DINSTALL_PYTHON_BINDINGS=FALSE
+               $(usex python "-DINSTALL_PYTHON_BINDINGS=FALSE" "")
                -DXRDCEPH_SUBMODULE=$(usex ceph)
                -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex libxml2 "no" "yes")
                -DCMAKE_DISABLE_FIND_PACKAGE_systemd=$(usex systemd "no" "yes")

Reply via email to