Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-im/gajim/files: 0.12.1_autotools_install_pyfiles_in_pkglibdir.patch 0.12.1-roster_window.py_r10934.patch 0.12.1-sound-path-fix.patch fix_autotools_and_search_dirs.patch
Date: Mon, 27 Apr 2009 22:36:25
Message-Id: E1LyZR1-0004E9-60@stork.gentoo.org
1 patrick 09/04/27 22:36:23
2
3 Added: 0.12.1_autotools_install_pyfiles_in_pkglibdir.patch
4 0.12.1-roster_window.py_r10934.patch
5 0.12.1-sound-path-fix.patch
6 fix_autotools_and_search_dirs.patch
7 Log:
8 Bump to 0.12.1, fixes #251298. Patches by Bruno Tarquini, ebuild mods by Bruno Tarquini and Marcin Rybarski.
9 (Portage version: 2.2_rc31/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.1 net-im/gajim/files/0.12.1_autotools_install_pyfiles_in_pkglibdir.patch
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/gajim/files/0.12.1_autotools_install_pyfiles_in_pkglibdir.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/gajim/files/0.12.1_autotools_install_pyfiles_in_pkglibdir.patch?rev=1.1&content-type=text/plain
16
17 Index: 0.12.1_autotools_install_pyfiles_in_pkglibdir.patch
18 ===================================================================
19 autotools: install *.py in $(pkglibdir), ie $prefix/lib/gajim
20
21 diff -r 2c6ac74dd0e2 data/Makefile.am
22 --- a/data/Makefile.am Tue Feb 03 15:52:16 2009 +0100
23 +++ b/data/Makefile.am Tue Feb 03 16:52:41 2009 +0100
24 @@ -5,7 +5,7 @@
25 desktop_in_files = gajim.desktop.in.in
26 desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
27
28 -installdefsdir = $(pkgdatadir)/src/common
29 +installdefsdir = $(pkglibdir)/common
30 installdefs_DATA = defs.py
31
32 soundsdir = $(pkgdatadir)/data/sounds
33 diff -r 2c6ac74dd0e2 scripts/gajim-remote.in
34 --- a/scripts/gajim-remote.in Tue Feb 03 15:52:16 2009 +0100
35 +++ b/scripts/gajim-remote.in Tue Feb 03 16:52:41 2009 +0100
36 @@ -27,6 +27,6 @@
37 datadir=@DATADIR@
38 PYTHON_EXEC=@PYTHON@
39
40 -cd ${datadir}/gajim/src
41 +cd @LIBDIR@/gajim
42 export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
43 exec ${PYTHON_EXEC} -OO gajim-remote.py "$@"
44 diff -r 2c6ac74dd0e2 scripts/gajim.in
45 --- a/scripts/gajim.in Tue Feb 03 15:52:16 2009 +0100
46 +++ b/scripts/gajim.in Tue Feb 03 16:52:41 2009 +0100
47 @@ -29,6 +29,6 @@
48 datadir=@DATADIR@
49 PYTHON_EXEC=@PYTHON@
50
51 -cd ${datadir}/gajim/src
52 +cd @LIBDIR@/gajim
53 export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
54 exec ${PYTHON_EXEC} -OO gajim.py $@
55 diff -r 2c6ac74dd0e2 src/Makefile.am
56 --- a/src/Makefile.am Tue Feb 03 15:52:16 2009 +0100
57 +++ b/src/Makefile.am Tue Feb 03 16:52:41 2009 +0100
58 @@ -43,18 +43,18 @@
59 --override $(srcdir)/trayicon.override \
60 $(srcdir)/trayicon.defs > $@
61 endif
62 -gajimsrcdir = $(pkgdatadir)/src
63 +gajimsrcdir = $(pkglibdir)
64 gajimsrc_PYTHON = $(srcdir)/*.py
65
66 -gajimsrc1dir = $(pkgdatadir)/src/common
67 +gajimsrc1dir = $(pkglibdir)/common
68 gajimsrc1_PYTHON = \
69 $(srcdir)/common/*.py
70
71 -gajimsrc2dir = $(pkgdatadir)/src/common/xmpp
72 +gajimsrc2dir = $(pkglibdir)/common/xmpp
73 gajimsrc2_PYTHON = \
74 $(srcdir)/common/xmpp/*.py
75
76 -gajimsrc3dir = $(pkgdatadir)/src/common/zeroconf
77 +gajimsrc3dir = $(pkglibdir)/common/zeroconf
78 gajimsrc3_PYTHON = \
79 $(srcdir)/common/zeroconf/*.py
80
81
82
83
84 1.1 net-im/gajim/files/0.12.1-roster_window.py_r10934.patch
85
86 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/gajim/files/0.12.1-roster_window.py_r10934.patch?rev=1.1&view=markup
87 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/gajim/files/0.12.1-roster_window.py_r10934.patch?rev=1.1&content-type=text/plain
88
89 Index: 0.12.1-roster_window.py_r10934.patch
90 ===================================================================
91 Index: trunk/src/roster_window.py
92 ===================================================================
93 --- trunk/src/roster_window.py (revision 10772)
94 +++ trunk/src/roster_window.py (revision 10934)
95 @@ -1000,7 +1000,7 @@
96 and ('artist' in gajim.connections[account].tune \
97 or 'title' in gajim.connections[account].tune):
98 + path = os.path.join(gajim.DATA_DIR, 'emoticons', 'static', 'music.png')
99 self.model[child_iter][C_TUNE_PIXBUF] = \
100 - gtk.gdk.pixbuf_new_from_file(
101 - '../data/emoticons/static/music.png')
102 + gtk.gdk.pixbuf_new_from_file(path)
103 else:
104 self.model[child_iter][C_TUNE_PIXBUF] = None
105 @@ -1263,6 +1263,6 @@
106 contact = gajim.contacts.get_contact(account, jid)
107 if 'artist' in contact.tune or 'title' in contact.tune:
108 - pixbuf = gtk.gdk.pixbuf_new_from_file(
109 - '../data/emoticons/static/music.png')
110 + path = os.path.join(gajim.DATA_DIR, 'emoticons', 'static', 'music.png')
111 + pixbuf = gtk.gdk.pixbuf_new_from_file(path)
112 else:
113 pixbuf = None
114
115
116
117 1.1 net-im/gajim/files/0.12.1-sound-path-fix.patch
118
119 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/gajim/files/0.12.1-sound-path-fix.patch?rev=1.1&view=markup
120 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/gajim/files/0.12.1-sound-path-fix.patch?rev=1.1&content-type=text/plain
121
122 Index: 0.12.1-sound-path-fix.patch
123 ===================================================================
124 diff -r 955cd2eb2893 data/defs.py.in
125 --- a/data/defs.py.in Tue Feb 03 21:39:50 2009 +0100
126 +++ b/data/defs.py.in Mon Feb 16 02:05:18 2009 +0100
127 @@ -2,7 +2,7 @@
128 # do not edit it!
129 docdir = "@DOCDIR@"
130
131 -datadir = "@DATADIR@"
132 +datadir = "@DATADIR@/gajim"
133
134 localedir = "@LOCALEDIR@"
135
136 diff -r 955cd2eb2893 src/common/config.py
137 --- a/src/common/config.py Tue Feb 03 21:39:50 2009 +0100
138 +++ b/src/common/config.py Mon Feb 16 02:05:18 2009 +0100
139 @@ -447,15 +447,15 @@
140 }
141
142 soundevents_default = {
143 - 'first_message_received': [ True, '../data/sounds/message1.wav' ],
144 - 'next_message_received_focused': [ True, '../data/sounds/message2.wav' ],
145 - 'next_message_received_unfocused': [ True, '../data/sounds/message2.wav' ],
146 - 'contact_connected': [ True, '../data/sounds/connected.wav' ],
147 - 'contact_disconnected': [ True, '../data/sounds/disconnected.wav' ],
148 - 'message_sent': [ True, '../data/sounds/sent.wav' ],
149 - 'muc_message_highlight': [ True, '../data/sounds/gc_message1.wav', _('Sound to play when a group chat message contains one of the words in muc_highlight_words, or when a group chat message contains your nickname.')],
150 - 'muc_message_received': [ False, '../data/sounds/gc_message2.wav', _('Sound to play when any MUC message arrives.') ],
151 - 'gmail_received': [ False, '../data/sounds/message1.wav' ],
152 + 'first_message_received': [ True, 'message1.wav' ],
153 + 'next_message_received_focused': [ True, 'message2.wav' ],
154 + 'next_message_received_unfocused': [ True, 'message2.wav' ],
155 + 'contact_connected': [ True, 'connected.wav' ],
156 + 'contact_disconnected': [ True, 'disconnected.wav' ],
157 + 'message_sent': [ True, 'sent.wav' ],
158 + 'muc_message_highlight': [ True, 'gc_message1.wav', _('Sound to play when a group chat message contains one of the words in muc_highlight_words, or when a group chat message contains your nickname.')],
159 + 'muc_message_received': [ False, 'gc_message2.wav', _('Sound to play when any MUC message arrives.') ],
160 + 'gmail_received': [ False, 'message1.wav' ],
161 }
162
163 themes_default = {
164 @@ -696,7 +696,8 @@
165 default = self.soundevents_default[event]
166 self.add_per('soundevents', event)
167 self.set_per('soundevents', event, 'enabled', default[0])
168 - self.set_per('soundevents', event, 'path', default[1])
169 + self.set_per('soundevents', event, 'path', '%s/data/sounds/%s' %
170 + (defs.datadir, default[1]))
171
172 for status in self.defaultstatusmsg_default:
173 default = self.defaultstatusmsg_default[status]
174
175
176
177 1.1 net-im/gajim/files/fix_autotools_and_search_dirs.patch
178
179 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/gajim/files/fix_autotools_and_search_dirs.patch?rev=1.1&view=markup
180 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/gajim/files/fix_autotools_and_search_dirs.patch?rev=1.1&content-type=text/plain
181
182 Index: fix_autotools_and_search_dirs.patch
183 ===================================================================
184 upstream: http://trac.gajim.org/ticket/4770
185
186 diff -r 15ddf05b958b -r 6c0f28cde899 configure.ac
187 --- a/configure.ac Tue Feb 03 21:18:37 2009 +0100
188 +++ b/configure.ac Tue Feb 03 21:39:50 2009 +0100
189 @@ -174,18 +174,12 @@
190 AC_SUBST([PYTHON_INCLUDES])
191
192 AS_AC_EXPAND(DATADIR, "${datadir}")
193 -
194 -AS_AC_EXPAND(LIBDIR, ${libdir})
195 -
196 +AS_AC_EXPAND(LIBDIR, "${libdir}")
197 AS_AC_EXPAND(DOCDIR, "${docdir}")
198 +AS_AC_EXPAND(LOCALEDIR, "${localedir}")
199
200 AC_SUBST(VERSION)
201 AC_SUBST(PACKAGE)
202 -AC_SUBST(DATADIR)
203 -AC_SUBST(LIBDIR)
204 -AS_AC_EXPAND(DATADIR, "${DATADIR}")
205 -AC_SUBST(DOCDIR)
206 -AS_AC_EXPAND(DOCDIR, "${DOCDIR}")
207
208 AC_CONFIG_FILES([
209 Makefile
210 diff -r 15ddf05b958b -r 6c0f28cde899 data/defs.py.in
211 --- a/data/defs.py.in Tue Feb 03 21:18:37 2009 +0100
212 +++ b/data/defs.py.in Tue Feb 03 21:39:50 2009 +0100
213 @@ -4,4 +4,6 @@
214
215 datadir = "@DATADIR@"
216
217 +localedir = "@LOCALEDIR@"
218 +
219 version = "@VERSION@"
220 diff -r 15ddf05b958b -r 6c0f28cde899 m4/acinclude.m4
221 --- a/m4/acinclude.m4 Tue Feb 03 21:18:37 2009 +0100
222 +++ b/m4/acinclude.m4 Tue Feb 03 21:39:50 2009 +0100
223 @@ -1,6 +1,15 @@
224 +dnl as-ac-expand.m4 0.2.0 -*- autoconf -*-
225 +dnl autostars m4 macro for expanding directories using configure's prefix
226 +
227 +dnl (C) 2003, 2004, 2005 Thomas Vander Stichele <thomas at apestaart dot org>
228 +
229 +dnl Copying and distribution of this file, with or without modification,
230 +dnl are permitted in any medium without royalty provided the copyright
231 +dnl notice and this notice are preserved.
232 +
233 dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
234 -dnl
235 -dnl example
236 +
237 +dnl example:
238 dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
239 dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
240
241 @@ -15,7 +24,7 @@
242
243 dnl if no prefix given, then use /usr/local, the default prefix
244 if test "x$prefix" = "xNONE"; then
245 - prefix=$ac_default_prefix
246 + prefix="$ac_default_prefix"
247 fi
248 dnl if no exec_prefix given, then use prefix
249 if test "x$exec_prefix" = "xNONE"; then
250 @@ -26,7 +35,7 @@
251 dnl loop until it doesn't change anymore
252 while true; do
253 new_full_var="`eval echo $full_var`"
254 - if test "x$new_full_var"="x$full_var"; then break; fi
255 + if test "x$new_full_var" = "x$full_var"; then break; fi
256 full_var=$new_full_var
257 done
258
259 diff -r 15ddf05b958b -r 6c0f28cde899 src/common/defs.py
260 --- a/src/common/defs.py Tue Feb 03 21:18:37 2009 +0100
261 +++ b/src/common/defs.py Tue Feb 03 21:39:50 2009 +0100
262 @@ -25,6 +25,7 @@
263
264 docdir = '../'
265 datadir = '../'
266 +localedir = '../po'
267
268 version = '0.12.1.2-svn'
269
270 diff -r 15ddf05b958b -r 6c0f28cde899 src/common/i18n.py
271 --- a/src/common/i18n.py Tue Feb 03 21:18:37 2009 +0100
272 +++ b/src/common/i18n.py Tue Feb 03 21:39:50 2009 +0100
273 @@ -26,10 +26,8 @@
274 import os
275
276 APP = 'gajim'
277 -if os.path.isdir('../po'):
278 - DIR = '../po'
279 -else:
280 - DIR = '../../locale'
281 +import defs
282 +DIR = defs.localedir
283
284 # set '' so each part of the locale that should be modified is set
285 # according to the environment variables
286 diff -r 15ddf05b958b -r 6c0f28cde899 src/gtkgui_helpers.py
287 --- a/src/gtkgui_helpers.py Tue Feb 03 21:18:37 2009 +0100
288 +++ b/src/gtkgui_helpers.py Tue Feb 03 21:39:50 2009 +0100
289 @@ -61,7 +61,7 @@
290 screen_w = gtk.gdk.screen_width()
291 screen_h = gtk.gdk.screen_height()
292
293 -GLADE_DIR = os.path.join('..', 'data', 'glade')
294 +GLADE_DIR = os.path.join(gajim.DATA_DIR, 'glade')
295 def get_glade(file_name, root = None):
296 file_path = os.path.join(GLADE_DIR, file_name)
297 return gtk.glade.XML(file_path, root=root, domain=i18n.APP)