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-extra/cinnamon: cinnamon-1.1.3.ebuild ChangeLog metadata.xml
Date: Tue, 10 Jan 2012 05:49:13
Message-Id: 20120110054904.014FC2004C@flycatcher.gentoo.org
1 tetromino 12/01/10 05:49:03
2
3 Added: cinnamon-1.1.3.ebuild ChangeLog metadata.xml
4 Log:
5 New ebuild for Linux Mint's fork of GNOME Shell (bug #397545).
6
7 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 gnome-extra/cinnamon/cinnamon-1.1.3.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/cinnamon-1.1.3.ebuild?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/cinnamon-1.1.3.ebuild?rev=1.1&content-type=text/plain
14
15 Index: cinnamon-1.1.3.ebuild
16 ===================================================================
17 # Copyright 1999-2012 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/cinnamon/cinnamon-1.1.3.ebuild,v 1.1 2012/01/10 05:49:03 tetromino Exp $
20
21 EAPI="4"
22 GCONF_DEBUG="no"
23 GNOME2_LA_PUNT="yes"
24 PYTHON_DEPEND="2:2.5"
25
26 inherit autotools eutils gnome2 python
27
28 DESCRIPTION="A fork of GNOME Shell with layout similar to GNOME 2"
29 HOMEPAGE="http://cinnamon.linuxmint.com/"
30
31 SRC_URI="https://github.com/linuxmint/Cinnamon/tarball/${PV} -> ${P}.tar.gz
32 https://github.com/downloads/linuxmint/Cinnamon/cinnamon-session_1.0.0_all.deb"
33
34 LICENSE="GPL-2"
35 SLOT="0"
36 IUSE="+bluetooth"
37 KEYWORDS="~amd64 ~x86"
38
39 # gnome-desktop-2.91.2 is needed due to header changes, db82a33 in gnome-desktop
40 # latest gsettings-desktop-schemas is needed due to commit 602fa1c6
41 # latest g-c-c is needed due to https://bugs.gentoo.org/show_bug.cgi?id=360057
42 # libXfixes-5.0 needed for pointer barriers
43 # gnome-menus-3.2.0.1-r1 needed for new 10-xdg-menu-gnome
44 COMMON_DEPEND=">=dev-libs/glib-2.29.10:2
45 >=dev-libs/gjs-1.29.18
46 >=dev-libs/gobject-introspection-0.10.1
47 x11-libs/gdk-pixbuf:2[introspection]
48 >=x11-libs/gtk+-3.0.0:3[introspection]
49 >=media-libs/clutter-1.7.5:1.0[introspection]
50 app-misc/ca-certificates
51 >=dev-libs/folks-0.5.2
52 >=dev-libs/json-glib-0.13.2
53 >=gnome-base/gnome-desktop-2.91.2:3
54 >=gnome-base/gsettings-desktop-schemas-2.91.91
55 gnome-base/libgnome-keyring
56 >=gnome-extra/evolution-data-server-2.91.6
57 >=media-libs/gstreamer-0.10.16:0.10
58 >=media-libs/gst-plugins-base-0.10.16:0.10
59 >=net-im/telepathy-logger-0.2.4[introspection]
60 net-libs/libsoup:2.4[introspection]
61 >=net-libs/telepathy-glib-0.15.5[introspection]
62 >=net-misc/networkmanager-0.8.999[introspection]
63 >=sys-auth/polkit-0.100[introspection]
64 >=x11-wm/mutter-3.2.1[introspection]
65
66 dev-libs/dbus-glib
67 dev-libs/libxml2:2
68 x11-libs/pango[introspection]
69 >=dev-libs/libcroco-0.6.2:0.6
70
71 gnome-base/gconf:2[introspection]
72 >=gnome-base/gnome-menus-3.2.0.1-r1:3[introspection]
73 gnome-base/librsvg
74 media-libs/libcanberra
75 media-sound/pulseaudio
76
77 >=x11-libs/startup-notification-0.11
78 x11-libs/libX11
79 >=x11-libs/libXfixes-5.0
80 x11-apps/mesa-progs
81
82 bluetooth? ( >=net-wireless/gnome-bluetooth-3.1.0[introspection] )"
83 # Runtime-only deps are probably incomplete and approximate.
84 # Each block:
85 # 2. Introspection stuff + dconf needed via imports.gi.*
86 # 3. gnome-session is needed for gnome-session-quit
87 # 4. Control shell settings
88 # 5. accountsservice is needed for GdmUserManager (0.6.14 needed for fast
89 # user switching with gdm-3.1.x)
90 # 6. caribou needed for on-screen keyboard
91 # 7. xdg-utils needed for xdg-open, used by extension tool
92 RDEPEND="${COMMON_DEPEND}
93 >=gnome-base/dconf-0.4.1
94 >=gnome-base/libgnomekbd-2.91.4[introspection]
95 sys-power/upower[introspection]
96 x11-libs/gdk-pixbuf[introspection]
97 x11-libs/pango[introspection]
98
99 >=gnome-base/gnome-session-2.91.91
100
101 >=gnome-base/gnome-settings-daemon-2.91
102 >=gnome-base/gnome-control-center-2.91.92-r1
103
104 >=sys-apps/accountsservice-0.6.14[introspection]
105
106 >=app-accessibility/caribou-0.3
107
108 x11-misc/xdg-utils"
109 DEPEND="${COMMON_DEPEND}
110 >=sys-devel/gettext-0.17
111 >=dev-util/pkgconfig-0.22
112 >=dev-util/intltool-0.40
113 gnome-base/gnome-common
114 || ( app-arch/deb2targz sys-devel/binutils )
115 !!=dev-lang/spidermonkey-1.8.2*"
116 # libmozjs.so is picked up from /usr/lib while compiling, so block at build-time
117 # https://bugs.gentoo.org/show_bug.cgi?id=360413
118 S="${WORKDIR}/linuxmint-Cinnamon-dae5da1"
119
120 pkg_setup() {
121 DOCS="AUTHORS NEWS README"
122 # Don't error out on warnings
123 G2CONF="${G2CONF}
124 --enable-compile-warnings=maximum
125 --disable-schemas-compile
126 --disable-jhbuild-wrapper-script
127 $(use_with bluetooth)
128 --with-ca-certificates=${EPREFIX}/etc/ssl/certs/ca-certificates.crt
129 BROWSER_PLUGIN_DIR=${EPREFIX}/usr/$(get_libdir)/nsbrowser/plugins"
130 python_set_active_version 2
131 python_pkg_setup
132 }
133
134 src_unpack() {
135 default
136 cd "${WORKDIR}"
137 unpack ./data.tar.gz
138 }
139
140 src_prepare() {
141 # Fix automagic gnome-bluetooth dep, bug #398145
142 epatch "${FILESDIR}/${PN}-1.1.3-automagic-gnome-bluetooth.patch"
143
144 # Do not depend on libgnome (patch from gnome-shell 3.3.x)
145 epatch "${FILESDIR}/${PN}-1.1.3-extensionjs_path.patch"
146 epatch "${FILESDIR}/${PN}-1.1.3-xdg-open.patch"
147
148 # Gentoo uses /usr/libexec
149 sed -e "s:/usr/lib/gnome-session/gnome-session-check-accelerated:${EROOT}usr/libexec/gnome-session-check-accelerated:" \
150 -i "${WORKDIR}/usr/share/gnome-session/sessions/cinnamon.session" || die "sed 1 failed"
151
152 eautoreconf
153 gnome2_src_prepare
154
155 # Drop G_DISABLE_DEPRECATED for sanity on glib upgrades; bug #384765
156 # Note: sed Makefile.in because it is generated from several Makefile.ams
157 sed -e 's/-DG_DISABLE_DEPRECATED//g' \
158 -i src/Makefile.in browser-plugin/Makefile.in || die "sed 2 failed"
159 }
160
161 src_install() {
162 gnome2_src_install
163 python_convert_shebangs 2 "${D}"/usr/bin/cinnamon-extension-tool
164
165 insinto /usr/share/gnome-session/sessions/
166 doins "${WORKDIR}/usr/share/gnome-session/sessions/cinnamon.session"
167 insinto /usr/share/xsessions/
168 doins "${WORKDIR}/usr/share/xsessions/cinnamon.desktop"
169 }
170
171 pkg_postinst() {
172 gnome2_pkg_postinst
173 if ! has_version '>=media-libs/gst-plugins-good-0.10.23' || \
174 ! has_version 'media-plugins/gst-plugins-vp8'; then
175 ewarn "To make use of Cinnamon's built-in screen recording utility,"
176 ewarn "you need to either install >=media-libs/gst-plugins-good-0.10.23"
177 ewarn "and media-plugins/gst-plugins-vp8, or use dconf-editor to change"
178 ewarn "apps.gnome-shell.recorder/pipeline to what you want to use."
179 fi
180
181 if ! has_version ">=x11-base/xorg-server-1.11"; then
182 ewarn "If you use multiple screens, it is highly recommended that you"
183 ewarn "upgrade to >=x11-base/xorg-server-1.11 to be able to make use of"
184 ewarn "pointer barriers which will make it easier to use hot corners."
185 fi
186
187 if has_version "<x11-drivers/ati-drivers-12"; then
188 ewarn "Cinnamon has been reported to show graphical corruption under"
189 ewarn "x11-drivers/ati-drivers-11.*; you may want to use GNOME in"
190 ewarn "fallback mode, or switch to open-source drivers."
191 fi
192
193 if has_version "media-libs/mesa[video_cards_radeon]"; then
194 elog "Cinnamon is unstable under classic-mode r300/r600 mesa drivers."
195 elog "Make sure that gallium architecture for r300 and r600 drivers is"
196 elog "selected using 'eselect mesa'."
197 if ! has_version "media-libs/mesa[gallium]"; then
198 ewarn "You will need to emerge media-libs/mesa with USE=gallium."
199 fi
200 fi
201
202 if has_version "media-libs/mesa[video_cards_intel]"; then
203 elog "Cinnamon is unstable under gallium-mode i915/i965 mesa drivers."
204 elog "Make sure that classic architecture for i915 and i965 drivers is"
205 elog "selected using 'eselect mesa'."
206 if ! has_version "media-libs/mesa[classic]"; then
207 ewarn "You will need to emerge media-libs/mesa with USE=classic."
208 fi
209 fi
210 }
211
212
213
214 1.1 gnome-extra/cinnamon/ChangeLog
215
216 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/ChangeLog?rev=1.1&view=markup
217 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/ChangeLog?rev=1.1&content-type=text/plain
218
219 Index: ChangeLog
220 ===================================================================
221 # ChangeLog for gnome-extra/cinnamon
222 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
223 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/cinnamon/ChangeLog,v 1.1 2012/01/10 05:49:03 tetromino Exp $
224
225 *cinnamon-1.1.3 (10 Jan 2012)
226
227 10 Jan 2012; Alexandre Rostovtsev <tetromino@g.o>
228 +cinnamon-1.1.3.ebuild,
229 +files/cinnamon-1.1.3-automagic-gnome-bluetooth.patch,
230 +files/cinnamon-1.1.3-extensionjs_path.patch,
231 +files/cinnamon-1.1.3-xdg-open.patch, +metadata.xml:
232 New ebuild for Linux Mint's fork of GNOME Shell (bug #397545).
233
234
235
236
237 1.1 gnome-extra/cinnamon/metadata.xml
238
239 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/metadata.xml?rev=1.1&view=markup
240 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon/metadata.xml?rev=1.1&content-type=text/plain
241
242 Index: metadata.xml
243 ===================================================================
244 <?xml version="1.0" encoding="UTF-8"?>
245 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
246 <pkgmetadata>
247 <herd>gnome</herd>
248 </pkgmetadata>