1 |
commit: 9149a2e696c66a4bda804fcf44c0ec6b3bf75d9a |
2 |
Author: Joe Kappus <joe <AT> wt <DOT> gd> |
3 |
AuthorDate: Wed Mar 1 01:42:59 2023 +0000 |
4 |
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 1 22:33:58 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9149a2e6 |
7 |
|
8 |
net-p2p/qbittorrent: add 4.5.2 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/898508 |
11 |
Signed-off-by: Joe Kappus <joe <AT> wt.gd> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/29864 |
13 |
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org> |
14 |
|
15 |
net-p2p/qbittorrent/Manifest | 1 + |
16 |
net-p2p/qbittorrent/qbittorrent-4.5.2.ebuild | 103 +++++++++++++++++++++++++++ |
17 |
2 files changed, 104 insertions(+) |
18 |
|
19 |
diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest |
20 |
index 7ae9a277ae21..742e3b0d6867 100644 |
21 |
--- a/net-p2p/qbittorrent/Manifest |
22 |
+++ b/net-p2p/qbittorrent/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST qbittorrent-4.4.5.tar.gz 7739170 BLAKE2B b40a3ca63c787e0b9b9aac00a6fef452b461ba36b1ef030bc3cdd5fbefcca42d58ff6c3bd382e49f7937161afc6a37bc2c29de4f804db10c7031b9f1ad5f4e2b SHA512 a2b6ecd9a6f087a7ecaad2774d395ee4b2164cb8540b9f32574640f485fa3fc8688046d30e0179863a0aff1524d69b83c00bc232c7feb9ad737c79a05734ad95 |
25 |
DIST qbittorrent-4.5.1.tar.gz 8780065 BLAKE2B 5c910722d778272972b90f8a2680b0450ea4220a760335e09bf078a63bbdc0c35788de6d75375c4de808582f386cc7d4c372b87d3a6308aa41f575a72927de5e SHA512 46042e55618b9bb24b61b88695a2ab01e5aef39fcad465d47aabe9965d2b66c96e0f35af49bb19b597c009de5b844969819d9dc700b883b1c0d99e2b9671f405 |
26 |
+DIST qbittorrent-4.5.2.tar.gz 8890525 BLAKE2B 48585b703ce6edf862ea3c8cfad6cab2edcb65a138c6e8d232322b4f4fd682c87447ff11d29c04c26b5623e730ab9a1ce0496456b3ba6122f97913bd92b86790 SHA512 e900a1c5f0f70163463557aec3de0d31394fac56cfed91ea53ee5cf852cce4b2998bf79be60fc547c1c34a1658378f3ed9dbfb30aae5a772b85d819c7e7ce458 |
27 |
|
28 |
diff --git a/net-p2p/qbittorrent/qbittorrent-4.5.2.ebuild b/net-p2p/qbittorrent/qbittorrent-4.5.2.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..47567072162d |
31 |
--- /dev/null |
32 |
+++ b/net-p2p/qbittorrent/qbittorrent-4.5.2.ebuild |
33 |
@@ -0,0 +1,103 @@ |
34 |
+# Copyright 1999-2023 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+inherit cmake multibuild systemd xdg |
40 |
+ |
41 |
+DESCRIPTION="BitTorrent client in C++ and Qt" |
42 |
+HOMEPAGE="https://www.qbittorrent.org" |
43 |
+ |
44 |
+if [[ ${PV} == *9999 ]]; then |
45 |
+ EGIT_REPO_URI="https://github.com/qbittorrent/qBittorrent.git" |
46 |
+ inherit git-r3 |
47 |
+else |
48 |
+ SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
50 |
+ S="${WORKDIR}"/qBittorrent-release-${PV} |
51 |
+fi |
52 |
+ |
53 |
+LICENSE="GPL-2" |
54 |
+SLOT="0" |
55 |
+IUSE="+dbus +gui webui" |
56 |
+REQUIRED_USE="dbus? ( gui ) |
57 |
+ || ( gui webui )" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ dev-libs/boost:= |
61 |
+ >=dev-libs/openssl-1.1.1:= |
62 |
+ dev-qt/qtcore:5 |
63 |
+ dev-qt/qtnetwork:5[ssl] |
64 |
+ dev-qt/qtsql:5 |
65 |
+ dev-qt/qtxml:5 |
66 |
+ <net-libs/libtorrent-rasterbar-2:= |
67 |
+ >=sys-libs/zlib-1.2.11 |
68 |
+ dbus? ( dev-qt/qtdbus:5 ) |
69 |
+ gui? ( |
70 |
+ dev-libs/geoip |
71 |
+ dev-qt/qtgui:5 |
72 |
+ dev-qt/qtsvg:5 |
73 |
+ dev-qt/qtwidgets:5 |
74 |
+ )" |
75 |
+DEPEND="${RDEPEND}" |
76 |
+BDEPEND="dev-qt/linguist-tools:5 |
77 |
+ virtual/pkgconfig" |
78 |
+ |
79 |
+DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md ) |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ MULTIBUILD_VARIANTS=() |
83 |
+ use gui && MULTIBUILD_VARIANTS+=( gui ) |
84 |
+ use webui && MULTIBUILD_VARIANTS+=( nogui ) |
85 |
+ |
86 |
+ cmake_src_prepare |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ multibuild_src_configure() { |
91 |
+ local mycmakeargs=( |
92 |
+ # musl lacks execinfo.h |
93 |
+ -DSTACKTRACE=$(usex !elibc_musl) |
94 |
+ |
95 |
+ # More verbose build logs are preferable for bug reports |
96 |
+ -DVERBOSE_CONFIGURE=ON |
97 |
+ |
98 |
+ # Not yet in ::gentoo |
99 |
+ -DQT6=OFF |
100 |
+ |
101 |
+ -DWEBUI=$(usex webui) |
102 |
+ ) |
103 |
+ |
104 |
+ if [[ ${MULTIBUILD_VARIANT} == gui ]]; then |
105 |
+ # We do this in multibuild, see bug #839531 for why. |
106 |
+ # Fedora has to do the same thing. |
107 |
+ mycmakeargs+=( |
108 |
+ -DGUI=ON |
109 |
+ -DDBUS=$(usex dbus) |
110 |
+ -DSYSTEMD=OFF |
111 |
+ ) |
112 |
+ else |
113 |
+ mycmakeargs+=( |
114 |
+ -DGUI=OFF |
115 |
+ -DDBUS=OFF |
116 |
+ # The systemd service calls qbittorrent-nox, which is only |
117 |
+ # installed when GUI=OFF. |
118 |
+ -DSYSTEMD=ON |
119 |
+ -DSYSTEMD_SERVICES_INSTALL_DIR="$(systemd_get_systemunitdir)" |
120 |
+ ) |
121 |
+ fi |
122 |
+ |
123 |
+ cmake_src_configure |
124 |
+ } |
125 |
+ |
126 |
+ multibuild_foreach_variant multibuild_src_configure |
127 |
+} |
128 |
+ |
129 |
+src_compile() { |
130 |
+ multibuild_foreach_variant cmake_src_compile |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ multibuild_foreach_variant cmake_src_install |
135 |
+ einstalldocs |
136 |
+} |