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.73.ebuild
Date: Wed, 31 Oct 2012 18:12:13
Message-Id: 20121031181132.8BF9B21600@flycatcher.gentoo.org
1 ssuominen 12/10/31 18:11:32
2
3 Modified: ChangeLog
4 Added: transmission-2.73.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha135/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.214 net-p2p/transmission/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.214&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?rev=1.214&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/ChangeLog?r1=1.213&r2=1.214
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v
20 retrieving revision 1.213
21 retrieving revision 1.214
22 diff -u -r1.213 -r1.214
23 --- ChangeLog 23 Oct 2012 17:46:47 -0000 1.213
24 +++ ChangeLog 31 Oct 2012 18:11:32 -0000 1.214
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.213 2012/10/23 17:46:47 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.214 2012/10/31 18:11:32 ssuominen Exp $
30 +
31 +*transmission-2.73 (31 Oct 2012)
32 +
33 + 31 Oct 2012; Samuli Suominen <ssuominen@g.o>
34 + +transmission-2.73.ebuild:
35 + Version bump.
36
37 *transmission-2.72 (23 Oct 2012)
38
39
40
41
42 1.1 net-p2p/transmission/transmission-2.73.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.73.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/transmission-2.73.ebuild?rev=1.1&content-type=text/plain
46
47 Index: transmission-2.73.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.73.ebuild,v 1.1 2012/10/31 18:11:32 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-libs/glib-2
91 dev-util/intltool
92 virtual/pkgconfig
93 sys-devel/gettext
94 virtual/os-headers
95 xfs? ( sys-fs/xfsprogs )"
96
97 REQUIRED_USE="ayatana? ( gtk )"
98
99 DOCS="AUTHORS NEWS qt/README.txt"
100
101 pkg_setup() {
102 enewgroup ${PN}
103 enewuser ${PN} -1 -1 -1 ${PN}
104 }
105
106 src_unpack() {
107 # if [[ ${PV} == *9999* ]]; then
108 # subversion_src_unpack
109 # else
110 default
111 # fi
112 }
113
114 src_prepare() {
115 # if [[ ${PV} == *9999* ]]; then
116 # subversion_src_prepare
117 # ./update-version-h.sh
118 # fi
119
120 sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac
121 use ayatana || sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac
122
123 # http://trac.transmissionbt.com/ticket/4324
124 sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
125
126 eautoreconf
127
128 if use qt4; then
129 cat <<-EOF > "${T}"/${PN}-magnet.protocol
130 [Protocol]
131 exec=${PN}-qt '%u'
132 protocol=magnet
133 Icon=${PN}
134 input=none
135 output=none
136 helper=true
137 listing=
138 reading=false
139 writing=false
140 makedir=false
141 deleting=false
142 EOF
143 fi
144 }
145
146 src_configure() {
147 export ac_cv_header_xfs_xfs_h=$(usex xfs)
148
149 econf \
150 --enable-external-natpmp \
151 $(use_enable lightweight) \
152 $(use_with gtk)
153
154 if use qt4; then
155 pushd qt >/dev/null
156 eqmake4 qtr.pro
157 popd >/dev/null
158 fi
159 }
160
161 src_compile() {
162 emake
163
164 if use qt4; then
165 pushd qt >/dev/null
166 emake
167 lrelease translations/*.ts
168 popd >/dev/null
169 fi
170 }
171
172 src_install() {
173 default
174
175 rm -f "${ED}"/usr/share/${PN}/web/LICENSE
176
177 newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon
178 newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon
179
180 keepdir /var/{${PN}/{config,downloads},log/${PN}}
181 fowners -R ${PN}:${PN} /var/{${PN}/{,config,downloads},log/${PN}}
182
183 if use qt4; then
184 pushd qt >/dev/null
185 emake INSTALL_ROOT="${ED}"/usr install
186
187 domenu ${PN}-qt.desktop
188
189 local res
190 for res in 16 22 24 32 48; do
191 insinto /usr/share/icons/hicolor/${res}x${res}/apps
192 newins icons/hicolor_apps_${res}x${res}_${PN}.png ${PN}-qt.png
193 done
194
195 insinto /usr/share/kde4/services
196 doins "${T}"/${PN}-magnet.protocol
197
198 insinto /usr/share/qt4/translations
199 doins translations/*.qm
200 popd >/dev/null
201 fi
202 }
203
204 pkg_preinst() {
205 gnome2_icon_savelist
206 }
207
208 pkg_postinst() {
209 fdo-mime_desktop_database_update
210 gnome2_icon_cache_update
211
212 elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
213 elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
214 elog "start) in settings.json file located at /var/${PN}/config or"
215 elog "any other appropriate config directory."
216 elog
217 elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
218 elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
219 elog " net.core.rmem_max = 4194304"
220 elog " net.core.wmem_max = 1048576"
221 elog "and run sysctl -p"
222 }
223
224 pkg_postrm() {
225 fdo-mime_desktop_database_update
226 gnome2_icon_cache_update
227 }