Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/transmission: metadata.xml ChangeLog transmission-2.50.ebuild
Date: Thu, 01 Mar 2012 22:54:04
Message-Id: 20120301225353.A19DF2004B@flycatcher.gentoo.org
1 ssuominen 12/03/01 22:53:53
2
3 Modified: metadata.xml ChangeLog
4 Added: transmission-2.50.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.16 net-p2p/transmission/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/metadata.xml?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/metadata.xml?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/metadata.xml?r1=1.15&r2=1.16
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/metadata.xml,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- metadata.xml 14 Feb 2012 19:41:39 -0000 1.15
24 +++ metadata.xml 1 Mar 2012 22:53:53 -0000 1.16
25 @@ -13,5 +13,6 @@
26 <use>
27 <flag name='libcanberra'>Enable sound event support with <pkg>media-libs/libcanberra</pkg></flag>
28 <flag name='utp'>Adds support for µTP (Micro Transport Protocol)</flag>
29 + <flag name='xfs'>Use <pkg>sys-fs/xfsprogs</pkg> headers in building of fdlimit(.c)</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.172 net-p2p/transmission/ChangeLog
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.172&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.172&content-type=text/plain
39 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?r1=1.171&r2=1.172
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v
44 retrieving revision 1.171
45 retrieving revision 1.172
46 diff -u -r1.171 -r1.172
47 --- ChangeLog 14 Feb 2012 19:41:39 -0000 1.171
48 +++ ChangeLog 1 Mar 2012 22:53:53 -0000 1.172
49 @@ -1,6 +1,13 @@
50 # ChangeLog for net-p2p/transmission
51 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.171 2012/02/14 19:41:39 hwoarang Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.172 2012/03/01 22:53:53 ssuominen Exp $
54 +
55 +*transmission-2.50 (01 Mar 2012)
56 +
57 + 01 Mar 2012; Samuli Suominen <ssuominen@g.o>
58 + +transmission-2.50.ebuild:
59 + Version bump wrt #405569 by Alejandro Ojeda and Qt4 translation install
60 + patch from #403027 by Nikoli
61
62 14 Feb 2012; Markos Chandras <hwoarang@g.o> metadata.xml:
63 ayatana is now global per http://archives.gentoo.org/gentoo-
64
65
66
67 1.1 net-p2p/transmission/transmission-2.50.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.50.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.50.ebuild?rev=1.1&content-type=text/plain
71
72 Index: transmission-2.50.ebuild
73 ===================================================================
74 # Copyright 1999-2012 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.50.ebuild,v 1.1 2012/03/01 22:53:53 ssuominen Exp $
77
78 EAPI=4
79 LANGS="en es kk lt pt_BR ru"
80 inherit autotools eutils fdo-mime gnome2-utils qt4-r2
81
82 DESCRIPTION="A Fast, Easy and Free BitTorrent client"
83 HOMEPAGE="http://www.transmissionbt.com/"
84 SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz"
85
86 LICENSE="GPL-2 MIT"
87 SLOT="0"
88 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
89 IUSE="ayatana gtk kde nls qt4 xfs"
90
91 # net-libs/libnatpmp, see src_configure() switch for temporary build problem
92 RDEPEND="
93 >=dev-libs/libevent-2.0.10
94 dev-libs/openssl:0
95 >=net-libs/miniupnpc-1.6
96 >=net-misc/curl-7.16.3[ssl]
97 sys-libs/zlib
98 gtk? (
99 >=dev-libs/dbus-glib-0.98
100 >=dev-libs/glib-2.28
101 >=x11-libs/gtk+-3.2:3
102 ayatana? ( dev-libs/libappindicator:3 )
103 )
104 qt4? (
105 x11-libs/qt-core:4
106 x11-libs/qt-gui:4[dbus]
107 )"
108
109 DEPEND="${RDEPEND}
110 dev-util/intltool
111 dev-util/pkgconfig
112 sys-devel/gettext
113 virtual/os-headers
114 nls? (
115 >=dev-util/intltool-0.40
116 sys-devel/gettext
117 )
118 xfs? ( sys-fs/xfsprogs )"
119 # note: gettext is always a depend with eautoreconf
120
121 REQUIRED_USE="
122 ayatana? ( gtk )
123 kde? ( qt4 )"
124
125 DOCS="AUTHORS NEWS qt/README.txt"
126
127 pkg_setup() {
128 enewgroup ${PN}
129 enewuser ${PN} -1 -1 -1 ${PN}
130 }
131
132 src_prepare() {
133 sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac
134 use ayatana || sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac
135
136 # http://trac.transmissionbt.com/ticket/4324
137 sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
138
139 eautoreconf
140
141 if use kde; then
142 cat <<-EOF > "${T}"/${PN}-magnet.protocol
143 [Protocol]
144 exec=transmission-qt '%u'
145 protocol=magnet
146 Icon=transmission
147 input=none
148 output=none
149 helper=true
150 listing=
151 reading=false
152 writing=false
153 makedir=false
154 deleting=false
155 EOF
156 fi
157 }
158
159 src_configure() {
160 export ac_cv_header_xfs_xfs_h=$(usex xfs)
161
162 econf \
163 --disable-external-natpmp \
164 $(use_enable nls) \
165 $(use_with gtk)
166
167 use qt4 && cd qt && eqmake4 qtr.pro
168 }
169
170 src_compile() {
171 emake
172 use qt4 && cd qt && emake
173 }
174
175 src_install() {
176 default
177
178 rm -f "${ED}"/usr/share/${PN}/web/LICENSE
179
180 newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon
181 newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon
182
183 keepdir /var/{transmission/{config,downloads},log/transmission}
184 fowners -R transmission:transmission /var/{transmission/{,config,downloads},log/transmission}
185
186 if use qt4; then
187 pushd qt >/dev/null
188 emake INSTALL_ROOT="${D}"/usr install
189
190 domenu ${PN}-qt.desktop
191 doicon icons/${PN}-qt.png
192
193 insinto /usr/share/qt4/translations
194 local lang
195 for lang in ${LANGS}; do
196 if use linguas_${lang}; then
197 lrelease translations/${PN}_${lang}.ts || die
198 doins translations/${PN}_${lang}.qm
199 fi
200 done
201
202 if use kde; then
203 insinto /usr/share/kde4/services
204 doins "${T}"/${PN}-magnet.protocol
205 fi
206 popd >/dev/null
207 fi
208 }
209
210 pkg_preinst() {
211 gnome2_icon_savelist
212 }
213
214 pkg_postinst() {
215 fdo-mime_desktop_database_update
216 gnome2_icon_cache_update
217
218 ewarn "If you use transmission-daemon, please, set 'rpc-username' and"
219 ewarn "'rpc-password' (in plain text, transmission-daemon will hash it on"
220 ewarn "start) in settings.json file located at /var/transmission/config or"
221 ewarn "any other appropriate config directory."
222 elog
223 elog "To enable sound emerge media-libs/libcanberra and check that at least"
224 elog "some sound them is selected. For this go:"
225 elog "Gnome/system/preferences/sound themes tab and 'sound theme: default'"
226 elog
227 ewarn "Since uTP is enabled ${PN} needs large kernel buffers for the UDP socket."
228 ewarn "Please, add into /etc/sysctl.conf following lines:"
229 ewarn " net.core.rmem_max = 4194304"
230 ewarn " net.core.wmem_max = 1048576"
231 ewarn "and run sysctl -p"
232 }
233
234 pkg_postrm() {
235 fdo-mime_desktop_database_update
236 gnome2_icon_cache_update
237 }