diff options
Diffstat (limited to 'net-p2p/qbittorrent')
-rw-r--r-- | net-p2p/qbittorrent/Manifest | 1 | ||||
-rw-r--r-- | net-p2p/qbittorrent/qbittorrent-4.4.2-r2.ebuild | 107 |
2 files changed, 108 insertions, 0 deletions
diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest index 11968f7e07b4..92523ecd5b59 100644 --- a/net-p2p/qbittorrent/Manifest +++ b/net-p2p/qbittorrent/Manifest @@ -5,6 +5,7 @@ DIST qbittorrent-4.4.2.tar.gz 9197188 BLAKE2B 719ca031b1a5523cd29582d7d57ac48e5d EBUILD qbittorrent-4.3.8.ebuild 1374 BLAKE2B 1fcc975df8e24e9fd47e035247e0e8e81222a3c76059de959547845fdc2ebf14f003c3c31ff64049d58fab86f3bc4330d195c32a630463b9ba97cdf1c9488509 SHA512 f4d303fe3e71e8b734cf42f136d71c863ac89ea91d3ae68e0a112c77e4a296f27168d551a7ec1c9cfcd06ca974ecb84f3dbcda5aa19b33efa82f897232ebfa56 EBUILD qbittorrent-4.3.9.ebuild 1374 BLAKE2B 50f1b1faee3b77468c8ce4b256be7e1ee9e302a7df26e4fa35e3e4dbeb2c12bcd60e271ea1fd5d0dc81e62ca04f65da672e7a4db5ec4af06c56995611dcb554c SHA512 8cd9ff1452e4fd6122e559fea1b147d34cb8ac7b2337ebaf3fdd536fb1cadb88ee8feb29fb409c0312341e7a37491ace10611ad1dc28cab41eef279a61fe8e43 EBUILD qbittorrent-4.4.1-r1.ebuild 1557 BLAKE2B ed43407db9273772656dfedbaf8d09e320c193482938c271e4655852fb0badf82f7647b1255c2660a9371dca00644bab4e401be666e7f87587a9f1f8e17cae48 SHA512 b305563d9126c1aa6916d8efbe2d256569b5a9207baa4676a3089fec2214682995978a14aea04e679dbc5b01eaaf826ab5123f0272e71db2935a41dbfadf33d7 +EBUILD qbittorrent-4.4.2-r2.ebuild 2286 BLAKE2B de28d34fe010d18f1151919062279aa4886cb5d6f21c47a55af6995e230fad8df0b733ff2b51f66bcc0f59296a3235575da63f0d121adf695e3a6e6993605221 SHA512 11e45fa7963e3211de69caba0e15d6c2959cbe2cf70e3f11c2c11e6ecd1d1e5dcd3cec5551891e6f933fadd5204738b7bc8eaa64c1cf1db14e5379939a2cf4e1 EBUILD qbittorrent-4.4.2.ebuild 1557 BLAKE2B ed43407db9273772656dfedbaf8d09e320c193482938c271e4655852fb0badf82f7647b1255c2660a9371dca00644bab4e401be666e7f87587a9f1f8e17cae48 SHA512 b305563d9126c1aa6916d8efbe2d256569b5a9207baa4676a3089fec2214682995978a14aea04e679dbc5b01eaaf826ab5123f0272e71db2935a41dbfadf33d7 EBUILD qbittorrent-9999.ebuild 1557 BLAKE2B ed43407db9273772656dfedbaf8d09e320c193482938c271e4655852fb0badf82f7647b1255c2660a9371dca00644bab4e401be666e7f87587a9f1f8e17cae48 SHA512 b305563d9126c1aa6916d8efbe2d256569b5a9207baa4676a3089fec2214682995978a14aea04e679dbc5b01eaaf826ab5123f0272e71db2935a41dbfadf33d7 MISC metadata.xml 453 BLAKE2B 0a68996aacf4ff1e56423417f8808bb66aa9563aaa3ef87c863539edd8173f32cc4a1b0061a5c9ecd63801c51ec52c54bd61ffcd869fc74dc24c2b042ec218d5 SHA512 90d52e221f153737c99b353a052683e0340f098f773b28e0d5b9d0c729b747beedadb4193c45a1f4c3df998436d194e089434aa621421bf127d049d90a14a434 diff --git a/net-p2p/qbittorrent/qbittorrent-4.4.2-r2.ebuild b/net-p2p/qbittorrent/qbittorrent-4.4.2-r2.ebuild new file mode 100644 index 000000000000..159cdd733aa3 --- /dev/null +++ b/net-p2p/qbittorrent/qbittorrent-4.4.2-r2.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake multibuild systemd xdg + +DESCRIPTION="BitTorrent client in C++ and Qt" +HOMEPAGE="https://www.qbittorrent.org + https://github.com/qbittorrent" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git" +else + SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + S="${WORKDIR}/qBittorrent-release-${PV}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="+dbus +gui webui" +REQUIRED_USE="dbus? ( gui ) + || ( gui webui )" + +RDEPEND=" + >=dev-libs/boost-1.65.0-r1:= + dev-libs/openssl:= + dev-qt/qtcore:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtsql:5 + dev-qt/qtxml:5 + >=net-libs/libtorrent-rasterbar-1.2.14:= + sys-libs/zlib + dbus? ( dev-qt/qtdbus:5 ) + gui? ( + dev-libs/geoip + dev-qt/qtgui:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + )" +DEPEND="${RDEPEND}" +BDEPEND="dev-qt/linguist-tools:5 + virtual/pkgconfig" + +DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO ) + +src_prepare() { + MULTIBUILD_VARIANTS=( base ) + use webui && MULTIBUILD_VARIANTS+=( webui ) + + multibuild_foreach_variant cmake_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 + + # Not yet in ::gentoo + -DQT6=OFF + + # We do these in multibuild, see bug #839531 for why + # Fedora has to do the same thing. + -DGUI=$(usex gui) + ) + + if [[ ${MULTIBUILD_VARIANT} == webui ]] ; then + mycmakeargs+=( + -DGUI=OFF + -DWEBUI=ON + ) + else + mycmakeargs+=( -DWEBUI=OFF ) + fi + + cmake_src_configure + } + + multibuild_foreach_variant multibuild_src_configure +} + +src_compile() { + multibuild_foreach_variant cmake_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 +} |