1 |
commit: ca417358fcb36e2631f285ab258096234d441db7 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 30 14:55:30 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 30 14:57:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca417358 |
7 |
|
8 |
net-misc/fatrat: Add 1.2.0_beta2_p20161204 Qt5-based snapshot |
9 |
|
10 |
Gentoo-bug: 620730 |
11 |
Package-Manager: Portage-2.3.10, Repoman-2.3.3 |
12 |
|
13 |
net-misc/fatrat/Manifest | 1 + |
14 |
.../fatrat/fatrat-1.2.0_beta2_p20161204.ebuild | 69 ++++++++++++++++++++++ |
15 |
.../files/fatrat-1.2.0_beta2_p20150803-build.patch | 4 +- |
16 |
3 files changed, 72 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-misc/fatrat/Manifest b/net-misc/fatrat/Manifest |
19 |
index eb661f0122e..9a8bafbe3d8 100644 |
20 |
--- a/net-misc/fatrat/Manifest |
21 |
+++ b/net-misc/fatrat/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST fatrat-1.2.0_beta2_p20150803.tar.gz 4308365 SHA256 e4df2cedc68b0c03848b3b9a5766032de7e845824120079c6916dae8a33164fb SHA512 a872c4351fd079530d18c3335cc6dc7fd95d1402c39ee6f1a65660b8c271644af5d1e8f48890d75e603f646689936f385404d05631b53b2e655c5357a02eb94a WHIRLPOOL ec4d6783397e796aca9ec7e252919a116b96cdbb8f7ca9f5040971e229cd2070d624e4421bf22a2c51f75ec2077d4df179e1e729f3e4d4a7c682f3e9f4b59bd2 |
24 |
+DIST fatrat-1.2.0_beta2_p20161204.tar.gz 4988560 SHA256 be1202e4fd6b16fb3d9074be104fea76d6b03ef858eb438ff6aba23cb69d41b6 SHA512 d3a9816cc53fd93ef2ccd3fb5896dde5846382d40e30dc687a14379e6048f8ffc27b40c2b5c3977c6bccc912dcb054426c84c016c319174e2c2a440f9a588063 WHIRLPOOL d2b7a80415ce99f920b97508a1cabd43699ae02f8257d4a619b3f0b7036c9320bb95587bbe043211406af8ebdfc141571dd0f0a056a7f82bc94db4a8482d9430 |
25 |
|
26 |
diff --git a/net-misc/fatrat/fatrat-1.2.0_beta2_p20161204.ebuild b/net-misc/fatrat/fatrat-1.2.0_beta2_p20161204.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6a079aa56c8 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/fatrat/fatrat-1.2.0_beta2_p20161204.ebuild |
31 |
@@ -0,0 +1,69 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+SNAPSHOT="14a1a146df76d70c44dcc38363848a5b41a364d5" |
38 |
+ |
39 |
+inherit cmake-utils vcs-snapshot xdg-utils |
40 |
+ |
41 |
+DESCRIPTION="Qt5-based download/upload manager" |
42 |
+HOMEPAGE="http://fatrat.dolezel.info/" |
43 |
+SRC_URI="https://github.com/LubosD/fatrat/tarball/${SNAPSHOT} -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="bittorrent +curl doc nls xmpp" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-qt/qtcore:5 |
52 |
+ dev-qt/qtdbus:5 |
53 |
+ dev-qt/qtgui:5 |
54 |
+ dev-qt/qtnetwork:5 |
55 |
+ dev-qt/qtsvg:5 |
56 |
+ dev-qt/qtwidgets:5 |
57 |
+ dev-qt/qtxml:5 |
58 |
+ bittorrent? ( |
59 |
+ dev-qt/qtwebengine:5[widgets] |
60 |
+ >=net-libs/libtorrent-rasterbar-1.1.1 |
61 |
+ ) |
62 |
+ curl? ( >=net-misc/curl-7.18.2 ) |
63 |
+ doc? ( dev-qt/qthelp:5 ) |
64 |
+ xmpp? ( net-libs/gloox ) |
65 |
+" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ dev-libs/boost |
68 |
+ dev-qt/linguist-tools:5 |
69 |
+ virtual/pkgconfig |
70 |
+ nls? ( sys-devel/gettext ) |
71 |
+" |
72 |
+ |
73 |
+PATCHES=( "${FILESDIR}/${PN}-1.2.0_beta2_p20150803-build.patch" ) |
74 |
+ |
75 |
+src_configure() { |
76 |
+ local mycmakeargs=( |
77 |
+ -DWITH_BITTORRENT="$(usex bittorrent ON OFF)" |
78 |
+ -DWITH_CURL="$(usex curl ON OFF)" |
79 |
+ -DWITH_DOCUMENTATION="$(usex doc ON OFF)" |
80 |
+ -DWITH_NLS="$(usex nls ON OFF)" |
81 |
+ -DWITH_JABBER="$(usex xmpp ON OFF)" |
82 |
+ -DWITH_WEBINTERFACE=OFF |
83 |
+ ) |
84 |
+ cmake-utils_src_configure |
85 |
+} |
86 |
+ |
87 |
+pkg_postinst() { |
88 |
+ # optional runtime dep |
89 |
+ if ! has_version dev-libs/geoip; then |
90 |
+ elog "If you want GeoIP support, emerge dev-libs/geoip." |
91 |
+ fi |
92 |
+ |
93 |
+ xdg_mimeinfo_database_update |
94 |
+ xdg_desktop_database_update |
95 |
+} |
96 |
+ |
97 |
+pkg_postrm() { |
98 |
+ xdg_mimeinfo_database_update |
99 |
+ xdg_desktop_database_update |
100 |
+} |
101 |
|
102 |
diff --git a/net-misc/fatrat/files/fatrat-1.2.0_beta2_p20150803-build.patch b/net-misc/fatrat/files/fatrat-1.2.0_beta2_p20150803-build.patch |
103 |
index d96656b622a..f38604e8588 100644 |
104 |
--- a/net-misc/fatrat/files/fatrat-1.2.0_beta2_p20150803-build.patch |
105 |
+++ b/net-misc/fatrat/files/fatrat-1.2.0_beta2_p20150803-build.patch |
106 |
@@ -1,5 +1,5 @@ |
107 |
---- LubosD-fatrat-b5be2b1/CMakeLists.txt |
108 |
-+++ LubosD-fatrat-b5be2b1/CMakeLists.txt |
109 |
+--- a/CMakeLists.txt |
110 |
++++ b/CMakeLists.txt |
111 |
@@ -127,10 +127,6 @@ |
112 |
ADD_DEFINITIONS(-DDEBUG_BUILD) |
113 |
ADD_DEFINITIONS(-DNDEBUG) |