net-im/tencent-qq:fix split-usr,bwrap as default
[gentoo-zh.git] / net-p2p / qbittorrent-enhanced / qbittorrent-enhanced-4.3.9.10.ebuild
blob9c68bc5b668c27ebb74c6c1ef7968ddead90d172
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit xdg-utils
8 DESCRIPTION="qBittorrent Enhanced, based on qBittorrent"
9 HOMEPAGE="https://github.com/c0re100/qBittorrent-Enhanced-Edition"
11 if [[ ${PV} == *9999 ]]; then
12 inherit git-r3
13 EGIT_REPO_URI="https://github.com/c0re100/qBittorrent-Enhanced-Edition.git"
14 else
15 SRC_URI="https://github.com/c0re100/qBittorrent-Enhanced-Edition/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="amd64"
17 S="${WORKDIR}/qBittorrent-Enhanced-Edition-release-${PV}"
20 LICENSE="GPL-2"
21 SLOT="0"
22 IUSE="+dbus debug webui +X"
23 REQUIRED_USE="dbus? ( X )"
25 RDEPEND="
26 >=dev-libs/boost-1.62.0-r1:=
27 dev-qt/qtcore:5
28 dev-qt/qtnetwork:5[ssl]
29 dev-qt/qtxml:5
30 dev-qt/qtsql:5
31 >=net-libs/libtorrent-rasterbar-1.2.0:0=
32 sys-libs/zlib
33 dbus? ( dev-qt/qtdbus:5 )
34 X? (
35 dev-libs/geoip
36 dev-qt/qtgui:5
37 dev-qt/qtsvg:5
38 dev-qt/qtwidgets:5
40 !net-p2p/qbittorrent"
41 DEPEND="${RDEPEND}
42 dev-qt/linguist-tools:5"
44 BDEPEND="virtual/pkgconfig"
46 DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO )
48 src_configure() {
49 econf \
50 $(use_enable dbus qt-dbus) \
51 $(use_enable debug) \
52 $(use_enable webui) \
53 $(use_enable X gui)
56 src_install() {
57 emake STRIP="/bin/false" INSTALL_ROOT="${D}" install
58 einstalldocs
61 pkg_postinst() {
62 xdg_icon_cache_update
63 xdg_desktop_database_update
66 pkg_postrm() {
67 xdg_icon_cache_update
68 xdg_desktop_database_update