Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-extra/cinnamon: cinnamon-1.8.8.1-r2.ebuild ChangeLog
Date: Wed, 26 Feb 2014 10:52:20
Message-Id: 20140226105207.D62352004E@flycatcher.gentoo.org
1 mgorny 14/02/26 10:52:07
2
3 Modified: ChangeLog
4 Added: cinnamon-1.8.8.1-r2.ebuild
5 Log:
6 Fix build failure with mozjs17, bug #499980.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.32 gnome-extra/cinnamon/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/gnome-extra/cinnamon/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 12 Dec 2013 07:38:27 -0000 1.31
24 +++ ChangeLog 26 Feb 2014 10:52:07 -0000 1.32
25 @@ -1,6 +1,12 @@
26 # ChangeLog for gnome-extra/cinnamon
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/cinnamon/ChangeLog,v 1.31 2013/12/12 07:38:27 jlec Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/cinnamon/ChangeLog,v 1.32 2014/02/26 10:52:07 mgorny Exp $
31 +
32 +*cinnamon-1.8.8.1-r2 (26 Feb 2014)
33 +
34 + 26 Feb 2014; Michał Górny <mgorny@g.o> +cinnamon-1.8.8.1-r2.ebuild,
35 + +files/cinnamon-1.8.8.1-mozjs17.patch:
36 + Fix build failure with mozjs17, bug #499980.
37
38 12 Dec 2013; Justin Lecher <jlec@g.o> cinnamon-1.8.8.1-r1.ebuild,
39 metadata.xml:
40
41
42
43 1.1 gnome-extra/cinnamon/cinnamon-1.8.8.1-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/cinnamon-1.8.8.1-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/cinnamon-1.8.8.1-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: cinnamon-1.8.8.1-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/cinnamon/cinnamon-1.8.8.1-r2.ebuild,v 1.1 2014/02/26 10:52:07 mgorny Exp $
53
54 EAPI="5"
55 GCONF_DEBUG="no"
56 GNOME2_LA_PUNT="yes"
57 PYTHON_COMPAT=( python{2_6,2_7} )
58 PYTHON_REQ_USE="xml"
59
60 inherit autotools eutils gnome2 multilib pax-utils python-single-r1
61
62 DESCRIPTION="A fork of GNOME Shell with layout similar to GNOME 2"
63 HOMEPAGE="http://cinnamon.linuxmint.com/"
64
65 MY_PV="${PV/_p/-UP}"
66 MY_P="${PN}-${MY_PV}"
67
68 SRC_URI="https://github.com/linuxmint/Cinnamon/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz
69 http://dev.gentoo.org/~pacho/gnome/cinnamon-1.8/gnome-3.8.patch"
70
71 LICENSE="GPL-2+"
72 SLOT="0"
73 IUSE="+bluetooth +networkmanager"
74 KEYWORDS="~amd64 ~x86"
75
76 # gnome-desktop-2.91.2 is needed due to header changes, db82a33 in gnome-desktop
77 # latest gsettings-desktop-schemas is needed due to commit 602fa1c6
78 # latest g-c-c is needed due to https://bugs.gentoo.org/show_bug.cgi?id=360057
79 # libXfixes-5.0 needed for pointer barriers
80 # gnome-menus-3.2.0.1-r1 needed for new 10-xdg-menu-gnome
81 COMMON_DEPEND="
82 >=dev-libs/glib-2.29.10:2
83 >=dev-libs/gjs-1.29.18
84 >=dev-libs/gobject-introspection-0.10.1
85 x11-libs/gdk-pixbuf:2[introspection]
86 >=x11-libs/gtk+-3.0.0:3[introspection]
87 >=media-libs/clutter-1.7.5:1.0[introspection]
88 media-libs/cogl:1.0=[introspection]
89 app-misc/ca-certificates
90 >=dev-libs/json-glib-0.13.2
91 >=gnome-base/gnome-desktop-3.0.0:3=[introspection]
92 >=gnome-base/gsettings-desktop-schemas-2.91.91
93 >=media-libs/gstreamer-0.10.16:0.10
94 >=media-libs/gst-plugins-base-0.10.16:0.10
95 net-libs/libsoup:2.4[introspection]
96 >=sys-auth/polkit-0.100[introspection]
97 >=x11-wm/muffin-1.7.4[introspection]
98
99 dev-libs/dbus-glib
100 dev-libs/libxml2:2
101 x11-libs/pango[introspection]
102 >=dev-libs/libcroco-0.6.2:0.6
103
104 gnome-base/gconf:2[introspection]
105 >=gnome-base/gnome-menus-3.2.0.1-r1:3[introspection]
106 gnome-base/librsvg
107 media-libs/libcanberra
108 media-sound/pulseaudio
109
110 >=x11-libs/startup-notification-0.11
111 x11-libs/libX11
112 >=x11-libs/libXfixes-5.0
113 x11-apps/mesa-progs
114
115 ${PYTHON_DEPS}
116
117 bluetooth? ( >=net-wireless/gnome-bluetooth-3.4:=[introspection] )
118 networkmanager? (
119 gnome-base/libgnome-keyring
120 >=net-misc/networkmanager-0.8.999[introspection] )
121 "
122 # Runtime-only deps are probably incomplete and approximate.
123 # Each block:
124 # 2. Introspection stuff + dconf needed via imports.gi.*
125 # 3. gnome-session is needed for gnome-session-quit
126 # 4. Control shell settings
127 # 5. accountsservice is needed for GdmUserManager (0.6.14 needed for fast
128 # user switching with gdm-3.1.x)
129 # 6. caribou needed for on-screen keyboard
130 # 7. xdg-utils needed for xdg-open, used by extension tool
131 # 8. gconf-python, imaging, lxml needed for cinnamon-settings
132 # 9. gnome-icon-theme-symbolic needed for various icons
133 # 10. pygobject needed for menu editor
134 # 11. nemo - default file manager, tightly integrated with cinnamon
135 # 12. timedated or DateTimeMechanism implementation for cinnamon-settings
136 # TODO(lxnay): fix error: libgnome-desktop/gnome-rr-labeler.h: No such file or directory
137 # =gnome-extra/cinnamon-control-center-1.8*
138 RDEPEND="${COMMON_DEPEND}
139 >=gnome-base/dconf-0.4.1
140 >=gnome-base/libgnomekbd-2.91.4[introspection]
141 sys-power/upower[introspection]
142
143 >=gnome-base/gnome-session-3.8
144
145 >=gnome-base/gnome-settings-daemon-2.91
146
147 >=sys-apps/accountsservice-0.6.14[introspection]
148
149 >=app-accessibility/caribou-0.3
150
151 x11-misc/xdg-utils
152
153 dev-python/dbus-python[${PYTHON_USEDEP}]
154 dev-python/gconf-python:2
155 virtual/python-imaging
156 dev-python/lxml
157
158 x11-themes/gnome-icon-theme-symbolic
159
160 dev-python/pygobject:3[${PYTHON_USEDEP}]
161
162 gnome-extra/nemo
163 gnome-extra/gnome-screensaver
164
165 || (
166 app-admin/openrc-settingsd
167 >=sys-apps/systemd-30
168 <gnome-base/gnome-settings-daemon-3.3.5 )
169
170 networkmanager? (
171 net-misc/mobile-broadband-provider-info
172 sys-libs/timezone-data )
173 "
174 # gnome-extra/gnome-screensaver due screensaver patch, otherwise it uses
175 # cinnamon-screensaver
176
177 DEPEND="${COMMON_DEPEND}
178 >=sys-devel/gettext-0.17
179 virtual/pkgconfig
180 >=dev-util/intltool-0.40
181 gnome-base/gnome-common
182 !!=dev-lang/spidermonkey-1.8.2*
183 "
184 # libmozjs.so is picked up from /usr/lib while compiling, so block at build-time
185 # https://bugs.gentoo.org/show_bug.cgi?id=360413
186
187 S="${WORKDIR}/Cinnamon-${PV}"
188
189 pkg_setup() {
190 python-single-r1_pkg_setup
191 }
192
193 src_prepare() {
194 # Fix GNOME 3.8 support
195 epatch "${DISTDIR}/gnome-3.8.patch"
196 epatch "${FILESDIR}/background.patch"
197 epatch "${FILESDIR}/idle-dim.patch"
198 # https://github.com/linuxmint/Cinnamon/issues/1337
199 epatch "${FILESDIR}/keyboard_applet.patch"
200 epatch "${FILESDIR}/screensaver.patch"
201 epatch "${FILESDIR}/bluetooth_obex_transfer.patch"
202 epatch "${FILESDIR}/remove_GC.patch"
203 epatch "${FILESDIR}/menu_editor.patch"
204
205 # Fix automagic gnome-bluetooth dep, bug #398145
206 epatch "${FILESDIR}/${PN}-1.6.1-automagic-gnome-bluetooth.patch"
207
208 # Optional NetworkManager, bug #488684
209 epatch "${FILESDIR}/${PN}-1.8.8.1-optional-networkmanager.patch"
210
211 # mozjs17 build failure, bug #499980
212 epatch "${FILESDIR}/${P}-mozjs17.patch"
213
214 # Gentoo uses /usr/libexec
215 sed -e "s:/usr/lib/gnome-session/gnome-session-check-accelerated:${EPREFIX}/usr/libexec/gnome-session-check-accelerated:" \
216 -i "files/usr/share/gnome-session/sessions/cinnamon.session" || die "sed 1 failed"
217
218 # Gentoo uses /usr/$(get_libdir), not /usr/lib even for python
219 sed -e "s:/usr/lib/:/usr/$(get_libdir)/:" \
220 -e 's:"/usr/lib":"/usr/'"$(get_libdir)"'":' \
221 -i files/usr/bin/cinnamon-menu-editor \
222 -i files/usr/bin/cinnamon-settings \
223 -i files/usr/lib/cinnamon-menu-editor/cme/config.py \
224 -i files/usr/lib/cinnamon-menu-editor/cme/MainWindow.py \
225 -i files/usr/lib/cinnamon-settings/cinnamon-settings.py || die "sed 2 failed"
226 if [[ "$(get_libdir)" != lib ]]; then
227 mv files/usr/lib "files/usr/$(get_libdir)" || die "mv failed"
228 fi
229
230 if ! use bluetooth; then
231 rm -rv files/usr/share/cinnamon/applets/bluetooth@××××××××.org || die
232 fi
233
234 if ! use networkmanager; then
235 rm -rv files/usr/share/cinnamon/applets/network@××××××××.org || die
236 fi
237
238 eautoreconf
239 gnome2_src_prepare
240 }
241
242 src_configure() {
243 # Don't error out on warnings
244 gnome2_src_configure \
245 --disable-jhbuild-wrapper-script \
246 $(use_with bluetooth) \
247 $(use_enable networkmanager) \
248 --with-ca-certificates="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" \
249 BROWSER_PLUGIN_DIR="${EPREFIX}/usr/$(get_libdir)/nsbrowser/plugins"
250 }
251
252 src_install() {
253 gnome2_src_install
254 python_optimize "${ED}usr/$(get_libdir)/cinnamon-"{settings,menu-editor}
255 # Fix broken shebangs
256 sed -e "s%#!.*python%#!${PYTHON}%" \
257 -i "${ED}usr/bin/cinnamon-"{launcher,menu-editor,settings} \
258 -i "${ED}usr/$(get_libdir)/cinnamon-settings/cinnamon-settings.py" || die
259
260 domenu\
261 "${FILESDIR}/cinnamon-screensaver.desktop" \
262 "${FILESDIR}/cinnamon2d-screensaver.desktop"
263
264 # Required for gnome-shell on hardened/PaX, bug #398941
265 pax-mark mr "${ED}usr/bin/cinnamon"
266
267 # Doesn't exist on Gentoo, causing this to be a dead symlink
268 rm -f "${ED}etc/xdg/menus/cinnamon-applications-merged" || die
269 }
270
271 pkg_postinst() {
272 gnome2_pkg_postinst
273
274 if ! has_version '>=media-libs/gst-plugins-good-0.10.23:0.10' || \
275 ! has_version 'media-plugins/gst-plugins-vp8:0.10'; then
276 ewarn "To make use of Cinnamon's built-in screen recording utility,"
277 ewarn "you need to either install >=media-libs/gst-plugins-good-0.10.23:0.10"
278 ewarn "and media-plugins/gst-plugins-vp8:0.10, or use dconf-editor to change"
279 ewarn "org.cinnamon.recorder/pipeline to what you want to use."
280 fi
281
282 if ! has_version ">=x11-base/xorg-server-1.11"; then
283 ewarn "If you use multiple screens, it is highly recommended that you"
284 ewarn "upgrade to >=x11-base/xorg-server-1.11 to be able to make use of"
285 ewarn "pointer barriers which will make it easier to use hot corners."
286 fi
287
288 if has_version "<x11-drivers/ati-drivers-12"; then
289 ewarn "Cinnamon has been reported to show graphical corruption under"
290 ewarn "x11-drivers/ati-drivers-11.*; you may want to switch to"
291 ewarn "open-source drivers."
292 fi
293
294 if has_version "media-libs/mesa[video_cards_radeon]"; then
295 elog "Cinnamon is unstable under classic-mode r300/r600 mesa drivers."
296 elog "Make sure that gallium architecture for r300 and r600 drivers is"
297 elog "selected using 'eselect mesa'."
298 if ! has_version "media-libs/mesa[gallium]"; then
299 ewarn "You will need to emerge media-libs/mesa with USE=gallium."
300 fi
301 fi
302 }