diff options
Diffstat (limited to 'net-p2p/qbittorrent/qbittorrent-4.4.5-r1.ebuild')
-rw-r--r-- | net-p2p/qbittorrent/qbittorrent-4.4.5-r1.ebuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/net-p2p/qbittorrent/qbittorrent-4.4.5-r1.ebuild b/net-p2p/qbittorrent/qbittorrent-4.4.5-r1.ebuild index 86809760e4f7..0e71f8eb646d 100644 --- a/net-p2p/qbittorrent/qbittorrent-4.4.5-r1.ebuild +++ b/net-p2p/qbittorrent/qbittorrent-4.4.5-r1.ebuild @@ -56,15 +56,9 @@ src_prepare() { src_configure() { multibuild_src_configure() { local mycmakeargs=( - -DDBUS=$(usex dbus) - # musl lacks execinfo.h -DSTACKTRACE=$(usex !elibc_musl) - # We always want to install unit files - -DSYSTEMD=ON - -DSYSTEMD_SERVICES_INSTALL_DIR=$(systemd_get_systemunitdir) - # More verbose build logs are preferable for bug reports -DVERBOSE_CONFIGURE=ON @@ -77,9 +71,20 @@ src_configure() { if [[ ${MULTIBUILD_VARIANT} == gui ]]; then # We do this in multibuild, see bug #839531 for why. # Fedora has to do the same thing. - mycmakeargs+=( -DGUI=ON ) + mycmakeargs+=( + -DGUI=ON + -DDBUS=$(usex dbus) + -DSYSTEMD=OFF + ) else - mycmakeargs+=( -DGUI=OFF ) + mycmakeargs+=( + -DGUI=OFF + -DDBUS=OFF + # The systemd service calls qbittorrent-nox, which is only + # installed when GUI=OFF. + -DSYSTEMD=ON + -DSYSTEMD_SERVICES_INSTALL_DIR="$(systemd_get_systemunitdir)" + ) fi cmake_src_configure @@ -94,11 +99,5 @@ src_compile() { src_install() { multibuild_foreach_variant cmake_src_install - - if ! use webui ; then - # No || die deliberately as it doesn't always exist - rm "${D}/$(systemd_get_systemunitdir)"/qbittorrent-nox*.service - fi - einstalldocs } |