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