Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/transmission/
Date: Thu, 03 Dec 2015 17:42:27
Message-Id: 1449164521.438b855e0d321d43dea240639c4c3c449cd3520f.floppym@gentoo
1 commit: 438b855e0d321d43dea240639c4c3c449cd3520f
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 3 17:42:01 2015 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 3 17:42:01 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=438b855e
7
8 net-p2p/transmission: Remove old
9
10 Package-Manager: portage-2.2.26_p10
11
12 net-p2p/transmission/transmission-2.84-r1.ebuild | 163 -----------------------
13 net-p2p/transmission/transmission-2.84.ebuild | 154 ---------------------
14 2 files changed, 317 deletions(-)
15
16 diff --git a/net-p2p/transmission/transmission-2.84-r1.ebuild b/net-p2p/transmission/transmission-2.84-r1.ebuild
17 deleted file mode 100644
18 index 97a3a72..0000000
19 --- a/net-p2p/transmission/transmission-2.84-r1.ebuild
20 +++ /dev/null
21 @@ -1,163 +0,0 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=5
27 -inherit autotools eutils fdo-mime gnome2-utils qmake-utils systemd user
28 -
29 -DESCRIPTION="A Fast, Easy and Free BitTorrent client"
30 -HOMEPAGE="http://www.transmissionbt.com/"
31 -SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz"
32 -
33 -# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest
34 -# transmission in licenses/ is for mentioning OpenSSL linking exception
35 -# MIT is in several libtransmission/ headers
36 -LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT"
37 -SLOT=0
38 -IUSE="ayatana gtk lightweight systemd qt4 qt5 xfs"
39 -KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux"
40 -
41 -RDEPEND=">=dev-libs/libevent-2.0.10:=
42 - dev-libs/openssl:0=
43 - net-libs/libnatpmp:=
44 - >=net-libs/miniupnpc-1.7:=
45 - >=net-misc/curl-7.16.3:=[ssl]
46 - sys-libs/zlib:=
47 - gtk? (
48 - >=dev-libs/dbus-glib-0.100:=
49 - >=dev-libs/glib-2.32:2=
50 - >=x11-libs/gtk+-3.4:3=
51 - ayatana? ( >=dev-libs/libappindicator-0.4.90:3= )
52 - )
53 - systemd? ( sys-apps/systemd:= )
54 - qt4? (
55 - dev-qt/qtcore:4=
56 - dev-qt/qtgui:4=
57 - dev-qt/qtdbus:4=
58 - )
59 - qt5? (
60 - dev-qt/qtcore:5=
61 - dev-qt/qtdbus:5=
62 - dev-qt/qtgui:5=
63 - dev-qt/qtnetwork:5=
64 - dev-qt/qtwidgets:5=
65 - )"
66 -DEPEND="${RDEPEND}
67 - >=dev-libs/glib-2.32
68 - dev-util/intltool
69 - sys-devel/gettext
70 - virtual/os-headers
71 - virtual/pkgconfig
72 - xfs? ( sys-fs/xfsprogs )"
73 -
74 -REQUIRED_USE="ayatana? ( gtk ) ?? ( qt4 qt5 )"
75 -
76 -DOCS="AUTHORS NEWS qt/README.txt"
77 -
78 -pkg_setup() {
79 - enewgroup ${PN}
80 - enewuser ${PN} -1 -1 -1 ${PN}
81 -}
82 -
83 -src_prepare() {
84 - sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die
85 - # Trick to avoid automagic dependency
86 - use ayatana || { sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die; }
87 - # Pass our configuration dir to systemd unit file
88 - sed -i '/ExecStart/ s|$| -g /var/lib/transmission/config|' daemon/${PN}-daemon.service || die
89 - # http://trac.transmissionbt.com/ticket/4324
90 - sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
91 - # Fix for broken translations path
92 - epatch "${FILESDIR}"/${PN}-2.80-translations-path-fix.patch
93 - # http://trac.transmissionbt.com/ticket/5700
94 - sed -i -e '1iQMAKE_CXXFLAGS += -std=c++11' qt/qtr.pro || die
95 -
96 - epatch "${FILESDIR}/2.84-miniupnp14.patch"
97 -
98 - epatch_user
99 - eautoreconf
100 -}
101 -
102 -src_configure() {
103 - export ac_cv_header_xfs_xfs_h=$(usex xfs)
104 -
105 - econf \
106 - --enable-external-natpmp \
107 - $(use_enable lightweight) \
108 - $(use_with systemd systemd-daemon) \
109 - $(use_with gtk)
110 -
111 - if use qt4 || use qt5; then
112 - pushd qt >/dev/null || die
113 - use qt4 && eqmake4 qtr.pro
114 - use qt5 && eqmake5 qtr.pro
115 - popd >/dev/null || die
116 - fi
117 -}
118 -
119 -src_compile() {
120 - emake
121 -
122 - if use qt4 || use qt5; then
123 - use qt4 && local -x QT_SELECT=4
124 - use qt5 && local -x QT_SELECT=5
125 - emake -C qt
126 - lrelease qt/translations/*.ts || die
127 - fi
128 -}
129 -
130 -src_install() {
131 - default
132 -
133 - rm -f "${ED}"/usr/share/${PN}/web/LICENSE
134 -
135 - newinitd "${FILESDIR}"/${PN}-daemon.initd.9 ${PN}-daemon
136 - newconfd "${FILESDIR}"/${PN}-daemon.confd.4 ${PN}-daemon
137 - systemd_dounit daemon/${PN}-daemon.service
138 -
139 - keepdir /var/{lib/${PN}/{config,downloads},log/${PN}}
140 - fowners -R ${PN}:${PN} /var/{lib/${PN}/{,config,downloads},log/${PN}}
141 -
142 - if use qt4 || use qt5; then
143 - pushd qt >/dev/null || die
144 - emake INSTALL_ROOT="${ED}"/usr install
145 -
146 - domenu ${PN}-qt.desktop
147 -
148 - local res
149 - for res in 16 22 24 32 48 64 72 96 128 192 256; do
150 - doicon -s ${res} icons/hicolor/${res}x${res}/${PN}-qt.png
151 - done
152 - doicon -s scalable icons/hicolor/scalable/${PN}-qt.svg
153 -
154 - use qt4 && insinto /usr/share/qt4/translations
155 - use qt5 && insinto /usr/share/qt5/translations
156 - doins translations/*.qm
157 - popd >/dev/null || die
158 - fi
159 -}
160 -
161 -pkg_preinst() {
162 - gnome2_icon_savelist
163 -}
164 -
165 -pkg_postinst() {
166 - fdo-mime_desktop_database_update
167 - gnome2_icon_cache_update
168 -
169 - elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
170 - elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
171 - elog "start) in settings.json file located at /var/lib/${PN}/config or"
172 - elog "any other appropriate config directory."
173 - elog
174 - elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
175 - elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
176 - elog " net.core.rmem_max = 4194304"
177 - elog " net.core.wmem_max = 1048576"
178 - elog "and run sysctl -p"
179 -}
180 -
181 -pkg_postrm() {
182 - fdo-mime_desktop_database_update
183 - gnome2_icon_cache_update
184 -}
185
186 diff --git a/net-p2p/transmission/transmission-2.84.ebuild b/net-p2p/transmission/transmission-2.84.ebuild
187 deleted file mode 100644
188 index d1648c4..0000000
189 --- a/net-p2p/transmission/transmission-2.84.ebuild
190 +++ /dev/null
191 @@ -1,154 +0,0 @@
192 -# Copyright 1999-2015 Gentoo Foundation
193 -# Distributed under the terms of the GNU General Public License v2
194 -# $Id$
195 -
196 -EAPI=5
197 -inherit autotools eutils fdo-mime gnome2-utils qt4-r2 systemd user
198 -
199 -DESCRIPTION="A Fast, Easy and Free BitTorrent client"
200 -HOMEPAGE="http://www.transmissionbt.com/"
201 -SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz"
202 -
203 -# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest
204 -# transmission in licenses/ is for mentioning OpenSSL linking exception
205 -# MIT is in several libtransmission/ headers
206 -LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT"
207 -SLOT=0
208 -IUSE="ayatana gtk lightweight systemd qt4 xfs"
209 -KEYWORDS="amd64 ~arm ~mips ppc ppc64 x86 ~x86-fbsd ~amd64-linux"
210 -
211 -RDEPEND=">=dev-libs/libevent-2.0.10:=
212 - dev-libs/openssl:0=
213 - net-libs/libnatpmp:=
214 - >=net-libs/miniupnpc-1.7:=
215 - >=net-misc/curl-7.16.3:=[ssl]
216 - sys-libs/zlib:=
217 - gtk? (
218 - >=dev-libs/dbus-glib-0.100:=
219 - >=dev-libs/glib-2.32:2=
220 - >=x11-libs/gtk+-3.4:3=
221 - ayatana? ( >=dev-libs/libappindicator-0.4.90:3= )
222 - )
223 - systemd? ( sys-apps/systemd:= )
224 - qt4? (
225 - dev-qt/qtcore:4=
226 - dev-qt/qtgui:4=
227 - dev-qt/qtdbus:4=
228 - )"
229 -DEPEND="${RDEPEND}
230 - >=dev-libs/glib-2.32
231 - dev-util/intltool
232 - sys-devel/gettext
233 - virtual/os-headers
234 - virtual/pkgconfig
235 - xfs? ( sys-fs/xfsprogs )"
236 -
237 -REQUIRED_USE="ayatana? ( gtk )"
238 -
239 -DOCS="AUTHORS NEWS qt/README.txt"
240 -
241 -pkg_setup() {
242 - enewgroup ${PN}
243 - enewuser ${PN} -1 -1 -1 ${PN}
244 -}
245 -
246 -src_prepare() {
247 - sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die
248 - # Trick to avoid automagic dependency
249 - use ayatana || { sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die; }
250 - # Pass our configuration dir to systemd unit file
251 - sed -i '/ExecStart/ s|$| -g /var/lib/transmission/config|' daemon/${PN}-daemon.service || die
252 - # http://trac.transmissionbt.com/ticket/4324
253 - sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
254 - # Fix for broken translations path
255 - epatch "${FILESDIR}"/${PN}-2.80-translations-path-fix.patch
256 - # http://trac.transmissionbt.com/ticket/5700
257 - sed -i -e '1iQMAKE_CXXFLAGS += -std=c++11' qt/qtr.pro || die
258 -
259 - epatch "${FILESDIR}/2.84-miniupnp14.patch"
260 -
261 - epatch_user
262 - eautoreconf
263 -}
264 -
265 -src_configure() {
266 - export ac_cv_header_xfs_xfs_h=$(usex xfs)
267 -
268 - econf \
269 - --enable-external-natpmp \
270 - $(use_enable lightweight) \
271 - $(use_with systemd systemd-daemon) \
272 - $(use_with gtk)
273 -
274 - if use qt4; then
275 - pushd qt >/dev/null
276 - eqmake4 qtr.pro
277 - popd >/dev/null
278 - fi
279 -}
280 -
281 -src_compile() {
282 - emake
283 -
284 - if use qt4; then
285 - pushd qt >/dev/null
286 - emake
287 - lrelease translations/*.ts
288 - popd >/dev/null
289 - fi
290 -}
291 -
292 -src_install() {
293 - default
294 -
295 - rm -f "${ED}"/usr/share/${PN}/web/LICENSE
296 -
297 - newinitd "${FILESDIR}"/${PN}-daemon.initd.9 ${PN}-daemon
298 - newconfd "${FILESDIR}"/${PN}-daemon.confd.4 ${PN}-daemon
299 - systemd_dounit daemon/${PN}-daemon.service
300 -
301 - keepdir /var/{lib/${PN}/{config,downloads},log/${PN}}
302 - fowners -R ${PN}:${PN} /var/{lib/${PN}/{,config,downloads},log/${PN}}
303 -
304 - if use qt4; then
305 - pushd qt >/dev/null
306 - emake INSTALL_ROOT="${ED}"/usr install
307 -
308 - domenu ${PN}-qt.desktop
309 -
310 - local res
311 - for res in 16 22 24 32 48 64 72 96 128 192 256; do
312 - doicon -s ${res} icons/hicolor/${res}x${res}/${PN}-qt.png
313 - done
314 - doicon -s scalable icons/hicolor/scalable/${PN}-qt.svg
315 -
316 - insinto /usr/share/qt4/translations
317 - doins translations/*.qm
318 - popd >/dev/null
319 - fi
320 -}
321 -
322 -pkg_preinst() {
323 - gnome2_icon_savelist
324 -}
325 -
326 -pkg_postinst() {
327 - fdo-mime_desktop_database_update
328 - gnome2_icon_cache_update
329 -
330 - elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
331 - elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
332 - elog "start) in settings.json file located at /var/lib/${PN}/config or"
333 - elog "any other appropriate config directory."
334 - elog
335 - elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
336 - elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
337 - elog " net.core.rmem_max = 4194304"
338 - elog " net.core.wmem_max = 1048576"
339 - elog "and run sysctl -p"
340 -}
341 -
342 -pkg_postrm() {
343 - fdo-mime_desktop_database_update
344 - gnome2_icon_cache_update
345 -}