commit:     9450fa1b30af7f79bd1b5354230e79d12ef84268
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  9 21:54:14 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Sep  9 21:54:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9450fa1b

net-misc/sunshine: Fix 9999 build by disabling docs

Building the docs involves more npm pain. It's not worth it.

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 net-misc/sunshine/sunshine-9999.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net-misc/sunshine/sunshine-9999.ebuild 
b/net-misc/sunshine/sunshine-9999.ebuild
index 6135d7c43f78..5018392b1133 100644
--- a/net-misc/sunshine/sunshine-9999.ebuild
+++ b/net-misc/sunshine/sunshine-9999.ebuild
@@ -52,7 +52,7 @@ DESCRIPTION="Self-hosted game stream host for Moonlight"
 HOMEPAGE="https://github.com/LizardByte/Sunshine";
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="cuda debug libdrm svt-av1 trayicon vaapi wayland X x264 x265"
+IUSE="cuda debug libdrm svt-av1 systemd trayicon vaapi wayland X x264 x265"
 
 # Strings for CPU features in the useflag[:configure_option] form
 # if :configure_option isn't set, it will use 'useflag' as configure option
@@ -338,6 +338,7 @@ src_configure() {
        local mycmakeargs=(
                -DBUILD_SHARED_LIBS=no
                -DBOOST_USE_STATIC=no
+               -DBUILD_DOCS=no
                -DBUILD_TESTS=no
                -DCCACHE_FOUND=no
                -DCMAKE_DISABLE_FIND_PACKAGE_Git=yes
@@ -352,9 +353,9 @@ src_configure() {
                -DSUNSHINE_ENABLE_TRAY=$(usex trayicon)
                -DSUNSHINE_REQUIRE_TRAY=$(usex trayicon)
                -DSUNSHINE_SYSTEM_WAYLAND_PROTOCOLS=yes
-               -DSYSTEMD_USER_UNIT_INSTALL_DIR=$(systemd_get_userunitdir)
                -DUDEV_RULES_INSTALL_DIR=$(get_udevdir)/rules.d
        )
+       use systemd && mycmakeargs+=( 
-DSYSTEMD_USER_UNIT_INSTALL_DIR=$(systemd_get_userunitdir) )
        [[ ${PV} = 9999* ]] || mycmakeargs+=( -DNPM="${BROOT}"/bin/true )
        CMAKE_USE_DIR="${S}" cmake_src_configure
 }

Reply via email to