x11-terms/ghostty: add missing depend dev-libs/oniguruma
[gentoo-zh.git] / net-p2p / qbittorrent-enhanced / qbittorrent-enhanced-5.0.3.10.ebuild
blobe1e6bdea1efc2eb583a8cfec3eb8fcdc16254309
1 # Copyright 2022-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 CMAKE_IN_SOURCE_BUILD=ON
8 inherit cmake systemd xdg
10 DESCRIPTION="qBittorrent Enhanced, based on qBittorrent"
11 HOMEPAGE="https://github.com/c0re100/qBittorrent-Enhanced-Edition"
13 SRC_URI="https://github.com/c0re100/qBittorrent-Enhanced-Edition/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
14 S="${WORKDIR}/qBittorrent-Enhanced-Edition-release-${PV}"
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="+dbus webui +gui"
21 REQUIRED_USE="dbus? ( gui )
22 || ( gui webui )
25 RDEPEND="
26 >=dev-libs/boost-1.65.0-r1:=
27 dev-libs/openssl:=
28 net-libs/libtorrent-rasterbar
29 sys-libs/zlib
30 dev-libs/geoip
32 dev-qt/qtbase:6[network,ssl,sql,xml]
33 gui? (
34 dev-qt/qtbase:6[gui,widgets]
35 dev-qt/qtsvg:6
37 dbus? ( dev-qt/qtbase:6[dbus] )
40 DEPEND="${RDEPEND}"
41 BDEPEND="dev-qt/qttools:6
42 virtual/pkgconfig"
44 DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md)
46 PATCHES=(
47 "${FILESDIR}/4.5-fix-compile-error-when-disable-webui.patch"
50 src_configure() {
51 set enable_gui="OFF"
52 if use gui ; then
53 enable_gui="ON"
56 local mycmakeargs=(
57 -DDBUS=$(usex dbus)
58 -DWEBUI=$(usex webui)
59 -DGUI=$(usex gui )
61 -DSYSTEMD=ON
62 -DSYSTEMD_SERVICES_INSTALL_DIR=$(systemd_get_systemunitdir)
64 -DVERBOSE_CONFIGURE=ON
67 cmake_src_configure
70 src_install() {
71 cmake_src_install
72 einstalldocs