Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-menus: gnome-menus-3.2.0.1-r1.ebuild ChangeLog
Date: Tue, 10 Jan 2012 05:42:10
Message-Id: 20120110054158.36D702004B@flycatcher.gentoo.org
1 tetromino 12/01/10 05:41:58
2
3 Modified: ChangeLog
4 Added: gnome-menus-3.2.0.1-r1.ebuild
5 Log:
6 Add patch to not load invalid .desktop files that do not have Name or Exec keys (prevents crashes in gnome-shell and other applications that assume that all .desktop files follow freedesktop specs). Add support for cinnamon in 10-xdg-menu-gnome.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.174 gnome-base/gnome-menus/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-menus/ChangeLog?rev=1.174&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-menus/ChangeLog?rev=1.174&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-menus/ChangeLog?r1=1.173&r2=1.174
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gnome-menus/ChangeLog,v
20 retrieving revision 1.173
21 retrieving revision 1.174
22 diff -u -r1.173 -r1.174
23 --- ChangeLog 1 Jan 2012 00:36:46 -0000 1.173
24 +++ ChangeLog 10 Jan 2012 05:41:58 -0000 1.174
25 @@ -1,6 +1,16 @@
26 # ChangeLog for gnome-base/gnome-menus
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-menus/ChangeLog,v 1.173 2012/01/01 00:36:46 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-menus/ChangeLog,v 1.174 2012/01/10 05:41:58 tetromino Exp $
30 +
31 +*gnome-menus-3.2.0.1-r1 (10 Jan 2012)
32 +
33 + 10 Jan 2012; Alexandre Rostovtsev <tetromino@g.o>
34 + +files/10-xdg-menu-gnome-r1, +gnome-menus-3.2.0.1-r1.ebuild,
35 + +files/gnome-menus-3.2.0.1-ignore-invalid-entries.patch:
36 + Add patch to not load invalid .desktop files that do not have Name or Exec
37 + keys (prevents crashes in gnome-shell and other applications that assume that
38 + all .desktop files follow freedesktop specs). Add support for cinnamon in
39 + 10-xdg-menu-gnome.
40
41 01 Jan 2012; Alexandre Rostovtsev <tetromino@g.o>
42 gnome-menus-2.30.5.ebuild, gnome-menus-3.0.1-r1.ebuild,
43
44
45
46 1.1 gnome-base/gnome-menus/gnome-menus-3.2.0.1-r1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-menus/gnome-menus-3.2.0.1-r1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-menus/gnome-menus-3.2.0.1-r1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: gnome-menus-3.2.0.1-r1.ebuild
52 ===================================================================
53 # Copyright 1999-2012 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-menus/gnome-menus-3.2.0.1-r1.ebuild,v 1.1 2012/01/10 05:41:58 tetromino Exp $
56
57 EAPI="4"
58 GCONF_DEBUG="no"
59 GNOME2_LA_PUNT="yes"
60
61 PYTHON_DEPEND="2:2.4"
62 SUPPORT_PYTHON_ABIS="1"
63 RESTRICT_PYTHON_ABIS="3.*"
64
65 inherit eutils gnome2 python
66
67 DESCRIPTION="The GNOME menu system, implementing the F.D.O cross-desktop spec"
68 HOMEPAGE="http://www.gnome.org"
69
70 LICENSE="GPL-2 LGPL-2"
71 SLOT="3"
72 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
73
74 # +python for gmenu-simple-editor
75 IUSE="debug +introspection +python test"
76
77 COMMON_DEPEND=">=dev-libs/glib-2.29.15:2
78 introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
79 python? (
80 >=dev-libs/gobject-introspection-0.9.5
81 dev-python/pygobject:3
82 x11-libs/gdk-pixbuf:2[introspection]
83 x11-libs/gtk+:3[introspection] )"
84 # Older versions of slot 0 install the menu editor and the desktop directories
85 RDEPEND="${COMMON_DEPEND}
86 !<gnome-base/gnome-menus-3.0.1-r1:0"
87 DEPEND="${COMMON_DEPEND}
88 sys-devel/gettext
89 >=dev-util/pkgconfig-0.9
90 >=dev-util/intltool-0.40
91 test? ( dev-libs/gjs )"
92
93 pkg_setup() {
94 python_pkg_setup
95 DOCS="AUTHORS ChangeLog HACKING NEWS README"
96
97 # Do NOT compile with --disable-debug/--enable-debug=no
98 # It disables api usage checks
99 if ! use debug ; then
100 G2CONF="${G2CONF} --enable-debug=minimum"
101 fi
102
103 if use python || use introspection; then
104 use introspection || ewarn "Enabling introspection due to USE=python"
105 G2CONF="${G2CONF} --enable-introspection"
106 else
107 G2CONF="${G2CONF} --disable-introspection"
108 fi
109
110 G2CONF="${G2CONF} --disable-static"
111 }
112
113 src_prepare() {
114 gnome2_src_prepare
115
116 # Don't show KDE standalone settings desktop files in GNOME others menu
117 epatch "${FILESDIR}/${PN}-3.0.0-ignore_kde_standalone.patch"
118
119 # Ignore invalid .desktop files (prevents gnome-shell crash), in next release
120 epatch "${FILESDIR}/${P}-ignore-invalid-entries.patch"
121
122 # disable pyc compiling
123 echo > py-compile
124
125 python_copy_sources
126 }
127
128 src_configure() {
129 python_execute_function -s gnome2_src_configure
130 }
131
132 src_compile() {
133 python_execute_function -s gnome2_src_compile
134 }
135
136 src_test() {
137 python_execute_function -s -d
138 }
139
140 src_install() {
141 python_execute_function -s gnome2_src_install
142 python_clean_installation_image
143
144 # Prefix menu, bug #256614
145 mv "${ED}"/etc/xdg/menus/applications.menu \
146 "${ED}"/etc/xdg/menus/gnome-applications.menu || die "menu move failed"
147
148 exeinto /etc/X11/xinit/xinitrc.d/
149 newexe "${FILESDIR}/10-xdg-menu-gnome-r1" 10-xdg-menu-gnome
150 }
151
152 pkg_postinst() {
153 gnome2_pkg_postinst
154 if use python; then
155 python_mod_optimize GMenuSimpleEditor
156 fi
157 }
158
159 pkg_postrm() {
160 gnome2_pkg_postrm
161 if use python; then
162 python_mod_cleanup GMenuSimpleEditor
163 fi
164 }