Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/blueman: blueman-1.23_p20140717-r1.ebuild blueman-9999.ebuild ChangeLog blueman-1.23_p20140717.ebuild
Date: Fri, 01 Aug 2014 08:03:52
Message-Id: 20140801080346.573732004E@flycatcher.gentoo.org
1 mgorny 14/08/01 08:03:45
2
3 Modified: blueman-9999.ebuild ChangeLog
4 Added: blueman-1.23_p20140717-r1.ebuild
5 Removed: blueman-1.23_p20140717.ebuild
6 Log:
7 Update deps from configure.ac. Switch to python-single-r1. Add missing ||die.
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
10
11 Revision Changes Path
12 1.3 net-wireless/blueman/blueman-9999.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/blueman-9999.ebuild?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/blueman-9999.ebuild?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/blueman-9999.ebuild?r1=1.2&r2=1.3
17
18 Index: blueman-9999.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-wireless/blueman/blueman-9999.ebuild,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- blueman-9999.ebuild 12 May 2014 14:22:17 -0000 1.2
25 +++ blueman-9999.ebuild 1 Aug 2014 08:03:45 -0000 1.3
26 @@ -1,12 +1,11 @@
27 # Copyright 1999-2014 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/blueman/blueman-9999.ebuild,v 1.2 2014/05/12 14:22:17 zerochaos Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/blueman/blueman-9999.ebuild,v 1.3 2014/08/01 08:03:45 mgorny Exp $
31
32 EAPI="5"
33
34 -PYTHON_DEPEND="2:2.7"
35 -
36 -inherit eutils python gnome2-utils autotools
37 +PYTHON_COMPAT=( python2_7 )
38 +inherit eutils python-single-r1 gnome2-utils autotools
39
40 DESCRIPTION="GTK+ Bluetooth Manager, designed to be simple and intuitive for everyday bluetooth tasks."
41 HOMEPAGE="http://blueman-project.org/"
42 @@ -24,24 +23,25 @@
43 SLOT="0"
44 IUSE="gconf sendto network nls policykit pulseaudio"
45
46 -CDEPEND="dev-libs/glib:2
47 - x11-libs/gtk+:3
48 - x11-libs/startup-notification
49 - dev-python/pygobject:2
50 - >=net-wireless/bluez-4.61
51 - x11-libs/libnotify"
52 +CDEPEND="dev-libs/glib:2=
53 + x11-libs/gtk+:3=
54 + x11-libs/startup-notification:=
55 + dev-python/dbus-python[${PYTHON_USEDEP}]
56 + || (
57 + dev-python/pygobject:2
58 + dev-python/pygobject:3
59 + )
60 + >=net-wireless/bluez-4.61:=
61 + ${PYTHON_DEPS}"
62 DEPEND="${CDEPEND}
63 nls? ( dev-util/intltool sys-devel/gettext )
64 virtual/pkgconfig
65 - >=dev-python/pyrex-0.9.8"
66 + dev-python/cython[${PYTHON_USEDEP}]"
67 RDEPEND="${CDEPEND}
68 >=app-mobilephone/obex-data-server-0.4.4
69 sys-apps/dbus
70 - dev-python/pygtk
71 - dev-python/notify-python
72 - dev-python/dbus-python
73 x11-themes/hicolor-icon-theme
74 - gconf? ( dev-python/gconf-python )
75 + gconf? ( dev-python/gconf-python[${PYTHON_USEDEP}] )
76 sendto? ( gnome-base/nautilus )
77 network? ( || ( net-dns/dnsmasq
78 =net-misc/dhcp-3*
79 @@ -49,15 +49,9 @@
80 policykit? ( sys-auth/polkit )
81 pulseaudio? ( media-sound/pulseaudio )"
82
83 -pkg_setup() {
84 - python_set_active_version 2.7
85 - python_pkg_setup
86 -}
87 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
88
89 src_prepare() {
90 - # disable pyc compiling
91 - ln -sf $(type -P true) py-compile
92 -
93 sed -i \
94 -e '/^Encoding/d' \
95 data/blueman-manager.desktop.in || die "sed failed"
96 @@ -80,16 +74,15 @@
97 src_install() {
98 default
99
100 - python_convert_shebangs 2.7 "${D}"/usr/bin/blueman-* "${D}/usr/libexec/blueman-mechanism"
101 -
102 - rm "${D}"/$(python_get_sitedir)/*.la
103 - use sendto && rm "${D}"/usr/lib*/nautilus-sendto/plugins/*.la
104 + python_fix_shebang "${D}"
105
106 - use gconf || rm "${D}"/$(python_get_sitedir)/${PN}/plugins/config/Gconf.py
107 - use policykit || rm -rf "${D}"/usr/share/polkit-1
108 - use pulseaudio || rm "${D}"/$(python_get_sitedir)/${PN}/{main/Pulse*.py,plugins/applet/Pulse*.py}
109 + rm "${D}"/$(python_get_sitedir)/*.la || die
110 + use sendto && { rm "${D}"/usr/lib*/nautilus-sendto/plugins/*.la || die; }
111
112 - python_need_rebuild
113 + # Note: Python 3 support would need __pycache__ file removal too
114 + use gconf || { rm "${D}"/$(python_get_sitedir)/${PN}/plugins/config/Gconf.py* || die; }
115 + use policykit || { rm -rf "${D}"/usr/share/polkit-1 || die; }
116 + use pulseaudio || { rm "${D}"/$(python_get_sitedir)/${PN}/{main/Pulse*.py*,plugins/manager/Pulse*.py*} || die; }
117 }
118
119 pkg_preinst() {
120 @@ -97,11 +90,9 @@
121 }
122
123 pkg_postinst() {
124 - python_mod_optimize ${PN}
125 gnome2_icon_cache_update
126 }
127
128 pkg_postrm() {
129 - python_mod_cleanup ${PN}
130 gnome2_icon_cache_update
131 }
132
133
134
135 1.21 net-wireless/blueman/ChangeLog
136
137 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/ChangeLog?rev=1.21&view=markup
138 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/ChangeLog?rev=1.21&content-type=text/plain
139 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/ChangeLog?r1=1.20&r2=1.21
140
141 Index: ChangeLog
142 ===================================================================
143 RCS file: /var/cvsroot/gentoo-x86/net-wireless/blueman/ChangeLog,v
144 retrieving revision 1.20
145 retrieving revision 1.21
146 diff -u -r1.20 -r1.21
147 --- ChangeLog 1 Aug 2014 02:52:09 -0000 1.20
148 +++ ChangeLog 1 Aug 2014 08:03:45 -0000 1.21
149 @@ -1,6 +1,13 @@
150 # ChangeLog for net-wireless/blueman
151 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
152 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/blueman/ChangeLog,v 1.20 2014/08/01 02:52:09 zerochaos Exp $
153 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/blueman/ChangeLog,v 1.21 2014/08/01 08:03:45 mgorny Exp $
154 +
155 +*blueman-1.23_p20140717-r1 (01 Aug 2014)
156 +
157 + 01 Aug 2014; Michał Górny <mgorny@g.o>
158 + +blueman-1.23_p20140717-r1.ebuild, -blueman-1.23_p20140717.ebuild,
159 + blueman-9999.ebuild:
160 + Update deps from configure.ac. Switch to python-single-r1. Add missing ||die.
161
162 *blueman-1.23_p20140717 (01 Aug 2014)
163
164
165
166
167 1.1 net-wireless/blueman/blueman-1.23_p20140717-r1.ebuild
168
169 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/blueman-1.23_p20140717-r1.ebuild?rev=1.1&view=markup
170 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/blueman-1.23_p20140717-r1.ebuild?rev=1.1&content-type=text/plain
171
172 Index: blueman-1.23_p20140717-r1.ebuild
173 ===================================================================
174 # Copyright 1999-2014 Gentoo Foundation
175 # Distributed under the terms of the GNU General Public License v2
176 # $Header: /var/cvsroot/gentoo-x86/net-wireless/blueman/blueman-1.23_p20140717-r1.ebuild,v 1.1 2014/08/01 08:03:45 mgorny Exp $
177
178 EAPI="5"
179
180 PYTHON_COMPAT=( python2_7 )
181 inherit eutils python-single-r1 gnome2-utils autotools
182
183 DESCRIPTION="GTK+ Bluetooth Manager, designed to be simple and intuitive for everyday bluetooth tasks."
184 HOMEPAGE="http://blueman-project.org/"
185
186 if [[ ${PV} == "9999" ]] ; then
187 inherit git-r3
188 EGIT_REPO_URI="https://github.com/${PN}-project/${PN}.git"
189 KEYWORDS=""
190 else
191 #SRC_URI="http://download.tuxfamily.org/${PN}/${P}.tar.gz"
192 SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
193 KEYWORDS="~amd64 ~ppc ~x86"
194 fi
195
196 LICENSE="GPL-3"
197 SLOT="0"
198 IUSE="gconf sendto network nls policykit pulseaudio"
199
200 CDEPEND="dev-libs/glib:2=
201 x11-libs/gtk+:3=
202 x11-libs/startup-notification:=
203 dev-python/dbus-python[${PYTHON_USEDEP}]
204 || (
205 dev-python/pygobject:2
206 dev-python/pygobject:3
207 )
208 >=net-wireless/bluez-4.61:=
209 ${PYTHON_DEPS}"
210 DEPEND="${CDEPEND}
211 nls? ( dev-util/intltool sys-devel/gettext )
212 virtual/pkgconfig
213 dev-python/cython[${PYTHON_USEDEP}]"
214 RDEPEND="${CDEPEND}
215 >=app-mobilephone/obex-data-server-0.4.4
216 sys-apps/dbus
217 x11-themes/hicolor-icon-theme
218 gconf? ( dev-python/gconf-python[${PYTHON_USEDEP}] )
219 sendto? ( gnome-base/nautilus )
220 network? ( || ( net-dns/dnsmasq
221 =net-misc/dhcp-3*
222 >=net-misc/networkmanager-0.8 ) )
223 policykit? ( sys-auth/polkit )
224 pulseaudio? ( media-sound/pulseaudio )"
225
226 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
227
228 src_prepare() {
229 sed -i \
230 -e '/^Encoding/d' \
231 data/blueman-manager.desktop.in || die "sed failed"
232
233 epatch \
234 "${FILESDIR}/${PN}-9999-plugins-conf-file.patch" \
235 "${FILESDIR}/${PN}-9999-set-codeset-for-gettext-to-UTF-8-always.patch"
236 eautoreconf
237 }
238
239 src_configure() {
240 econf \
241 --disable-static \
242 $(use_enable policykit polkit) \
243 $(use_enable sendto) \
244 --disable-hal \
245 $(use_enable nls)
246 }
247
248 src_install() {
249 default
250
251 python_fix_shebang "${D}"
252
253 rm "${D}"/$(python_get_sitedir)/*.la || die
254 use sendto && { rm "${D}"/usr/lib*/nautilus-sendto/plugins/*.la || die; }
255
256 # Note: Python 3 support would need __pycache__ file removal too
257 use gconf || { rm "${D}"/$(python_get_sitedir)/${PN}/plugins/config/Gconf.py* || die; }
258 use policykit || { rm -rf "${D}"/usr/share/polkit-1 || die; }
259 use pulseaudio || { rm "${D}"/$(python_get_sitedir)/${PN}/{main/Pulse*.py*,plugins/manager/Pulse*.py*} || die; }
260 }
261
262 pkg_preinst() {
263 gnome2_icon_savelist
264 }
265
266 pkg_postinst() {
267 gnome2_icon_cache_update
268 }
269
270 pkg_postrm() {
271 gnome2_icon_cache_update
272 }