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