/[gentoo-x86]/gnome-base/gnome-shell/gnome-shell-3.2.2.1.ebuild
Gentoo

Contents of /gnome-base/gnome-shell/gnome-shell-3.2.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Nov 7 21:48:09 2012 UTC (20 months ago) by tetromino
Branch: MAIN
Changes since 1.7: +6 -6 lines
Slot gstreamer dependencies in preparation for gstreamer-1.0; update license.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-shell/gnome-shell-3.2.2.1.ebuild,v 1.7 2012/10/10 00:23:54 tetromino Exp $
4
5 EAPI="4"
6 GCONF_DEBUG="no"
7 GNOME2_LA_PUNT="yes"
8 PYTHON_DEPEND="2:2.5"
9
10 inherit autotools eutils gnome2 multilib pax-utils python
11
12 DESCRIPTION="Provides core UI functions for the GNOME 3 desktop"
13 HOMEPAGE="http://live.gnome.org/GnomeShell"
14
15 SRC_URI="${SRC_URI}
16 http://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}-patches-1.tar.xz"
17
18 LICENSE="GPL-2+ LGPL-2+"
19 SLOT="0"
20 IUSE="+bluetooth +networkmanager"
21 KEYWORDS="~amd64 ~x86"
22
23 # gnome-desktop-2.91.2 is needed due to header changes, db82a33 in gnome-desktop
24 # latest gsettings-desktop-schemas is needed due to commit 602fa1c6
25 # latest g-c-c is needed due to https://bugs.gentoo.org/show_bug.cgi?id=360057
26 # libXfixes-5.0 needed for pointer barriers
27 COMMON_DEPEND=">=dev-libs/glib-2.25.9:2
28 >=dev-libs/gjs-1.29.18
29 >=dev-libs/gobject-introspection-0.10.1
30 x11-libs/gdk-pixbuf:2[introspection]
31 >=x11-libs/gtk+-3.0.0:3[introspection]
32 >=media-libs/clutter-1.7.5:1.0[introspection]
33 app-misc/ca-certificates
34 >=dev-libs/folks-0.5.2
35 >=dev-libs/json-glib-0.13.2
36 >=gnome-base/gnome-desktop-2.91.2:3
37 >=gnome-base/gsettings-desktop-schemas-2.91.91
38 >=gnome-extra/evolution-data-server-2.91.6
39 >=media-libs/gstreamer-0.10.16:0.10
40 >=media-libs/gst-plugins-base-0.10.16:0.10
41 >=net-im/telepathy-logger-0.2.4[introspection]
42 net-libs/libsoup:2.4[introspection]
43 >=net-libs/telepathy-glib-0.15.5[introspection]
44 >=sys-auth/polkit-0.100[introspection]
45 >=x11-wm/mutter-3.2.1[introspection]
46
47 dev-libs/dbus-glib
48 dev-libs/libxml2:2
49 x11-libs/pango[introspection]
50 >=dev-libs/libcroco-0.6.2:0.6
51
52 gnome-base/gconf:2[introspection]
53 >=gnome-base/gnome-menus-2.29.10:3[introspection]
54 gnome-base/librsvg
55 media-libs/libcanberra
56 media-sound/pulseaudio
57
58 >=x11-libs/startup-notification-0.11
59 x11-libs/libX11
60 >=x11-libs/libXfixes-5.0
61 x11-apps/mesa-progs
62
63 bluetooth? ( >=net-wireless/gnome-bluetooth-3.1.0[introspection] )
64 networkmanager? (
65 gnome-base/libgnome-keyring
66 >=net-misc/networkmanager-0.8.999[introspection] )"
67 # Runtime-only deps are probably incomplete and approximate.
68 # Each block:
69 # 1. Pull in polkit-0.101 for pretty authorization dialogs
70 # 2. Introspection stuff + dconf needed via imports.gi.*
71 # 3. gnome-session is needed for gnome-session-quit
72 # 4. Control shell settings
73 # 5. accountsservice is needed for GdmUserManager (0.6.14 needed for fast
74 # user switching with gdm-3.1.x)
75 # 6. caribou needed for on-screen keyboard
76 # 7. xdg-utils needed for xdg-open, used by extension tool
77 # 8. gnome-icon-theme-symbolic and dejavu font neeed for various icons & arrows
78 # 9. mobile-broadband-provider-info, timezone-data for shell-mobile-providers.c
79 RDEPEND="${COMMON_DEPEND}
80 >=sys-auth/polkit-0.101[introspection]
81
82 >=gnome-base/dconf-0.4.1
83 >=gnome-base/libgnomekbd-2.91.4[introspection]
84 sys-power/upower[introspection]
85
86 >=gnome-base/gnome-session-2.91.91
87
88 >=gnome-base/gnome-settings-daemon-2.91
89 >=gnome-base/gnome-control-center-2.91.92-r1
90
91 >=sys-apps/accountsservice-0.6.14[introspection]
92
93 >=app-accessibility/caribou-0.3
94
95 x11-misc/xdg-utils
96
97 media-fonts/dejavu
98 x11-themes/gnome-icon-theme-symbolic
99
100 networkmanager? (
101 net-misc/mobile-broadband-provider-info
102 sys-libs/timezone-data )"
103 DEPEND="${COMMON_DEPEND}
104 >=sys-devel/gettext-0.17
105 virtual/pkgconfig
106 >=dev-util/intltool-0.40
107 gnome-base/gnome-common
108 !!=dev-lang/spidermonkey-1.8.2*"
109 # libmozjs.so is picked up from /usr/lib while compiling, so block at build-time
110 # https://bugs.gentoo.org/show_bug.cgi?id=360413
111
112 pkg_setup() {
113 DOCS="AUTHORS NEWS README"
114 # Don't error out on warnings
115 G2CONF="${G2CONF}
116 --enable-compile-warnings=maximum
117 --disable-schemas-compile
118 --disable-jhbuild-wrapper-script
119 $(use_with bluetooth)
120 $(use_enable networkmanager)
121 --with-ca-certificates=${EPREFIX}/etc/ssl/certs/ca-certificates.crt
122 BROWSER_PLUGIN_DIR=${EPREFIX}/usr/$(get_libdir)/nsbrowser/plugins"
123 python_set_active_version 2
124 python_pkg_setup
125 }
126
127 src_prepare() {
128 # Useful patches from git master (not in gnome-3-2 branch yet)
129 epatch ../patch/*.patch
130
131 # Fix automagic gnome-bluetooth dep, bug #398145
132 epatch "${FILESDIR}/${PN}-3.2.1-automagic-gnome-bluetooth.patch"
133
134 # Make networkmanager optional, bug #398593
135 epatch "${FILESDIR}/${PN}-3.2.1-optional-networkmanager.patch"
136
137 eautoreconf
138 gnome2_src_prepare
139
140 # Drop G_DISABLE_DEPRECATED for sanity on glib upgrades; bug #384765
141 # Note: sed Makefile.in because it is generated from several Makefile.ams
142 sed -e 's/-DG_DISABLE_DEPRECATED//g' \
143 -i src/Makefile.in browser-plugin/Makefile.in || die "sed failed"
144 }
145
146 src_install() {
147 gnome2_src_install
148 python_convert_shebangs 2 "${ED}/usr/bin/gnome-shell-extension-tool"
149
150 # Required for gnome-shell on hardened/PaX, bug #398941
151 pax-mark mr "${ED}usr/bin/gnome-shell"
152 }
153
154 pkg_postinst() {
155 gnome2_pkg_postinst
156
157 if ! has_version '>=media-libs/gst-plugins-good-0.10.23:0.10' || \
158 ! has_version 'media-plugins/gst-plugins-vp8:0.10'; then
159 ewarn "To make use of GNOME Shell's built-in screen recording utility,"
160 ewarn "you need to either install >=media-libs/gst-plugins-good-0.10.23:0.10"
161 ewarn "and media-plugins/gst-plugins-vp8:0.10, or use dconf-editor to change"
162 ewarn "apps.gnome-shell.recorder/pipeline to what you want to use."
163 fi
164
165 if ! has_version ">=x11-base/xorg-server-1.11"; then
166 ewarn "If you use multiple screens, it is highly recommended that you"
167 ewarn "upgrade to >=x11-base/xorg-server-1.11 to be able to make use of"
168 ewarn "pointer barriers which will make it easier to use hot corners."
169 fi
170
171 if has_version "<x11-drivers/ati-drivers-12"; then
172 ewarn "GNOME Shell has been reported to show graphical corruption under"
173 ewarn "x11-drivers/ati-drivers-11.*; you may want to use GNOME in"
174 ewarn "fallback mode, or switch to open-source drivers."
175 fi
176
177 if has_version "media-libs/mesa[video_cards_radeon]"; then
178 elog "GNOME Shell is unstable under classic-mode r300/r600 mesa drivers."
179 elog "Make sure that gallium architecture for r300 and r600 drivers is"
180 elog "selected using 'eselect mesa'."
181 if ! has_version "media-libs/mesa[gallium]"; then
182 ewarn "You will need to emerge media-libs/mesa with USE=gallium."
183 fi
184 fi
185
186 if has_version "media-libs/mesa[video_cards_intel]"; then
187 elog "GNOME Shell is unstable under gallium-mode i915/i965 mesa drivers."
188 elog "Make sure that classic architecture for i915 and i965 drivers is"
189 elog "selected using 'eselect mesa'."
190 if ! has_version "media-libs/mesa[classic]"; then
191 ewarn "You will need to emerge media-libs/mesa with USE=classic."
192 fi
193 fi
194 }

  ViewVC Help
Powered by ViewVC 1.1.20