Gentoo Archives: gentoo-commits

From: Nirbheek Chauhan <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: media-sound/rhythmbox/, eclass/
Date: Tue, 03 Jan 2012 12:28:54
Message-Id: dcf94371ba4d57f35224496126e475b736060d0f.nirbheek@gentoo
1 commit: dcf94371ba4d57f35224496126e475b736060d0f
2 Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 12:27:36 2012 +0000
4 Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 12:27:47 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=dcf94371
7
8 Sync py-compile disabling code with gentoo-x86, also revert commit 280c8f78
9
10 * The rhythmbox ebuild is supposed to work for both trunk and snapshots,
11 re-enable py-compile disabling.
12
13 ---
14 eclass/gnome2-live.eclass | 3 ++-
15 eclass/gnome2-python.eclass | 6 ++++--
16 media-sound/rhythmbox/rhythmbox-9999.ebuild | 7 +++++++
17 3 files changed, 13 insertions(+), 3 deletions(-)
18
19 diff --git a/eclass/gnome2-live.eclass b/eclass/gnome2-live.eclass
20 index bf6ca7f..109473e 100644
21 --- a/eclass/gnome2-live.eclass
22 +++ b/eclass/gnome2-live.eclass
23 @@ -151,7 +151,8 @@ gnome2-live_src_prepare() {
24 fi
25
26 # Disable pyc compiling. Doesn't harm if DNE
27 - > py-compile
28 + echo > py-compile
29 + chmod +x py-compile
30
31 ### Keep this in-sync with gnome2.eclass!
32
33
34 diff --git a/eclass/gnome2-python.eclass b/eclass/gnome2-python.eclass
35 index 6fbe441..8eb7cfa 100644
36 --- a/eclass/gnome2-python.eclass
37 +++ b/eclass/gnome2-python.eclass
38 @@ -29,8 +29,10 @@ gnome2-python_pkg_setup() {
39
40 gnome2-python_src_prepare() {
41 # disable pyc compiling
42 - if [ -f py-compile ]; then
43 - > py-compile
44 + if [[ -f py-compile ]]; then
45 + rm py-compile
46 + echo > py-compile
47 + chmod +x py-compile
48 fi
49
50 gnome2_src_prepare
51
52 diff --git a/media-sound/rhythmbox/rhythmbox-9999.ebuild b/media-sound/rhythmbox/rhythmbox-9999.ebuild
53 index c698719..908f29a 100644
54 --- a/media-sound/rhythmbox/rhythmbox-9999.ebuild
55 +++ b/media-sound/rhythmbox/rhythmbox-9999.ebuild
56 @@ -150,6 +150,13 @@ pkg_setup() {
57 export GST_INSPECT=/bin/true
58 }
59
60 +src_prepare() {
61 + gnome2_src_prepare
62 +
63 + # Disable pyc compiling
64 + echo > py-compile
65 +}
66 +
67 src_test() {
68 unset SESSION_MANAGER
69 unset DBUS_SESSION_BUS_ADDRESS