Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/qbittorrent/, net-p2p/qbittorrent/files/
Date: Sat, 25 Nov 2017 11:03:23
Message-Id: 1511607782.75d47cad5a29e5175fbb2b0887850e372bd7b18c.kensington@gentoo
1 commit: 75d47cad5a29e5175fbb2b0887850e372bd7b18c
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 25 10:49:45 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 25 11:03:02 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75d47cad
7
8 net-p2p/qbittorrent: version bump 4.0.1
9
10 Closes: https://bugs.gentoo.org/638430
11 Package-Manager: Portage-2.3.14, Repoman-2.3.6
12
13 net-p2p/qbittorrent/Manifest | 3 +-
14 .../files/qbittorrent-4.0.1-nowebui.patch | 25 ++++++++
15 net-p2p/qbittorrent/qbittorrent-4.0.1.ebuild | 66 ++++++++++++++++++++++
16 3 files changed, 93 insertions(+), 1 deletion(-)
17
18 diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest
19 index 101ed3b9d0e..10b8fe7b35c 100644
20 --- a/net-p2p/qbittorrent/Manifest
21 +++ b/net-p2p/qbittorrent/Manifest
22 @@ -1,4 +1,5 @@
23 DIST qbittorrent-3.3.10.tar.xz 2959380 SHA256 2c657ceacdc84033da044a0a9ecba7e0fdb35858324dc097546f989166f1a8d2 SHA512 4f4e7071fa6db75ed2b5fbf5f17d5a9634aa5f2ed9fbcec52e6a0112967f5832e998384c7ff4962b1e00a0f847fa5d39bcdba36f997b5b895c7688e0dd247516 WHIRLPOOL 950b49d7a15aa7cf16dfe2bbfba72959e91f21f85ba589ce85be370b8b21c03fb389d404ed46ad2c802e3a57660094fe644b20df9bc3a0714cb5d9ea965e1b97
24 DIST qbittorrent-3.3.12-cmake-3.8.patch.gz 18330 SHA256 8172d04af3621ed0859ff541ae6c6e73f469125e0b7defd591191ab8c233e658 SHA512 e5aa6aa32f12c47a28658b2382faca88b64be1c198c69ad88f4fcd9f18d2db7a4e71c170dffd142b5af0184105b04dc2409417761db8859f622d42af7d25b060 WHIRLPOOL a68723a52858aed3e0474e0ccc3bcde7a451b388c8cd30ea5548f53e950902e234cb7e9cc32a86c75e367c4cad33a40beab52619de0a1f27442b89a10c25e67f
25 DIST qbittorrent-3.3.12.tar.xz 2989604 SHA256 56528c47f09b316ecf682e3896157c76c18898ef996728b0c5186e05a711466f SHA512 537ded71c75b3ab3fe014d77b5c4f8069ebb7a1aa94b5190b16e9ee910bfb70d462e5a3a536ba9222a97d8cceac00af0d33a92b7414b17724694d364fc2374df WHIRLPOOL 9f3b7cb85885691ea747b2569690aa3d1189798be6000e9ec2c8af65ccd86010be877af10b540422233f5b8c253bf221fad0fea6fdc9a0b5dcbc3cedf50613bd
26 -DIST qbittorrent-3.3.16.tar.xz 2961420 SHA256 ea08a61872c397258c2627780f6e09fe777189d9a57cc5e02a656da9aeb0be57 SHA512 518ddbf8e657b3549800b5587924a8a34826895183f199b79aac72de81e6b5c009cb3b8d4fbb19151da0d96c21eb1c2f05d6ed061608cc8f589ec6fe62ce8117 WHIRLPOOL dec3eab159c9f930d5c2a2f123b089c6ce84e7bcbd83d84f996c1a0167e4bbbdf468492a136a86485cc73611f044587e940910e34260535f2074e84680369ccb
27 +DIST qbittorrent-3.3.16.tar.xz 2961420 BLAKE2B 3704e6575b1a321e04b0b9c1feee9acaf2e0ab5e0815c2cbb496265c8407c5b27111265e929ea3a516cba20acacc3b954579b5904de3411ae81726f2461dfbe0 SHA512 518ddbf8e657b3549800b5587924a8a34826895183f199b79aac72de81e6b5c009cb3b8d4fbb19151da0d96c21eb1c2f05d6ed061608cc8f589ec6fe62ce8117
28 +DIST qbittorrent-4.0.1.tar.xz 4256588 BLAKE2B 579e850c34c62f515807a3fb2619740442c275e9de74cd7338a9e2d72340c78a2b7f484a3ee911094cbb3b551d61a927be454466637eac2d2355e84ebec0dbd4 SHA512 76eae32ebe82953e3164a8a292132a33ccc93f5a33ce7e1ce3253f4697939b73d21e1823bada7d3b1fe7401538a7f407ebeb86c281a34e261aec0aa02d7bef80
29
30 diff --git a/net-p2p/qbittorrent/files/qbittorrent-4.0.1-nowebui.patch b/net-p2p/qbittorrent/files/qbittorrent-4.0.1-nowebui.patch
31 new file mode 100644
32 index 00000000000..2a7f5dbb47c
33 --- /dev/null
34 +++ b/net-p2p/qbittorrent/files/qbittorrent-4.0.1-nowebui.patch
35 @@ -0,0 +1,25 @@
36 +From af898e9117b475230e793fa4fd75274145ecf25d Mon Sep 17 00:00:00 2001
37 +From: Heiko Becker <heirecka@×××××××.org>
38 +Date: Wed, 22 Nov 2017 21:29:20 +0100
39 +Subject: [PATCH] Fix build with --disable-webui
40 +
41 +"app/application.cpp:108:7: error: class 'Application' does not have
42 +any field named 'm_webui'"
43 +---
44 + src/app/application.cpp | 2 ++
45 + 1 file changed, 2 insertions(+)
46 +
47 +diff --git a/src/app/application.cpp b/src/app/application.cpp
48 +index 3b0d4d78de..b3221efa88 100644
49 +--- a/src/app/application.cpp
50 ++++ b/src/app/application.cpp
51 +@@ -105,7 +105,9 @@ Application::Application(const QString &id, int &argc, char **argv)
52 + , m_running(false)
53 + , m_shutdownAct(ShutdownDialogAction::Exit)
54 + , m_commandLineArgs(parseCommandLine(this->arguments()))
55 ++#ifndef DISABLE_WEBUI
56 + , m_webui(nullptr)
57 ++#endif
58 + {
59 + qRegisterMetaType<Log::Msg>("Log::Msg");
60 +
61
62 diff --git a/net-p2p/qbittorrent/qbittorrent-4.0.1.ebuild b/net-p2p/qbittorrent/qbittorrent-4.0.1.ebuild
63 new file mode 100644
64 index 00000000000..a1573cc1deb
65 --- /dev/null
66 +++ b/net-p2p/qbittorrent/qbittorrent-4.0.1.ebuild
67 @@ -0,0 +1,66 @@
68 +# Copyright 1999-2017 Gentoo Foundation
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=6
72 +
73 +inherit cmake-utils gnome2-utils xdg-utils
74 +
75 +DESCRIPTION="BitTorrent client in C++ and Qt"
76 +HOMEPAGE="https://www.qbittorrent.org/"
77 +
78 +if [[ ${PV} == *9999 ]]; then
79 + inherit git-r3
80 + EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git"
81 +else
82 + MY_P=${P/_}
83 + SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
84 + KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
85 + S=${WORKDIR}/${MY_P}
86 +fi
87 +
88 +LICENSE="GPL-2"
89 +SLOT="0"
90 +IUSE="+dbus debug webui +X"
91 +REQUIRED_USE="dbus? ( X )"
92 +
93 +RDEPEND="
94 + >=dev-libs/boost-1.62.0-r1:=
95 + dev-qt/qtcore:5
96 + dev-qt/qtnetwork:5[ssl]
97 + >=dev-qt/qtsingleapplication-2.6.1_p20130904-r1[qt5,X?]
98 + dev-qt/qtxml:5
99 + >=net-libs/libtorrent-rasterbar-1.0.6
100 + sys-libs/zlib
101 + dbus? ( dev-qt/qtdbus:5 )
102 + X? (
103 + dev-qt/qtgui:5
104 + dev-qt/qtsvg:5
105 + dev-qt/qtwidgets:5
106 + )"
107 +DEPEND="${RDEPEND}
108 + dev-qt/linguist-tools:5
109 + virtual/pkgconfig"
110 +
111 +DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO )
112 +
113 +PATCHES=( "${FILESDIR}/${P}-nowebui.patch" )
114 +
115 +src_configure() {
116 + local mycmakeargs=(
117 + -DSYSTEM_QTSINGLEAPPLICATION=ON
118 + -DDBUS=$(usex dbus)
119 + -DGUI=$(usex X)
120 + -DWEBUI=$(usex webui)
121 + )
122 + cmake-utils_src_configure
123 +}
124 +
125 +pkg_postinst() {
126 + gnome2_icon_cache_update
127 + xdg_desktop_database_update
128 +}
129 +
130 +pkg_postrm() {
131 + gnome2_icon_cache_update
132 + xdg_desktop_database_update
133 +}