1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="Gnome session manager"
11 HOMEPAGE="https://git.gnome.org/browse/gnome-session"
13 LICENSE="GPL-2 LGPL-2 FDL-1.1"
15 KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
16 IUSE="doc elibc_FreeBSD ipv6 systemd"
18 # x11-misc/xdg-user-dirs{,-gtk} are needed to create the various XDG_*_DIRs, and
19 # create .config/user-dirs.dirs which is read by glib to get G_USER_DIRECTORY_*
20 # xdg-user-dirs-update is run during login (see 10-user-dirs-update-gnome below).
21 # gdk-pixbuf used in the inhibit dialog
23 >=dev-libs/glib-2.46.0:2[dbus]
25 >=x11-libs/gtk+-3.18.0:3
26 >=dev-libs/json-glib-0.10
27 >=gnome-base/gnome-desktop-3.18:3=
28 elibc_FreeBSD? ( dev-libs/libexecinfo )
35 x11-libs/libXcomposite
39 x11-misc/xdg-user-dirs
40 x11-misc/xdg-user-dirs-gtk
43 systemd? ( >=sys-apps/systemd-183:0= )
45 # Pure-runtime deps from the session files should *NOT* be added here
46 # Otherwise, things like gdm pull in gnome-shell
47 # gnome-themes-standard is needed for the failwhale dialog themeing
48 # sys-apps/dbus[X] is needed for session management
49 RDEPEND="${COMMON_DEPEND}
50 gnome-base/gnome-settings-daemon
51 >=gnome-base/gsettings-desktop-schemas-0.1.7
52 >=x11-themes/gnome-themes-standard-2.91.92
56 >=dev-libs/dbus-glib-0.76
59 DEPEND="${COMMON_DEPEND}
61 >=sys-devel/gettext-0.10.40
63 >=dev-util/intltool-0.40.6
65 !<gnome-base/gdm-2.20.4
70 # gnome-common needed for eautoreconf
71 # gnome-base/gdm does not provide gnome.desktop anymore
74 # 1. Avoid automagic on old upower releases
75 # 2. xsltproc is always checked due to man configure
76 # switch, even if USE=-doc
77 # 3. Disable old gconf support as other distributions did long time
79 gnome2_src_configure \
80 --disable-deprecation-flags \
82 --enable-session-selector \
83 $(use_enable doc docbook-docs) \
85 $(use_enable systemd) \
86 $(use_enable !systemd consolekit) \
89 # gnome-session-selector pre-generated man page is missing
90 #$(usex !doc XSLTPROC=$(type -P true))
96 dodir /etc/X11/Sessions
97 exeinto /etc/X11/Sessions
98 doexe "${FILESDIR}/Gnome"
100 insinto /usr/share/applications
101 newins "${FILESDIR}/defaults.list-r3" gnome-mimeapps.list
103 dodir /etc/X11/xinit/xinitrc.d/
104 exeinto /etc/X11/xinit/xinitrc.d/
105 newexe "${FILESDIR}/15-xdg-data-gnome-r1" 15-xdg-data-gnome
107 # This should be done here as discussed in bug #270852
108 newexe "${FILESDIR}/10-user-dirs-update-gnome-r1" 10-user-dirs-update-gnome
110 # Set XCURSOR_THEME from current dconf setting instead of installing
111 # default cursor symlink globally and affecting other DEs (bug #543488)
112 # https://bugzilla.gnome.org/show_bug.cgi?id=711703
113 newexe "${FILESDIR}/90-xcursor-theme-gnome" 90-xcursor-theme-gnome
119 if ! has_version gnome-base/gdm && ! has_version kde-base/kdm; then
120 ewarn "If you use a custom .xinitrc for your X session,"
121 ewarn "make sure that the commands in the xinitrc.d scripts are run."