1 |
ssuominen 12/04/12 12:14:19 |
2 |
|
3 |
Modified: ChangeLog transmission-9999.ebuild |
4 |
Added: transmission-2.51.ebuild |
5 |
Log: |
6 |
Version bump. Stop applying -build-with-natpmp1.patch because upstream updated the internal copy of libnatpmp which is now compatible with our system copy. Move eautoreconf after intltoolize to avoid hitting maintainer mode in src_compile(). |
7 |
|
8 |
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.188 net-p2p/transmission/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.188&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.188&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?r1=1.187&r2=1.188 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v |
20 |
retrieving revision 1.187 |
21 |
retrieving revision 1.188 |
22 |
diff -u -r1.187 -r1.188 |
23 |
--- ChangeLog 8 Apr 2012 17:52:15 -0000 1.187 |
24 |
+++ ChangeLog 12 Apr 2012 12:14:19 -0000 1.188 |
25 |
@@ -1,6 +1,15 @@ |
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.187 2012/04/08 17:52:15 ssuominen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.188 2012/04/12 12:14:19 ssuominen Exp $ |
30 |
+ |
31 |
+*transmission-2.51 (12 Apr 2012) |
32 |
+ |
33 |
+ 12 Apr 2012; Samuli Suominen <ssuominen@g.o> |
34 |
+ +transmission-2.51.ebuild, transmission-9999.ebuild: |
35 |
+ Version bump. Stop applying -build-with-natpmp1.patch because upstream |
36 |
+ updated the internal copy of libnatpmp which is now compatible with our |
37 |
+ system copy. Move eautoreconf after intltoolize to avoid hitting maintainer |
38 |
+ mode in src_compile(). |
39 |
|
40 |
*transmission-2.50-r2 (08 Apr 2012) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.5 net-p2p/transmission/transmission-9999.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-9999.ebuild?rev=1.5&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-9999.ebuild?rev=1.5&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-9999.ebuild?r1=1.4&r2=1.5 |
50 |
|
51 |
Index: transmission-9999.ebuild |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-9999.ebuild,v |
54 |
retrieving revision 1.4 |
55 |
retrieving revision 1.5 |
56 |
diff -u -r1.4 -r1.5 |
57 |
--- transmission-9999.ebuild 6 Mar 2012 09:28:09 -0000 1.4 |
58 |
+++ transmission-9999.ebuild 12 Apr 2012 12:14:19 -0000 1.5 |
59 |
@@ -1,6 +1,6 @@ |
60 |
# Copyright 1999-2012 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-9999.ebuild,v 1.4 2012/03/06 09:28:09 ssuominen Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-9999.ebuild,v 1.5 2012/04/12 12:14:19 ssuominen Exp $ |
64 |
|
65 |
EAPI=4 |
66 |
LANGS="en es kk lt pt_BR ru" |
67 |
@@ -72,16 +72,14 @@ |
68 |
./update-version-h.sh |
69 |
fi |
70 |
|
71 |
- epatch "${FILESDIR}"/${PN}-2.50-build-with-natpmp1.patch #376647 |
72 |
- |
73 |
sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac |
74 |
use ayatana || sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac |
75 |
|
76 |
# http://trac.transmissionbt.com/ticket/4324 |
77 |
sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die |
78 |
|
79 |
- eautoreconf |
80 |
intltoolize --copy --force --automake || die |
81 |
+ eautoreconf |
82 |
|
83 |
if use qt4; then |
84 |
cat <<-EOF > "${T}"/${PN}-magnet.protocol |
85 |
@@ -117,7 +115,7 @@ |
86 |
} |
87 |
|
88 |
src_compile() { |
89 |
- default |
90 |
+ emake |
91 |
|
92 |
if use qt4; then |
93 |
pushd qt >/dev/null |
94 |
|
95 |
|
96 |
|
97 |
1.1 net-p2p/transmission/transmission-2.51.ebuild |
98 |
|
99 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.51.ebuild?rev=1.1&view=markup |
100 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.51.ebuild?rev=1.1&content-type=text/plain |
101 |
|
102 |
Index: transmission-2.51.ebuild |
103 |
=================================================================== |
104 |
# Copyright 1999-2012 Gentoo Foundation |
105 |
# Distributed under the terms of the GNU General Public License v2 |
106 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.51.ebuild,v 1.1 2012/04/12 12:14:19 ssuominen Exp $ |
107 |
|
108 |
EAPI=4 |
109 |
LANGS="en es kk lt pt_BR ru" |
110 |
|
111 |
unset _live_inherits |
112 |
|
113 |
if [[ ${PV} == *9999* ]]; then |
114 |
ESVN_REPO_URI="svn://svn.transmissionbt.com/Transmission/trunk" |
115 |
_live_inherits=subversion |
116 |
else |
117 |
SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz" |
118 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd" |
119 |
fi |
120 |
|
121 |
inherit autotools eutils fdo-mime gnome2-utils qt4-r2 ${_live_inherits} |
122 |
|
123 |
DESCRIPTION="A Fast, Easy and Free BitTorrent client" |
124 |
HOMEPAGE="http://www.transmissionbt.com/" |
125 |
|
126 |
LICENSE="GPL-2 MIT" |
127 |
SLOT="0" |
128 |
IUSE="ayatana gtk lightweight qt4 xfs" |
129 |
|
130 |
RDEPEND=" |
131 |
>=dev-libs/libevent-2.0.10 |
132 |
dev-libs/openssl:0 |
133 |
net-libs/libnatpmp |
134 |
>=net-libs/miniupnpc-1.6 |
135 |
>=net-misc/curl-7.16.3[ssl] |
136 |
sys-libs/zlib |
137 |
gtk? ( |
138 |
>=dev-libs/dbus-glib-0.98 |
139 |
>=dev-libs/glib-2.28 |
140 |
>=x11-libs/gtk+-3.2:3 |
141 |
ayatana? ( dev-libs/libappindicator:3 ) |
142 |
) |
143 |
qt4? ( |
144 |
x11-libs/qt-core:4 |
145 |
x11-libs/qt-gui:4[dbus] |
146 |
)" |
147 |
|
148 |
DEPEND="${RDEPEND} |
149 |
dev-util/intltool |
150 |
dev-util/pkgconfig |
151 |
sys-devel/gettext |
152 |
virtual/os-headers |
153 |
xfs? ( sys-fs/xfsprogs )" |
154 |
|
155 |
REQUIRED_USE="ayatana? ( gtk )" |
156 |
|
157 |
DOCS="AUTHORS NEWS qt/README.txt" |
158 |
|
159 |
pkg_setup() { |
160 |
enewgroup ${PN} |
161 |
enewuser ${PN} -1 -1 -1 ${PN} |
162 |
} |
163 |
|
164 |
src_unpack() { |
165 |
if [[ ${PV} == *9999* ]]; then |
166 |
subversion_src_unpack |
167 |
else |
168 |
default |
169 |
fi |
170 |
} |
171 |
|
172 |
src_prepare() { |
173 |
if [[ ${PV} == *9999* ]]; then |
174 |
subversion_src_prepare |
175 |
./update-version-h.sh |
176 |
fi |
177 |
|
178 |
sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac |
179 |
use ayatana || sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac |
180 |
|
181 |
# http://trac.transmissionbt.com/ticket/4324 |
182 |
sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die |
183 |
|
184 |
intltoolize --copy --force --automake || die |
185 |
eautoreconf |
186 |
|
187 |
if use qt4; then |
188 |
cat <<-EOF > "${T}"/${PN}-magnet.protocol |
189 |
[Protocol] |
190 |
exec=${PN}-qt '%u' |
191 |
protocol=magnet |
192 |
Icon=${PN} |
193 |
input=none |
194 |
output=none |
195 |
helper=true |
196 |
listing= |
197 |
reading=false |
198 |
writing=false |
199 |
makedir=false |
200 |
deleting=false |
201 |
EOF |
202 |
fi |
203 |
} |
204 |
|
205 |
src_configure() { |
206 |
export ac_cv_header_xfs_xfs_h=$(usex xfs) |
207 |
|
208 |
econf \ |
209 |
--enable-external-natpmp \ |
210 |
$(use_enable lightweight) \ |
211 |
$(use_with gtk) |
212 |
|
213 |
if use qt4; then |
214 |
pushd qt >/dev/null |
215 |
eqmake4 qtr.pro |
216 |
popd >/dev/null |
217 |
fi |
218 |
} |
219 |
|
220 |
src_compile() { |
221 |
emake |
222 |
|
223 |
if use qt4; then |
224 |
pushd qt >/dev/null |
225 |
emake |
226 |
|
227 |
local l |
228 |
for l in ${LANGS}; do |
229 |
if use linguas_${l}; then |
230 |
lrelease translations/${PN}_${l}.ts |
231 |
fi |
232 |
done |
233 |
popd >/dev/null |
234 |
fi |
235 |
} |
236 |
|
237 |
src_install() { |
238 |
default |
239 |
|
240 |
rm -f "${ED}"/usr/share/${PN}/web/LICENSE |
241 |
|
242 |
newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon |
243 |
newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon |
244 |
|
245 |
keepdir /var/{${PN}/{config,downloads},log/${PN}} |
246 |
fowners -R ${PN}:${PN} /var/{${PN}/{,config,downloads},log/${PN}} |
247 |
|
248 |
if use qt4; then |
249 |
pushd qt >/dev/null |
250 |
emake INSTALL_ROOT="${D}"/usr install |
251 |
|
252 |
domenu ${PN}-qt.desktop |
253 |
|
254 |
local res |
255 |
for res in 16 22 24 32 48; do |
256 |
insinto /usr/share/icons/hicolor/${res}x${res}/apps |
257 |
newins icons/hicolor_apps_${res}x${res}_${PN}.png ${PN}-qt.png |
258 |
done |
259 |
|
260 |
insinto /usr/share/kde4/services |
261 |
doins "${T}"/${PN}-magnet.protocol |
262 |
|
263 |
insinto /usr/share/qt4/translations |
264 |
local l |
265 |
for l in ${LANGS}; do |
266 |
if use linguas_${l}; then |
267 |
doins translations/${PN}_${l}.qm |
268 |
fi |
269 |
done |
270 |
popd >/dev/null |
271 |
fi |
272 |
} |
273 |
|
274 |
pkg_preinst() { |
275 |
gnome2_icon_savelist |
276 |
} |
277 |
|
278 |
pkg_postinst() { |
279 |
fdo-mime_desktop_database_update |
280 |
gnome2_icon_cache_update |
281 |
|
282 |
elog "If you use ${PN}-daemon, please, set 'rpc-username' and" |
283 |
elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on" |
284 |
elog "start) in settings.json file located at /var/${PN}/config or" |
285 |
elog "any other appropriate config directory." |
286 |
elog |
287 |
elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for" |
288 |
elog "the UDP socket. You can append following lines into /etc/sysctl.conf:" |
289 |
elog " net.core.rmem_max = 4194304" |
290 |
elog " net.core.wmem_max = 1048576" |
291 |
elog "and run sysctl -p" |
292 |
} |
293 |
|
294 |
pkg_postrm() { |
295 |
fdo-mime_desktop_database_update |
296 |
gnome2_icon_cache_update |
297 |
} |