1 |
commit: 1b899f379ae37c7c3fb5332330c8c5e424ac7b81 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 24 00:08:14 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 24 00:08:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b899f37 |
7 |
|
8 |
net-p2p/qbittorrent: add 4.4.4, update live |
9 |
|
10 |
Live now has test support. |
11 |
|
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
net-p2p/qbittorrent/Manifest | 1 + |
15 |
...orrent-9999.ebuild => qbittorrent-4.4.4.ebuild} | 13 ++++----- |
16 |
net-p2p/qbittorrent/qbittorrent-9999.ebuild | 31 +++++++++++++++------- |
17 |
3 files changed, 30 insertions(+), 15 deletions(-) |
18 |
|
19 |
diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest |
20 |
index 18ec07aba2de..410142c615b4 100644 |
21 |
--- a/net-p2p/qbittorrent/Manifest |
22 |
+++ b/net-p2p/qbittorrent/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST qbittorrent-4.3.9.tar.gz 8510414 BLAKE2B de98aff6d81f43c3ad87f6c5f800a4488e18173fb96713d0a2420cf4d4708c9b1f2f54c8d0aa566e7738b4f94d192aad9f0196a05d43724582ef81833901727f SHA512 ec33f67895fbf47acc2f79d9c9e16db8b96c756cf493b76eb24b90e13a790a709104ea9aa378ee111d8c38b605bed5192b366d1917bbf160b21aa2ae3aacd2d1 |
25 |
DIST qbittorrent-4.4.3.1.tar.gz 7736308 BLAKE2B 9177f0c629418a5f9e7f117b7d1f990181ef910193fed9763f2137cbc91c9de07ad96884d57e96782b5a2f6089fe73d3fab0a2f2f54f72dd8c2cec00dd179e5f SHA512 e3d63c4090e27387f4a5524d0daab26eab70f70ef81ad607e9661e128ccccbf33f2d240cd219bbb1fb138d6e78493ce73055d5128bf888e0ad3949922774efba |
26 |
+DIST qbittorrent-4.4.4.tar.gz 7738480 BLAKE2B 2a3157a732fda6eaff809d3ea717ebcc2cb7f4364cc3209bd1836196541e83cf8c7430b32037a6a6c4f517d17edb576dd80c834185d7cb764567bd5ce699bd52 SHA512 3bd26021f45287ff5b6c9a1629ff470204121c4056d452a5c00bc94b69a198093127916d33797b357eaacdb9ffd01d0de13daecb7503088cde440d5e4895ec3e |
27 |
|
28 |
diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild b/net-p2p/qbittorrent/qbittorrent-4.4.4.ebuild |
29 |
similarity index 87% |
30 |
copy from net-p2p/qbittorrent/qbittorrent-9999.ebuild |
31 |
copy to net-p2p/qbittorrent/qbittorrent-4.4.4.ebuild |
32 |
index 2fb87e1afc1c..15b1ff95a991 100644 |
33 |
--- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild |
34 |
+++ b/net-p2p/qbittorrent/qbittorrent-4.4.4.ebuild |
35 |
@@ -6,16 +6,15 @@ EAPI=8 |
36 |
inherit cmake multibuild systemd xdg |
37 |
|
38 |
DESCRIPTION="BitTorrent client in C++ and Qt" |
39 |
-HOMEPAGE="https://www.qbittorrent.org |
40 |
- https://github.com/qbittorrent" |
41 |
+HOMEPAGE="https://www.qbittorrent.org" |
42 |
|
43 |
if [[ ${PV} == *9999 ]]; then |
44 |
+ EGIT_REPO_URI="https://github.com/qbittorrent/qBittorrent.git" |
45 |
inherit git-r3 |
46 |
- EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git" |
47 |
else |
48 |
SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" |
49 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
50 |
- S="${WORKDIR}/qBittorrent-release-${PV}" |
51 |
+ S="${WORKDIR}"/qBittorrent-release-${PV} |
52 |
fi |
53 |
|
54 |
LICENSE="GPL-2" |
55 |
@@ -26,13 +25,13 @@ REQUIRED_USE="dbus? ( gui ) |
56 |
|
57 |
RDEPEND=" |
58 |
>=dev-libs/boost-1.65.0-r1:= |
59 |
- dev-libs/openssl:= |
60 |
+ >=dev-libs/openssl-1.1.1:= |
61 |
dev-qt/qtcore:5 |
62 |
dev-qt/qtnetwork:5[ssl] |
63 |
dev-qt/qtsql:5 |
64 |
dev-qt/qtxml:5 |
65 |
>=net-libs/libtorrent-rasterbar-1.2.14:= |
66 |
- sys-libs/zlib |
67 |
+ >=sys-libs/zlib-1.2.11 |
68 |
dbus? ( dev-qt/qtdbus:5 ) |
69 |
gui? ( |
70 |
dev-libs/geoip |
71 |
@@ -78,6 +77,8 @@ src_configure() { |
72 |
|
73 |
if [[ ${MULTIBUILD_VARIANT} == webui ]] ; then |
74 |
mycmakeargs+=( |
75 |
+ # Need to specify GUI here to allow webui settings |
76 |
+ # to appear in the GUI. bug #864731. |
77 |
-DGUI=$(usex gui) |
78 |
-DWEBUI=ON |
79 |
) |
80 |
|
81 |
diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild b/net-p2p/qbittorrent/qbittorrent-9999.ebuild |
82 |
index 2fb87e1afc1c..aa762be794a3 100644 |
83 |
--- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild |
84 |
+++ b/net-p2p/qbittorrent/qbittorrent-9999.ebuild |
85 |
@@ -6,33 +6,33 @@ EAPI=8 |
86 |
inherit cmake multibuild systemd xdg |
87 |
|
88 |
DESCRIPTION="BitTorrent client in C++ and Qt" |
89 |
-HOMEPAGE="https://www.qbittorrent.org |
90 |
- https://github.com/qbittorrent" |
91 |
+HOMEPAGE="https://www.qbittorrent.org" |
92 |
|
93 |
if [[ ${PV} == *9999 ]]; then |
94 |
+ EGIT_REPO_URI="https://github.com/qbittorrent/qBittorrent.git" |
95 |
inherit git-r3 |
96 |
- EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git" |
97 |
else |
98 |
SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" |
99 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
100 |
- S="${WORKDIR}/qBittorrent-release-${PV}" |
101 |
+ S="${WORKDIR}"/qBittorrent-release-${PV} |
102 |
fi |
103 |
|
104 |
LICENSE="GPL-2" |
105 |
SLOT="0" |
106 |
-IUSE="+dbus +gui webui" |
107 |
+IUSE="+dbus +gui test webui" |
108 |
+RESTRICT="!test? ( test )" |
109 |
REQUIRED_USE="dbus? ( gui ) |
110 |
|| ( gui webui )" |
111 |
|
112 |
RDEPEND=" |
113 |
- >=dev-libs/boost-1.65.0-r1:= |
114 |
- dev-libs/openssl:= |
115 |
+ >=dev-libs/boost-1.71:= |
116 |
+ >=dev-libs/openssl-1.1.1:= |
117 |
dev-qt/qtcore:5 |
118 |
dev-qt/qtnetwork:5[ssl] |
119 |
dev-qt/qtsql:5 |
120 |
dev-qt/qtxml:5 |
121 |
>=net-libs/libtorrent-rasterbar-1.2.14:= |
122 |
- sys-libs/zlib |
123 |
+ >=sys-libs/zlib-1.2.11 |
124 |
dbus? ( dev-qt/qtdbus:5 ) |
125 |
gui? ( |
126 |
dev-libs/geoip |
127 |
@@ -44,7 +44,7 @@ DEPEND="${RDEPEND}" |
128 |
BDEPEND="dev-qt/linguist-tools:5 |
129 |
virtual/pkgconfig" |
130 |
|
131 |
-DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO ) |
132 |
+DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md ) |
133 |
|
134 |
src_prepare() { |
135 |
MULTIBUILD_VARIANTS=( base ) |
136 |
@@ -74,10 +74,14 @@ src_configure() { |
137 |
# We do these in multibuild, see bug #839531 for why. |
138 |
# Fedora has to do the same thing. |
139 |
-DGUI=$(usex gui) |
140 |
+ |
141 |
+ -DTESTING=$(usex test) |
142 |
) |
143 |
|
144 |
if [[ ${MULTIBUILD_VARIANT} == webui ]] ; then |
145 |
mycmakeargs+=( |
146 |
+ # Need to specify GUI here to allow webui settings |
147 |
+ # to appear in the GUI. bug #864731. |
148 |
-DGUI=$(usex gui) |
149 |
-DWEBUI=ON |
150 |
) |
151 |
@@ -95,6 +99,15 @@ src_compile() { |
152 |
multibuild_foreach_variant cmake_src_compile |
153 |
} |
154 |
|
155 |
+src_test() { |
156 |
+ qbittorrent_run_tests() { |
157 |
+ cd "${BUILD_DIR}"/test || die |
158 |
+ ctest . || die |
159 |
+ } |
160 |
+ |
161 |
+ multibuild_foreach_variant qbittorrent_run_tests |
162 |
+} |
163 |
+ |
164 |
src_install() { |
165 |
multibuild_foreach_variant cmake_src_install |