Gentoo Archives: gentoo-commits

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