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-r1.ebuild
Date: Fri, 02 Mar 2012 09:30:19
Message-Id: 20120302093004.A07C52004B@flycatcher.gentoo.org
1 ssuominen 12/03/02 09:30:04
2
3 Modified: metadata.xml ChangeLog transmission-2.50-r1.ebuild
4 Log:
5 a lot of minor changes, check changelog for hightlights
6
7 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.18 net-p2p/transmission/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/metadata.xml?rev=1.18&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/metadata.xml?rev=1.18&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/metadata.xml?r1=1.17&r2=1.18
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/metadata.xml,v
19 retrieving revision 1.17
20 retrieving revision 1.18
21 diff -u -r1.17 -r1.18
22 --- metadata.xml 2 Mar 2012 03:13:45 -0000 1.17
23 +++ metadata.xml 2 Mar 2012 09:30:04 -0000 1.18
24 @@ -12,6 +12,7 @@
25 </maintainer>
26 <use>
27 <flag name='libcanberra'>Enable sound event support with <pkg>media-libs/libcanberra</pkg></flag>
28 - <flag name='xfs'>Use <pkg>sys-fs/xfsprogs</pkg> headers in building of fdlimit(.c)</flag>
29 + <flag name='lightweight'>Optimize transmission for low-resource systems (smaller cache size, prefer unencrypted peer connections, etc.)</flag>
30 + <flag name='xfs'>Enable XFS filesystem capabilities by using <pkg>sys-fs/xfsprogs</pkg> headers (in building of fdlimit(.c))</flag>
31 </use>
32 </pkgmetadata>
33
34
35
36 1.177 net-p2p/transmission/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.177&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.177&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?r1=1.176&r2=1.177
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v
45 retrieving revision 1.176
46 retrieving revision 1.177
47 diff -u -r1.176 -r1.177
48 --- ChangeLog 2 Mar 2012 03:13:45 -0000 1.176
49 +++ ChangeLog 2 Mar 2012 09:30:04 -0000 1.177
50 @@ -1,6 +1,12 @@
51 # ChangeLog for net-p2p/transmission
52 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.176 2012/03/02 03:13:45 ssuominen Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.177 2012/03/02 09:30:04 ssuominen Exp $
55 +
56 + 02 Mar 2012; Samuli Suominen <ssuominen@g.o>
57 + transmission-2.50-r1.ebuild, metadata.xml:
58 + Remove USE="kde" and always install transmission-magnet.protocol file.
59 + USE="lightweight" for low-resource systems. Run lrelease in compile phase
60 + instead of install phase.
61
62 02 Mar 2012; Samuli Suominen <ssuominen@g.o>
63 -files/transmission-2.33-0001-configure.ac.patch,
64
65
66
67 1.2 net-p2p/transmission/transmission-2.50-r1.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.50-r1.ebuild?rev=1.2&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.50-r1.ebuild?rev=1.2&content-type=text/plain
71 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.50-r1.ebuild?r1=1.1&r2=1.2
72
73 Index: transmission-2.50-r1.ebuild
74 ===================================================================
75 RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.50-r1.ebuild,v
76 retrieving revision 1.1
77 retrieving revision 1.2
78 diff -u -r1.1 -r1.2
79 --- transmission-2.50-r1.ebuild 2 Mar 2012 03:10:04 -0000 1.1
80 +++ transmission-2.50-r1.ebuild 2 Mar 2012 09:30:04 -0000 1.2
81 @@ -1,6 +1,6 @@
82 # Copyright 1999-2012 Gentoo Foundation
83 # Distributed under the terms of the GNU General Public License v2
84 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.50-r1.ebuild,v 1.1 2012/03/02 03:10:04 ssuominen Exp $
85 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.50-r1.ebuild,v 1.2 2012/03/02 09:30:04 ssuominen Exp $
86
87 EAPI=4
88 LANGS="en es kk lt pt_BR ru"
89 @@ -13,7 +13,7 @@
90 LICENSE="GPL-2 MIT"
91 SLOT="0"
92 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
93 -IUSE="ayatana gtk kde nls qt4 xfs"
94 +IUSE="ayatana gtk lightweight nls qt4 xfs"
95
96 RDEPEND="
97 >=dev-libs/libevent-2.0.10
98 @@ -33,21 +33,21 @@
99 x11-libs/qt-gui:4[dbus]
100 )"
101
102 -DEPEND="${RDEPEND}
103 +EAUTORECONF_DEPEND="
104 dev-util/intltool
105 + sys-devel/gettext"
106 +
107 +DEPEND="${RDEPEND}
108 + ${EAUTORECONF_DEPEND}
109 dev-util/pkgconfig
110 - sys-devel/gettext
111 virtual/os-headers
112 nls? (
113 - >=dev-util/intltool-0.40
114 + dev-util/intltool
115 sys-devel/gettext
116 )
117 xfs? ( sys-fs/xfsprogs )"
118 -# note: gettext is always a depend with eautoreconf
119
120 -REQUIRED_USE="
121 - ayatana? ( gtk )
122 - kde? ( qt4 )"
123 +REQUIRED_USE="ayatana? ( gtk )"
124
125 DOCS="AUTHORS NEWS qt/README.txt"
126
127 @@ -57,7 +57,7 @@
128 }
129
130 src_prepare() {
131 - epatch "${FILESDIR}"/${P}-build-with-natpmp1.patch
132 + epatch "${FILESDIR}"/${P}-build-with-natpmp1.patch #376647
133
134 sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac
135 use ayatana || sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac
136 @@ -67,12 +67,12 @@
137
138 eautoreconf
139
140 - if use kde; then
141 + if use qt4; then
142 cat <<-EOF > "${T}"/${PN}-magnet.protocol
143 [Protocol]
144 - exec=transmission-qt '%u'
145 + exec=${PN}-qt '%u'
146 protocol=magnet
147 - Icon=transmission
148 + Icon=${PN}
149 input=none
150 output=none
151 helper=true
152 @@ -91,14 +91,31 @@
153 econf \
154 --enable-external-natpmp \
155 $(use_enable nls) \
156 + $(use_enable lightweight) \
157 $(use_with gtk)
158
159 - use qt4 && cd qt && eqmake4 qtr.pro
160 + if use qt4; then
161 + pushd qt >/dev/null
162 + eqmake4 qtr.pro
163 + popd >/dev/null
164 + fi
165 }
166
167 src_compile() {
168 - emake
169 - use qt4 && cd qt && emake
170 + default
171 +
172 + if use qt4; then
173 + pushd qt >/dev/null
174 + emake
175 +
176 + local l
177 + for l in ${LANGS}; do
178 + if use linguas_${l}; then
179 + lrelease translations/${PN}_${l}.ts
180 + fi
181 + done
182 + popd >/dev/null
183 + fi
184 }
185
186 src_install() {
187 @@ -109,8 +126,8 @@
188 newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon
189 newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon
190
191 - keepdir /var/{transmission/{config,downloads},log/transmission}
192 - fowners -R transmission:transmission /var/{transmission/{,config,downloads},log/transmission}
193 + keepdir /var/{${PN}/{config,downloads},log/${PN}}
194 + fowners -R ${PN}:${PN} /var/{${PN}/{,config,downloads},log/${PN}}
195
196 if use qt4; then
197 pushd qt >/dev/null
198 @@ -119,21 +136,18 @@
199 domenu ${PN}-qt.desktop
200 doicon icons/${PN}-qt.png
201
202 + insinto /usr/share/kde4/services
203 + doins "${T}"/${PN}-magnet.protocol
204 +
205 if use nls; then
206 insinto /usr/share/qt4/translations
207 - local lang
208 - for lang in ${LANGS}; do
209 - if use linguas_${lang}; then
210 - lrelease translations/${PN}_${lang}.ts || die
211 - doins translations/${PN}_${lang}.qm
212 + local l
213 + for l in ${LANGS}; do
214 + if use linguas_${l}; then
215 + doins translations/${PN}_${l}.qm
216 fi
217 done
218 fi
219 -
220 - if use kde; then
221 - insinto /usr/share/kde4/services
222 - doins "${T}"/${PN}-magnet.protocol
223 - fi
224 popd >/dev/null
225 fi
226 }
227 @@ -146,20 +160,16 @@
228 fdo-mime_desktop_database_update
229 gnome2_icon_cache_update
230
231 - ewarn "If you use transmission-daemon, please, set 'rpc-username' and"
232 - ewarn "'rpc-password' (in plain text, transmission-daemon will hash it on"
233 - ewarn "start) in settings.json file located at /var/transmission/config or"
234 - ewarn "any other appropriate config directory."
235 - elog
236 - elog "To enable sound emerge media-libs/libcanberra and check that at least"
237 - elog "some sound them is selected. For this go:"
238 - elog "Gnome/system/preferences/sound themes tab and 'sound theme: default'"
239 + elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
240 + elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
241 + elog "start) in settings.json file located at /var/${PN}/config or"
242 + elog "any other appropriate config directory."
243 elog
244 - ewarn "Since uTP is enabled ${PN} needs large kernel buffers for the UDP socket."
245 - ewarn "Please, add into /etc/sysctl.conf following lines:"
246 - ewarn " net.core.rmem_max = 4194304"
247 - ewarn " net.core.wmem_max = 1048576"
248 - ewarn "and run sysctl -p"
249 + elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
250 + elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
251 + elog " net.core.rmem_max = 4194304"
252 + elog " net.core.wmem_max = 1048576"
253 + elog "and run sysctl -p"
254 }
255
256 pkg_postrm() {