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-9999.ebuild
Date: Fri, 02 Mar 2012 10:28:48
Message-Id: 20120302102838.2DC972004B@flycatcher.gentoo.org
1 ssuominen 12/03/02 10:28:38
2
3 Modified: ChangeLog
4 Added: transmission-9999.ebuild
5 Log:
6 Temporarily support live ebuild for Transmission while testing some issues.
7
8 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.178 net-p2p/transmission/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.178&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.178&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?r1=1.177&r2=1.178
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v
20 retrieving revision 1.177
21 retrieving revision 1.178
22 diff -u -r1.177 -r1.178
23 --- ChangeLog 2 Mar 2012 09:30:04 -0000 1.177
24 +++ ChangeLog 2 Mar 2012 10:28:38 -0000 1.178
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.177 2012/03/02 09:30:04 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.178 2012/03/02 10:28:38 ssuominen Exp $
30 +
31 +*transmission-9999 (02 Mar 2012)
32 +
33 + 02 Mar 2012; Samuli Suominen <ssuominen@g.o>
34 + +transmission-9999.ebuild:
35 + Temporarily support live ebuild for Transmission while testing some issues.
36
37 02 Mar 2012; Samuli Suominen <ssuominen@g.o>
38 transmission-2.50-r1.ebuild, metadata.xml:
39
40
41
42 1.1 net-p2p/transmission/transmission-9999.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-9999.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-9999.ebuild?rev=1.1&content-type=text/plain
46
47 Index: transmission-9999.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-9999.ebuild,v 1.1 2012/03/02 10:28:38 ssuominen Exp $
52
53 EAPI=4
54 LANGS="en es kk lt pt_BR ru"
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"
62 fi
63
64 inherit autotools eutils fdo-mime gnome2-utils qt4-r2
65
66 DESCRIPTION="A Fast, Easy and Free BitTorrent client"
67 HOMEPAGE="http://www.transmissionbt.com/"
68
69 LICENSE="GPL-2 MIT"
70 SLOT="0"
71 IUSE="ayatana gtk lightweight nls qt4 xfs"
72
73 RDEPEND="
74 >=dev-libs/libevent-2.0.10
75 dev-libs/openssl:0
76 net-libs/libnatpmp
77 >=net-libs/miniupnpc-1.6
78 >=net-misc/curl-7.16.3[ssl]
79 sys-libs/zlib
80 gtk? (
81 >=dev-libs/dbus-glib-0.98
82 >=dev-libs/glib-2.28
83 >=x11-libs/gtk+-3.2:3
84 ayatana? ( dev-libs/libappindicator:3 )
85 )
86 qt4? (
87 x11-libs/qt-core:4
88 x11-libs/qt-gui:4[dbus]
89 )"
90
91 EAUTORECONF_DEPEND="
92 dev-util/intltool
93 sys-devel/gettext"
94
95 DEPEND="${RDEPEND}
96 ${EAUTORECONF_DEPEND}
97 dev-util/pkgconfig
98 virtual/os-headers
99 nls? (
100 dev-util/intltool
101 sys-devel/gettext
102 )
103 xfs? ( sys-fs/xfsprogs )"
104
105 REQUIRED_USE="ayatana? ( gtk )"
106
107 DOCS="AUTHORS NEWS qt/README.txt"
108
109 pkg_setup() {
110 enewgroup ${PN}
111 enewuser ${PN} -1 -1 -1 ${PN}
112 }
113
114 src_unpack() {
115 [[ ${PV} == *9999* ]] && subversion_src_unpack
116 }
117
118 src_prepare() {
119 if [[ ${PV} == *9999* ]]; then
120 subversion_src_prepare
121 ./update-version-h.sh
122 fi
123
124 epatch "${FILESDIR}"/${PN}-2.50-build-with-natpmp1.patch #376647
125
126 sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac
127 use ayatana || sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac
128
129 # http://trac.transmissionbt.com/ticket/4324
130 sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
131
132 eautoreconf
133 intltoolize --copy --force --automake || die
134
135 if use qt4; then
136 cat <<-EOF > "${T}"/${PN}-magnet.protocol
137 [Protocol]
138 exec=${PN}-qt '%u'
139 protocol=magnet
140 Icon=${PN}
141 input=none
142 output=none
143 helper=true
144 listing=
145 reading=false
146 writing=false
147 makedir=false
148 deleting=false
149 EOF
150 fi
151 }
152
153 src_configure() {
154 export ac_cv_header_xfs_xfs_h=$(usex xfs)
155
156 econf \
157 --enable-external-natpmp \
158 $(use_enable nls) \
159 $(use_enable lightweight) \
160 $(use_with gtk)
161
162 if use qt4; then
163 pushd qt >/dev/null
164 eqmake4 qtr.pro
165 popd >/dev/null
166 fi
167 }
168
169 src_compile() {
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 default
188
189 rm -f "${ED}"/usr/share/${PN}/web/LICENSE
190
191 newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon
192 newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon
193
194 keepdir /var/{${PN}/{config,downloads},log/${PN}}
195 fowners -R ${PN}:${PN} /var/{${PN}/{,config,downloads},log/${PN}}
196
197 if use qt4; then
198 pushd qt >/dev/null
199 emake INSTALL_ROOT="${D}"/usr install
200
201 domenu ${PN}-qt.desktop
202 doicon icons/${PN}-qt.png
203
204 insinto /usr/share/kde4/services
205 doins "${T}"/${PN}-magnet.protocol
206
207 if use nls; then
208 insinto /usr/share/qt4/translations
209 local l
210 for l in ${LANGS}; do
211 if use linguas_${l}; then
212 doins translations/${PN}_${l}.qm
213 fi
214 done
215 fi
216 popd >/dev/null
217 fi
218 }
219
220 pkg_preinst() {
221 gnome2_icon_savelist
222 }
223
224 pkg_postinst() {
225 fdo-mime_desktop_database_update
226 gnome2_icon_cache_update
227
228 elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
229 elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
230 elog "start) in settings.json file located at /var/${PN}/config or"
231 elog "any other appropriate config directory."
232 elog
233 elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
234 elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
235 elog " net.core.rmem_max = 4194304"
236 elog " net.core.wmem_max = 1048576"
237 elog "and run sysctl -p"
238 }
239
240 pkg_postrm() {
241 fdo-mime_desktop_database_update
242 gnome2_icon_cache_update
243 }