summaryrefslogtreecommitdiff
path: root/net-p2p/qbittorrent/qbittorrent-5.2.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-05-05 23:40:39 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-05-05 23:40:39 +0000
commit3b7c736127c88c784bbb145f0cc1cb3e61321495 (patch)
tree47dac29fdc91bc0f90d915055b09f86bcf7435b1 /net-p2p/qbittorrent/qbittorrent-5.2.0.ebuild
parent95d24580bfec4b0b8d7b1cd07bcef4af3122de50 (diff)
downloadbaldeagleos-repo-3b7c736127c88c784bbb145f0cc1cb3e61321495.tar.gz
baldeagleos-repo-3b7c736127c88c784bbb145f0cc1cb3e61321495.tar.xz
baldeagleos-repo-3b7c736127c88c784bbb145f0cc1cb3e61321495.zip
Adding metadata
Diffstat (limited to 'net-p2p/qbittorrent/qbittorrent-5.2.0.ebuild')
-rw-r--r--net-p2p/qbittorrent/qbittorrent-5.2.0.ebuild128
1 files changed, 128 insertions, 0 deletions
diff --git a/net-p2p/qbittorrent/qbittorrent-5.2.0.ebuild b/net-p2p/qbittorrent/qbittorrent-5.2.0.ebuild
new file mode 100644
index 000000000000..76cea754ef41
--- /dev/null
+++ b/net-p2p/qbittorrent/qbittorrent-5.2.0.ebuild
@@ -0,0 +1,128 @@
+# Copyright 2020-2026 Liguros Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=8
+
+inherit cmake edo multibuild optfeature systemd verify-sig xdg
+
+DESCRIPTION="BitTorrent client in C++ and Qt"
+HOMEPAGE="https://www.qbittorrent.org https://github.com/qbittorrent"
+
+SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+S="${WORKDIR}/qBittorrent-release-${PV}"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+dbus +gui libressl systemd test webui"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ || ( gui webui )
+ dbus? ( gui )
+"
+
+RDEPEND="
+ !libressl? ( >=dev-libs/openssl-3.0.2:= )
+ libressl? ( dev-libs/libressl )
+ >=net-libs/libtorrent-rasterbar-1.2.19:=
+ >=sys-libs/zlib-1.2.11
+ >=dev-qt/qtbase-6.5:6[network,ssl,sql,sqlite,xml]
+ gui? (
+ >=dev-qt/qtbase-6.5:6[dbus?,gui,widgets]
+ >=dev-qt/qtsvg-6.5:6
+ )
+ webui? (
+ acct-group/qbittorrent
+ acct-user/qbittorrent
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ >=dev-libs/boost-1.76
+"
+BDEPEND+="
+ >=dev-qt/qttools-6.5:6[linguist]
+ virtual/pkgconfig
+"
+
+DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md )
+
+src_prepare() {
+ MULTIBUILD_VARIANTS=()
+ use gui && MULTIBUILD_VARIANTS+=( gui )
+ use webui && MULTIBUILD_VARIANTS+=( nogui )
+
+ if use libressl; then
+ eapply ${FILESDIR}/cmakelist_txt.patch
+ fi
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ my_src_configure() {
+ local mycmakeargs=(
+ # musl lacks execinfo.h
+ -DSTACKTRACE=$(usex !elibc_musl)
+ # More verbose build logs are preferable for bug reports
+ -DVERBOSE_CONFIGURE=ON
+ -DWEBUI=$(usex webui)
+ -DTESTING=$(usex test)
+ )
+
+ 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
+ -DDBUS=$(usex dbus)
+ -DSYSTEMD=OFF
+ )
+ else
+ mycmakeargs+=(
+ -DGUI=OFF
+ -DDBUS=OFF
+ )
+
+ use systemd && mycmakeargs+=(
+ # 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
+ }
+
+ multibuild_foreach_variant my_src_configure
+}
+
+src_compile() {
+ multibuild_foreach_variant cmake_src_compile
+}
+
+src_test() {
+ my_src_test() {
+ # cmake does not detect tests by default, if you use enable_testing
+ # in a subdirectory instead of the root CMakeLists.txt
+ cd "${BUILD_DIR}"/test || die
+ edo ctest .
+ }
+
+ multibuild_foreach_variant my_src_test
+}
+
+src_install() {
+ multibuild_foreach_variant cmake_src_install
+ einstalldocs
+
+ if use webui; then
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ optfeature "I2P anonymyzing network support" net-vpn/i2pd net-vpn/i2p
+}