Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: net-p2p/transmission/files/, net-p2p/transmission/
Date: Sun, 03 Sep 2017 20:54:43
Message-Id: 1504472049.12a5d0c0507af6f8849658c9a4c036963b28d798.blueness@gentoo
1 commit: 12a5d0c0507af6f8849658c9a4c036963b28d798
2 Author: stefson <herrtimson <AT> yahoo <DOT> de>
3 AuthorDate: Sun Sep 3 14:41:10 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 3 20:54:09 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=12a5d0c0
7
8 net-p2p/transmission: in tree version works
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11
12 net-p2p/transmission/Manifest | 8 -
13 .../transmission-2.80-translations-path-fix.patch | 17 ---
14 .../transmission-2.84-musl-missing-header.patch | 28 ----
15 .../transmission/files/transmission-daemon.confd.4 | 14 --
16 .../transmission/files/transmission-daemon.initd.9 | 73 ----------
17 net-p2p/transmission/metadata.xml | 16 --
18 net-p2p/transmission/transmission-2.84-r89.ebuild | 153 -------------------
19 net-p2p/transmission/transmission-2.84-r99.ebuild | 162 ---------------------
20 8 files changed, 471 deletions(-)
21
22 diff --git a/net-p2p/transmission/Manifest b/net-p2p/transmission/Manifest
23 deleted file mode 100644
24 index 2533112..0000000
25 --- a/net-p2p/transmission/Manifest
26 +++ /dev/null
27 @@ -1,8 +0,0 @@
28 -AUX transmission-2.80-translations-path-fix.patch 718 SHA256 94951127429649d18af5d9f04f9a4c1f2c698266fc6ee17b43d83015e2218548 SHA512 e317b23918fd47d27af3bca4694f8a71d6adb5f65ac5f3b30faa2d636d4420e6a691eca912c7be70103364f7c279f1b4ec851a5d8c5a1ca3dee880b465327fda WHIRLPOOL fbbabafb81d7e72fbf01a1b64d1c4a6e5473c254b14ed94e71e77ea8447982af3200ce76466df99d6cf9648c35f4e58dff83fe2cfd1b67b678c4b69a42982541
29 -AUX transmission-2.84-musl-missing-header.patch 1196 SHA256 a95f806242c02a4e41c2b4b0a08e031e552182c388faa821030bee595437b14c SHA512 e1687ef2f38ce34053af37dbccdd8c33e6833ead1afb4a77ba2a913da1a41cf1643cce40d9199681d91e42ab8c886a55cf06852ccd6dd64914138c65d995a5de WHIRLPOOL 9f7bb07eb332b3b755d6e47ab2e1641c95324f556b63aabc952a77928bd48464fa66b6a048905db6c3f3da626dd4e7f0cd11956de9e1753668453ca89c777e6b
30 -AUX transmission-daemon.confd.4 711 SHA256 249689688aad23d0d27ccdd08a0907fd85058d6a52ccd3467f756b07f5d059ee SHA512 dbc093fe00335bb207c28a4e810becc15e74b6f75e7579d561b160755d6b54bb23a45db39ee3480195a94a5e9bffdad692559d1b9662bba28119d18b713747a1 WHIRLPOOL c19f3a6d46ff5cf824e9f3d9df2ec4364c17d424a406b3922921e3385801b543f736ed7dd8e1b7f24cd81262e2ac162edd92d7b6b832909012ae4cd677d94c1d
31 -AUX transmission-daemon.initd.9 2131 SHA256 ab1c267f3e3687ba0f5dfadd5ffa9edc6971ab0090fc47256e99fd1eb1da702a SHA512 d4c6ab2dbdf158b3005bfff6763b9c87b1c37813ef382021f3cbb5dbbc19032945d92205f69615ec584463b3aef637a93305f69c971e91624a786be065a82532 WHIRLPOOL d7c82e2d42bf0848cce279e0e5fc5f52c98d4cd62e0f7c0958fb374d3767cf9c6e94034c018448918f9942f86dd2873a13b5b57c871b63dc9a1fb1b7ff5bdfee
32 -DIST transmission-2.84.tar.xz 3077836 SHA256 a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb SHA512 d6c2b17e7f8180a41ac70f5b503dfdb0353c6419db25df1b393b18c987c56fda9e2fd4c3f4cda7f08c301877bd0b4711842c28121ceaaaae87f5792cc6c29a3d WHIRLPOOL 375f9c981d9d2ac308896e8b7d66d3643796c8e97d64a1e0d6fd2bffaafa55988b90ddb4eb98330edf062e835c0c5ce76749e7e66bf6806333673beb7569f342
33 -EBUILD transmission-2.84-r89.ebuild 4044 SHA256 4005df1c275ba8cd9dcca532bdafa3b7ef04dd7c9c1fc659e159fef82ef4b280 SHA512 1322aad544b6bd2e1b9733924b62467b1f934fb800e253406d14404593a6fcf0a0f225b475a0fb6a7b9efb4e8512a87d96e17dcb24aeccf2c9885b96937eb3c2 WHIRLPOOL 65f3032d862653863133b6b6d9894ee82559afe18c4137e4219617affe6362d3115d7c7d7704559dee6498a15f50f0fe1f8717cedf79b4dca4b78fc93a74d7af
34 -EBUILD transmission-2.84-r99.ebuild 4385 SHA256 5088307b784988b4416f8cdc9d0ca77342ba2384a5922ed7457bc6b572b36ac2 SHA512 40155d1921f5853506a325808feee51583012cc1e6ff06b2105bb14c71b91ef71ce9460cc3275eeb42a9d509a7118f670b586fec92150bf43ad951810fe4cfc0 WHIRLPOOL 80aa39c761a87cd50af4c595899231bd7a5a60e8f67d9bedbf5faa77acb861bfd10fe0d210026e5ca734fd049589059078f2d87cdc8f92f8b7d083444020ca10
35 -MISC metadata.xml 670 SHA256 af52a8a2a0eefebe130d9c1b3a9b26f37eda22f47658c0c273e81d958dc9e519 SHA512 fd019672e7913836704edd9d67eca4ab420dcac27a817a0031ed5556c1c1ba0b25bfc74a35c18d3dde2de8ca735871978d96927bd0a65894021bef5ce66f59c2 WHIRLPOOL 900f910cea94c94000175a837d65b98b36d44ff09ae6920b67b3773104a83f7d5dd7d10231beffbb57807440efdab9acc0563dc4ab2caade87f52a5e5ba7fbbe
36
37 diff --git a/net-p2p/transmission/files/transmission-2.80-translations-path-fix.patch b/net-p2p/transmission/files/transmission-2.80-translations-path-fix.patch
38 deleted file mode 100644
39 index 4863801..0000000
40 --- a/net-p2p/transmission/files/transmission-2.80-translations-path-fix.patch
41 +++ /dev/null
42 @@ -1,17 +0,0 @@
43 -This patch was adapted from -2.77-transmations-path-fix.patch for 2.80
44 -
45 -Fix path for finding locale-specific files:
46 -QCoreApplication::applicationDirPath() transforms to '/usr/bin'
47 -and locale files are in '/usr/share/qt4/translations'
48 -
49 ---- qt/app.cc
50 -+++ qt/app.cc
51 -@@ -98,7 +98,7 @@
52 - installTranslator (&qtTranslator);
53 -
54 - // install the transmission translator
55 -- appTranslator.load (QString (MY_CONFIG_NAME) + "_" + QLocale::system ().name (), QCoreApplication::applicationDirPath () + "/translations");
56 -+ appTranslator.load (QString (MY_CONFIG_NAME) + "_" + QLocale::system ().name (), QLibraryInfo::location(QLibraryInfo::TranslationsPath) );
57 - installTranslator (&appTranslator);
58 -
59 - Formatter::initUnits ();
60
61 diff --git a/net-p2p/transmission/files/transmission-2.84-musl-missing-header.patch b/net-p2p/transmission/files/transmission-2.84-musl-missing-header.patch
62 deleted file mode 100644
63 index 4b3d7ee..0000000
64 --- a/net-p2p/transmission/files/transmission-2.84-musl-missing-header.patch
65 +++ /dev/null
66 @@ -1,28 +0,0 @@
67 -libtransmission/transmission.h: add missing <sys/types.h>
68 -
69 -transmission.h and several files including it, like bitfield.c and fdlimits.h
70 -make reference to ssize_t, off_t and other types defined in <sys/types.h> but
71 -never include the header. By including <sys/types.h> in transmission.h, the
72 -required type definitions are propagated to all files that need them.
73 -
74 -Not including <sys/types.h> on glibc and uClibc systems does not pose a problem
75 -because of the way the headers stack in those C Standard Libraries, but on musl
76 -excluding <sys/types.h> leads to compile time failure.
77 -
78 -For the POSIX specs, see
79 -
80 -http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
81 -
82 -Signed-of-by: Anthony G. Basile <blueness@g.o>
83 -
84 -diff -Naur transmission-2.84.orig/libtransmission/transmission.h transmission-2.84/libtransmission/transmission.h
85 ---- transmission-2.84.orig/libtransmission/transmission.h 2014-07-01 13:09:01.682910744 -0400
86 -+++ transmission-2.84/libtransmission/transmission.h 2015-07-19 03:11:07.379219181 -0400
87 -@@ -28,6 +28,7 @@
88 -
89 - #include <inttypes.h> /* uintN_t */
90 - #include <time.h> /* time_t */
91 -+#include <sys/types.h>
92 -
93 - #ifdef WIN32
94 - #define __USE_MINGW_ANSI_STDIO 1
95
96 diff --git a/net-p2p/transmission/files/transmission-daemon.confd.4 b/net-p2p/transmission/files/transmission-daemon.confd.4
97 deleted file mode 100644
98 index 8f3b131..0000000
99 --- a/net-p2p/transmission/files/transmission-daemon.confd.4
100 +++ /dev/null
101 @@ -1,14 +0,0 @@
102 -# This is the transmission-daemon configuration file. For other options and
103 -# better explanation, take a look at transmission-daemon manual page Note: it's
104 -# better to configure some settings (like username/password) in
105 -# /var/lib/transmission/config/settings.json to avoid other users see it with `ps`
106 -
107 -TRANSMISSION_OPTIONS="--encryption-preferred"
108 -
109 -# Run daemon as another user (username or username:groupname)
110 -# If you change this setting, chown -R /var/lib/transmission/config <and download directory, check web settings>
111 -#runas_user=transmission
112 -
113 -# Location of logfile (should be writeable for runas_user user)
114 -# Set logfile=syslog to use syslog for logging
115 -#logfile=/var/log/transmission/transmission.log
116
117 diff --git a/net-p2p/transmission/files/transmission-daemon.initd.9 b/net-p2p/transmission/files/transmission-daemon.initd.9
118 deleted file mode 100644
119 index a1d17d6..0000000
120 --- a/net-p2p/transmission/files/transmission-daemon.initd.9
121 +++ /dev/null
122 @@ -1,73 +0,0 @@
123 -#!/sbin/runscript
124 -# Copyright 1999-2013 Gentoo Foundation
125 -# Distributed under the terms of the GNU General Public License v2
126 -# $Id$
127 -
128 -extra_started_commands="reload"
129 -description="Transmission is a fast, easy and free bittorrent client"
130 -description_start="Start transmission-daemon server and web interface"
131 -description_stop="Stop transmission-daemon server and web interface"
132 -description_reload="Reload transmission-daemon settings"
133 -
134 -rundir=${rundir:-/var/run/transmission}
135 -pidfile=${pidfile:-${rundir}/transmission.pid}
136 -config_dir=${config_dir:-/var/lib/transmission/config}
137 -download_dir=${download_dir:-/var/lib/transmission/downloads}
138 -logfile=${logfile:-/var/log/transmission/transmission.log}
139 -runas_user=${runas_user:-transmission:transmission}
140 -
141 -SSD_OPTIONS=""
142 -
143 -depend() {
144 - need net
145 -}
146 -
147 -check_config() {
148 - if [ ! -d "${rundir}" ]; then
149 - mkdir "${rundir}"
150 - if [ -n "${runas_user}" ]; then
151 - chown -R ${runas_user} "${rundir}"
152 - fi
153 - fi
154 -
155 - # In case no config directory option passed use default
156 - if ! $(echo ${TRANSMISSION_OPTIONS} | grep -q -e '\B-g' -e '\B--config-dir'); then
157 - TRANSMISSION_OPTIONS="${TRANSMISSION_OPTIONS} --config-dir ${config_dir}"
158 - # put download dir location on first run (and take it from config later)
159 - if [ ! -f ${config_dir}/settings.json ]; then
160 - TRANSMISSION_OPTIONS="${TRANSMISSION_OPTIONS} --download-dir ${download_dir}"
161 - fi
162 - fi
163 -
164 - if [ -n "${runas_user}" ]; then
165 - if [ -f /etc/init.d/sysfs ]; then
166 - SSD_OPTIONS="${SSD_OPTIONS} --user ${runas_user}"
167 - else
168 - SSD_OPTIONS="${SSD_OPTIONS} --chuid ${runas_user}"
169 - fi
170 - fi
171 -}
172 -
173 -start() {
174 - check_config
175 -
176 - ebegin "Starting transmission daemon"
177 - start-stop-daemon --start --quiet --pidfile ${pidfile} ${SSD_OPTIONS} \
178 - --exec /usr/bin/transmission-daemon -- --pid-file ${pidfile} \
179 - $(test ${logfile} != "syslog" && echo --logfile ${logfile}) \
180 - ${TRANSMISSION_OPTIONS}
181 - eend $?
182 -}
183 -
184 -stop() {
185 - ebegin "Stopping transmission daemon"
186 - start-stop-daemon --stop --quiet --retry TERM/45/QUIT/15 --pidfile ${pidfile}
187 - eend $?
188 -}
189 -
190 -reload() {
191 - ebegin "Reloading transmission configuration"
192 - start-stop-daemon --signal HUP --pidfile ${pidfile}
193 - eend $?
194 -}
195 -
196
197 diff --git a/net-p2p/transmission/metadata.xml b/net-p2p/transmission/metadata.xml
198 deleted file mode 100644
199 index aa8b895..0000000
200 --- a/net-p2p/transmission/metadata.xml
201 +++ /dev/null
202 @@ -1,16 +0,0 @@
203 -<?xml version="1.0" encoding="UTF-8"?>
204 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
205 -<pkgmetadata>
206 - <maintainer type="person">
207 - <email>floppym@g.o</email>
208 - <name>Mike Gilbert</name>
209 - </maintainer>
210 - <maintainer type="person">
211 - <email>ssuominen@g.o</email>
212 - <name>Samuli Suominen</name>
213 - </maintainer>
214 - <use>
215 - <flag name="lightweight">Optimize transmission for low-resource systems (smaller cache size, prefer unencrypted peer connections, etc.)</flag>
216 - <flag name="xfs">Enable XFS filesystem capabilities by using <pkg>sys-fs/xfsprogs</pkg> headers (in building of fdlimit(.c))</flag>
217 - </use>
218 -</pkgmetadata>
219
220 diff --git a/net-p2p/transmission/transmission-2.84-r89.ebuild b/net-p2p/transmission/transmission-2.84-r89.ebuild
221 deleted file mode 100644
222 index 0a3a008..0000000
223 --- a/net-p2p/transmission/transmission-2.84-r89.ebuild
224 +++ /dev/null
225 @@ -1,153 +0,0 @@
226 -# Copyright 1999-2016 Gentoo Foundation
227 -# Distributed under the terms of the GNU General Public License v2
228 -
229 -EAPI=5
230 -inherit autotools eutils fdo-mime gnome2-utils qt4-r2 systemd user
231 -
232 -DESCRIPTION="A Fast, Easy and Free BitTorrent client"
233 -HOMEPAGE="http://www.transmissionbt.com/"
234 -SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz"
235 -
236 -# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest
237 -# transmission in licenses/ is for mentioning OpenSSL linking exception
238 -# MIT is in several libtransmission/ headers
239 -LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT"
240 -SLOT=0
241 -IUSE="ayatana gtk lightweight systemd qt4 xfs"
242 -KEYWORDS="amd64 ~arm ~mips ppc x86"
243 -
244 -RDEPEND=">=dev-libs/libevent-2.0.10:=
245 - dev-libs/openssl:0=
246 - net-libs/libnatpmp:=
247 - >=net-libs/miniupnpc-1.7:=
248 - >=net-misc/curl-7.16.3:=[ssl]
249 - sys-libs/zlib:=
250 - gtk? (
251 - >=dev-libs/dbus-glib-0.100:=
252 - >=dev-libs/glib-2.32:2=
253 - >=x11-libs/gtk+-3.4:3=
254 - ayatana? ( >=dev-libs/libappindicator-0.4.90:3= )
255 - )
256 - systemd? ( sys-apps/systemd:= )
257 - qt4? (
258 - dev-qt/qtcore:4=
259 - dev-qt/qtgui:4=
260 - dev-qt/qtdbus:4=
261 - )"
262 -DEPEND="${RDEPEND}
263 - >=dev-libs/glib-2.32
264 - dev-util/intltool
265 - sys-devel/gettext
266 - virtual/os-headers
267 - virtual/pkgconfig
268 - xfs? ( sys-fs/xfsprogs )"
269 -
270 -REQUIRED_USE="ayatana? ( gtk )"
271 -
272 -DOCS="AUTHORS NEWS qt/README.txt"
273 -
274 -pkg_setup() {
275 - enewgroup ${PN}
276 - enewuser ${PN} -1 -1 -1 ${PN}
277 -}
278 -
279 -src_prepare() {
280 - sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die
281 - # Trick to avoid automagic dependency
282 - use ayatana || { sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die; }
283 - # Pass our configuration dir to systemd unit file
284 - sed -i '/ExecStart/ s|$| -g /var/lib/transmission/config|' daemon/${PN}-daemon.service || die
285 - # http://trac.transmissionbt.com/ticket/4324
286 - sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
287 - # Fix for broken translations path
288 - epatch "${FILESDIR}"/${PN}-2.80-translations-path-fix.patch
289 - # http://trac.transmissionbt.com/ticket/5700
290 - sed -i -e '1iQMAKE_CXXFLAGS += -std=c++11' qt/qtr.pro || die
291 - # Missing header
292 - epatch "${FILESDIR}"/${PN}-2.84-musl-missing-header.patch
293 -
294 - epatch_user
295 - eautoreconf
296 -}
297 -
298 -src_configure() {
299 - export ac_cv_header_xfs_xfs_h=$(usex xfs)
300 -
301 - econf \
302 - --enable-external-natpmp \
303 - $(use_enable lightweight) \
304 - $(use_with systemd systemd-daemon) \
305 - $(use_with gtk)
306 -
307 - if use qt4; then
308 - pushd qt >/dev/null
309 - eqmake4 qtr.pro
310 - popd >/dev/null
311 - fi
312 -}
313 -
314 -src_compile() {
315 - emake
316 -
317 - if use qt4; then
318 - pushd qt >/dev/null
319 - emake
320 - lrelease translations/*.ts
321 - popd >/dev/null
322 - fi
323 -}
324 -
325 -src_install() {
326 - default
327 -
328 - rm -f "${ED}"/usr/share/${PN}/web/LICENSE
329 -
330 - newinitd "${FILESDIR}"/${PN}-daemon.initd.9 ${PN}-daemon
331 - newconfd "${FILESDIR}"/${PN}-daemon.confd.4 ${PN}-daemon
332 - systemd_dounit daemon/${PN}-daemon.service
333 -
334 - keepdir /var/{lib/${PN}/{config,downloads},log/${PN}}
335 - fowners -R ${PN}:${PN} /var/{lib/${PN}/{,config,downloads},log/${PN}}
336 -
337 - if use qt4; then
338 - pushd qt >/dev/null
339 - emake INSTALL_ROOT="${ED}"/usr install
340 -
341 - domenu ${PN}-qt.desktop
342 -
343 - local res
344 - for res in 16 22 24 32 48 64 72 96 128 192 256; do
345 - doicon -s ${res} icons/hicolor/${res}x${res}/${PN}-qt.png
346 - done
347 - doicon -s scalable icons/hicolor/scalable/${PN}-qt.svg
348 -
349 - insinto /usr/share/qt4/translations
350 - doins translations/*.qm
351 - popd >/dev/null
352 - fi
353 -}
354 -
355 -pkg_preinst() {
356 - gnome2_icon_savelist
357 -}
358 -
359 -pkg_postinst() {
360 - fdo-mime_desktop_database_update
361 - gnome2_icon_cache_update
362 -
363 - elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
364 - elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
365 - elog "start) in settings.json file located at /var/lib/${PN}/config or"
366 - elog "any other appropriate config directory."
367 - elog
368 - elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
369 - elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
370 - elog " net.core.rmem_max = 4194304"
371 - elog " net.core.wmem_max = 1048576"
372 - elog "and run sysctl -p"
373 -}
374 -
375 -pkg_postrm() {
376 - fdo-mime_desktop_database_update
377 - gnome2_icon_cache_update
378 -}
379
380 diff --git a/net-p2p/transmission/transmission-2.84-r99.ebuild b/net-p2p/transmission/transmission-2.84-r99.ebuild
381 deleted file mode 100644
382 index ef32c03..0000000
383 --- a/net-p2p/transmission/transmission-2.84-r99.ebuild
384 +++ /dev/null
385 @@ -1,162 +0,0 @@
386 -# Copyright 1999-2016 Gentoo Foundation
387 -# Distributed under the terms of the GNU General Public License v2
388 -
389 -EAPI=5
390 -inherit autotools eutils fdo-mime gnome2-utils qmake-utils systemd user
391 -
392 -DESCRIPTION="A Fast, Easy and Free BitTorrent client"
393 -HOMEPAGE="http://www.transmissionbt.com/"
394 -SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz"
395 -
396 -# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest
397 -# transmission in licenses/ is for mentioning OpenSSL linking exception
398 -# MIT is in several libtransmission/ headers
399 -LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT"
400 -SLOT=0
401 -IUSE="ayatana gtk lightweight systemd qt4 qt5 xfs"
402 -KEYWORDS="amd64 ~arm ~mips ppc x86"
403 -
404 -RDEPEND=">=dev-libs/libevent-2.0.10:=
405 - dev-libs/openssl:0=
406 - net-libs/libnatpmp:=
407 - >=net-libs/miniupnpc-1.7:=
408 - >=net-misc/curl-7.16.3:=[ssl]
409 - sys-libs/zlib:=
410 - gtk? (
411 - >=dev-libs/dbus-glib-0.100:=
412 - >=dev-libs/glib-2.32:2=
413 - >=x11-libs/gtk+-3.4:3=
414 - ayatana? ( >=dev-libs/libappindicator-0.4.90:3= )
415 - )
416 - systemd? ( sys-apps/systemd:= )
417 - qt4? (
418 - dev-qt/qtcore:4=
419 - dev-qt/qtgui:4=
420 - dev-qt/qtdbus:4=
421 - )
422 - qt5? (
423 - dev-qt/qtcore:5=
424 - dev-qt/qtdbus:5=
425 - dev-qt/qtgui:5=
426 - dev-qt/qtnetwork:5=
427 - dev-qt/qtwidgets:5=
428 - )"
429 -DEPEND="${RDEPEND}
430 - >=dev-libs/glib-2.32
431 - dev-util/intltool
432 - sys-devel/gettext
433 - virtual/os-headers
434 - virtual/pkgconfig
435 - xfs? ( sys-fs/xfsprogs )"
436 -
437 -REQUIRED_USE="ayatana? ( gtk ) ?? ( qt4 qt5 )"
438 -
439 -DOCS="AUTHORS NEWS qt/README.txt"
440 -
441 -pkg_setup() {
442 - enewgroup ${PN}
443 - enewuser ${PN} -1 -1 -1 ${PN}
444 -}
445 -
446 -src_prepare() {
447 - sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die
448 - # Trick to avoid automagic dependency
449 - use ayatana || { sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die; }
450 - # Pass our configuration dir to systemd unit file
451 - sed -i '/ExecStart/ s|$| -g /var/lib/transmission/config|' daemon/${PN}-daemon.service || die
452 - # http://trac.transmissionbt.com/ticket/4324
453 - sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
454 - # Fix for broken translations path
455 - epatch "${FILESDIR}"/${PN}-2.80-translations-path-fix.patch
456 - # http://trac.transmissionbt.com/ticket/5700
457 - sed -i -e '1iQMAKE_CXXFLAGS += -std=c++11' qt/qtr.pro || die
458 - # Missing header
459 - epatch "${FILESDIR}"/${PN}-2.84-musl-missing-header.patch
460 -
461 - epatch_user
462 - eautoreconf
463 -}
464 -
465 -src_configure() {
466 - export ac_cv_header_xfs_xfs_h=$(usex xfs)
467 -
468 - econf \
469 - --enable-external-natpmp \
470 - $(use_enable lightweight) \
471 - $(use_with systemd systemd-daemon) \
472 - $(use_with gtk)
473 -
474 - if use qt4 || use qt5; then
475 - pushd qt >/dev/null || die
476 - use qt4 && eqmake4 qtr.pro
477 - use qt5 && eqmake5 qtr.pro
478 - popd >/dev/null || die
479 - fi
480 -}
481 -
482 -src_compile() {
483 - emake
484 -
485 - if use qt4 || use qt5; then
486 - use qt4 && local -x QT_SELECT=4
487 - use qt5 && local -x QT_SELECT=5
488 - emake -C qt
489 - lrelease qt/translations/*.ts || die
490 - fi
491 -}
492 -
493 -src_install() {
494 - default
495 -
496 - rm -f "${ED}"/usr/share/${PN}/web/LICENSE
497 -
498 - newinitd "${FILESDIR}"/${PN}-daemon.initd.9 ${PN}-daemon
499 - newconfd "${FILESDIR}"/${PN}-daemon.confd.4 ${PN}-daemon
500 - systemd_dounit daemon/${PN}-daemon.service
501 -
502 - keepdir /var/{lib/${PN}/{config,downloads},log/${PN}}
503 - fowners -R ${PN}:${PN} /var/{lib/${PN}/{,config,downloads},log/${PN}}
504 -
505 - if use qt4 || use qt5; then
506 - pushd qt >/dev/null || die
507 - emake INSTALL_ROOT="${ED}"/usr install
508 -
509 - domenu ${PN}-qt.desktop
510 -
511 - local res
512 - for res in 16 22 24 32 48 64 72 96 128 192 256; do
513 - doicon -s ${res} icons/hicolor/${res}x${res}/${PN}-qt.png
514 - done
515 - doicon -s scalable icons/hicolor/scalable/${PN}-qt.svg
516 -
517 - use qt4 && insinto /usr/share/qt4/translations
518 - use qt5 && insinto /usr/share/qt5/translations
519 - doins translations/*.qm
520 - popd >/dev/null || die
521 - fi
522 -}
523 -
524 -pkg_preinst() {
525 - gnome2_icon_savelist
526 -}
527 -
528 -pkg_postinst() {
529 - fdo-mime_desktop_database_update
530 - gnome2_icon_cache_update
531 -
532 - elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
533 - elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
534 - elog "start) in settings.json file located at /var/lib/${PN}/config or"
535 - elog "any other appropriate config directory."
536 - elog
537 - elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
538 - elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
539 - elog " net.core.rmem_max = 4194304"
540 - elog " net.core.wmem_max = 1048576"
541 - elog "and run sysctl -p"
542 -}
543 -
544 -pkg_postrm() {
545 - fdo-mime_desktop_database_update
546 - gnome2_icon_cache_update
547 -}