Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/qbittorrent/files/, net-p2p/qbittorrent/
Date: Sun, 15 Oct 2017 22:12:28
Message-Id: 1508105533.81e65d9926f6ba4b61e0b06e66eed985dcb70f1a.asturm@gentoo
1 commit: 81e65d9926f6ba4b61e0b06e66eed985dcb70f1a
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 15 22:11:37 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 15 22:12:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81e65d99
7
8 net-p2p/qbittorrent: 3.3.16 version bump
9
10 Gentoo-bug: 613194, 621548
11 Package-Manager: Portage-2.3.11, Repoman-2.3.3
12
13 net-p2p/qbittorrent/Manifest | 1 +
14 .../files/qbittorrent-3.3.16-cmake.patch | 44 +++++++++++++++
15 net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild | 64 ++++++++++++++++++++++
16 3 files changed, 109 insertions(+)
17
18 diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest
19 index 69885079694..101ed3b9d0e 100644
20 --- a/net-p2p/qbittorrent/Manifest
21 +++ b/net-p2p/qbittorrent/Manifest
22 @@ -1,3 +1,4 @@
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
28 diff --git a/net-p2p/qbittorrent/files/qbittorrent-3.3.16-cmake.patch b/net-p2p/qbittorrent/files/qbittorrent-3.3.16-cmake.patch
29 new file mode 100644
30 index 00000000000..9f5b82b218e
31 --- /dev/null
32 +++ b/net-p2p/qbittorrent/files/qbittorrent-3.3.16-cmake.patch
33 @@ -0,0 +1,44 @@
34 +From 0ad52903890fe680307b46f4051bdd91d8aaffd5 Mon Sep 17 00:00:00 2001
35 +From: Eugene Shalygin <eugene.shalygin@×××××.com>
36 +Date: Sat, 7 Oct 2017 21:48:52 +0200
37 +Subject: [PATCH] cmake: do not use Qt5Widgets when locating
38 + QtSingleApplication. Closes #7551.
39 +
40 +This fixes cmake builds with GUI disabled and system
41 +QtSingleApplication. We rely on Qt5::Core instead of Qt5::Widgets.
42 +---
43 + cmake/Modules/FindQtSingleApplication.cmake | 10 +++++-----
44 + 1 file changed, 5 insertions(+), 5 deletions(-)
45 +
46 +diff --git a/cmake/Modules/FindQtSingleApplication.cmake b/cmake/Modules/FindQtSingleApplication.cmake
47 +index eb56607e94..9b526c9839 100644
48 +--- a/cmake/Modules/FindQtSingleApplication.cmake
49 ++++ b/cmake/Modules/FindQtSingleApplication.cmake
50 +@@ -30,9 +30,9 @@ IF(QT4_FOUND)
51 + NAMES ${QTSINGLEAPPLICATION_NAMES}
52 + PATHS ${QT_LIBRARY_DIR}
53 + )
54 +-ELSEIF(Qt5Widgets_FOUND)
55 ++ELSEIF(Qt5Core_FOUND)
56 + message(STATUS "Looking for Qt5 single application library")
57 +- FOREACH(TOP_INCLUDE_PATH in ${Qt5Widgets_INCLUDE_DIRS} ${FRAMEWORK_INCLUDE_DIR})
58 ++ FOREACH(TOP_INCLUDE_PATH in ${Qt5Core_INCLUDE_DIRS} ${FRAMEWORK_INCLUDE_DIR})
59 + FIND_PATH(QTSINGLEAPPLICATION_INCLUDE_DIR QtSingleApplication ${TOP_INCLUDE_PATH}/QtSolutions)
60 +
61 + IF(QTSINGLEAPPLICATION_INCLUDE_DIR)
62 +@@ -43,12 +43,12 @@ ELSEIF(Qt5Widgets_FOUND)
63 + SET(QTSINGLEAPPLICATION_NAMES ${QTSINGLEAPPLICATION_NAMES}
64 + Qt5Solutions_SingleApplication-2.6 libQt5Solutions_SingleApplication-2.6
65 + QtSolutions_SingleApplication-2.6 libQtSolutions_SingleApplication-2.6)
66 +- GET_TARGET_PROPERTY(QT5_WIDGETSLIBRARY Qt5::Widgets LOCATION)
67 +- GET_FILENAME_COMPONENT(QT5_WIDGETSLIBRARYPATH ${QT5_WIDGETSLIBRARY} PATH)
68 ++ GET_TARGET_PROPERTY(_QT5_CORELIBRARY Qt5::Core LOCATION)
69 ++ GET_FILENAME_COMPONENT(_QT5_CORELIBRARYPATH ${_QT5_CORELIBRARY} PATH)
70 +
71 + FIND_LIBRARY(QTSINGLEAPPLICATION_LIBRARY
72 + NAMES ${QTSINGLEAPPLICATION_NAMES}
73 +- PATHS ${QT5_WIDGETSLIBRARYPATH}
74 ++ PATHS ${_QT5_CORELIBRARYPATH}
75 + )
76 + ENDIF()
77 +
78
79 diff --git a/net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild b/net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild
80 new file mode 100644
81 index 00000000000..98163e4f20c
82 --- /dev/null
83 +++ b/net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild
84 @@ -0,0 +1,64 @@
85 +# Copyright 1999-2017 Gentoo Foundation
86 +# Distributed under the terms of the GNU General Public License v2
87 +
88 +EAPI=6
89 +
90 +inherit cmake-utils xdg-utils
91 +
92 +DESCRIPTION="BitTorrent client in C++ and Qt"
93 +HOMEPAGE="https://www.qbittorrent.org/"
94 +
95 +if [[ ${PV} == *9999 ]]; then
96 + inherit git-r3
97 + EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git"
98 +else
99 + MY_P=${P/_}
100 + SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
101 + KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
102 + S=${WORKDIR}/${MY_P}
103 +fi
104 +
105 +LICENSE="GPL-2"
106 +SLOT="0"
107 +IUSE="+dbus debug webui +X"
108 +REQUIRED_USE="dbus? ( X )"
109 +
110 +RDEPEND="
111 + >=dev-libs/boost-1.62.0-r1:=
112 + dev-qt/qtconcurrent:5
113 + dev-qt/qtcore:5
114 + dev-qt/qtnetwork:5[ssl]
115 + >=dev-qt/qtsingleapplication-2.6.1_p20130904-r1[qt5,X?]
116 + dev-qt/qtxml:5
117 + >=net-libs/libtorrent-rasterbar-1.0.6
118 + sys-libs/zlib
119 + dbus? ( dev-qt/qtdbus:5 )
120 + X? (
121 + dev-qt/qtgui:5
122 + dev-qt/qtwidgets:5
123 + )"
124 +DEPEND="${RDEPEND}
125 + dev-qt/linguist-tools:5
126 + virtual/pkgconfig"
127 +
128 +DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO )
129 +
130 +PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
131 +
132 +src_configure() {
133 + local mycmakeargs=(
134 + -DSYSTEM_QTSINGLEAPPLICATION=ON
135 + -DDBUS=$(usex dbus)
136 + -DGUI=$(usex X)
137 + -DWEBUI=$(usex webui)
138 + )
139 + cmake-utils_src_configure
140 +}
141 +
142 +pkg_postinst() {
143 + xdg_desktop_database_update
144 +}
145 +
146 +pkg_postrm() {
147 + xdg_desktop_database_update
148 +}