Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/gnome-session/
Date: Thu, 19 Sep 2019 18:16:24
Message-Id: 1568916201.12a2037c4c4006b3b23927c99ca8a106f811cd7f.leio@gentoo
1 commit: 12a2037c4c4006b3b23927c99ca8a106f811cd7f
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 19 17:58:42 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 19 18:03:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12a2037c
7
8 gnome-base/gnome-session: bump to 3.32.0 for translation updates
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 gnome-base/gnome-session/Manifest | 1 +
14 .../gnome-session/gnome-session-3.32.0.ebuild | 129 +++++++++++++++++++++
15 2 files changed, 130 insertions(+)
16
17 diff --git a/gnome-base/gnome-session/Manifest b/gnome-base/gnome-session/Manifest
18 index 8c69163bac2..f4e48169827 100644
19 --- a/gnome-base/gnome-session/Manifest
20 +++ b/gnome-base/gnome-session/Manifest
21 @@ -1 +1,2 @@
22 DIST gnome-session-3.30.1.tar.xz 485996 BLAKE2B 6882aa9f6004dc6da5070a484d92450bd1e8f61885492edf11260d9834fcae700f113a8ddeb1d905171432400ad9e94fba99ed6eaa49f08efd2d0ec2dffd9c5a SHA512 b6bc98da0245cdefa7e462b1f4e2c9198ee0da1f15a426d377331f79aec2f637bef27b093780c77f7ffbe7eb62c6829acdbd9f9e25cac5a4f6ed0da6ab96359a
23 +DIST gnome-session-3.32.0.tar.xz 485916 BLAKE2B f9c36fbc56adb5c18b674be31ebfc0236f4a0e125d82fb1ddf8277d599eada2b57bbb06d9e538dc3b101d942472628fe80e10f57be1cbf326ff7acc24cd445f2 SHA512 53d5f84ba8ddbac5cfe0e4e3115c76008a3571779cad62a5fe064a409a507497a9ab93a46d6ba7ee4238ac0efb2f2c1379647855ac8058a945350c88400daf34
24
25 diff --git a/gnome-base/gnome-session/gnome-session-3.32.0.ebuild b/gnome-base/gnome-session/gnome-session-3.32.0.ebuild
26 new file mode 100644
27 index 00000000000..7c7814e1e3c
28 --- /dev/null
29 +++ b/gnome-base/gnome-session/gnome-session-3.32.0.ebuild
30 @@ -0,0 +1,129 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +inherit gnome.org gnome2-utils meson xdg
36 +
37 +DESCRIPTION="Gnome session manager"
38 +HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-session"
39 +
40 +LICENSE="GPL-2+"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
43 +IUSE="consolekit doc elogind systemd"
44 +# There is a null backend available, thus ?? not ^^
45 +# consolekit can be enabled alone, or together with a logind provider; in latter case CK is used as fallback
46 +REQUIRED_USE="?? ( elogind systemd )"
47 +
48 +DEPEND="
49 + >=dev-libs/glib-2.46.0:2
50 + >=x11-libs/gtk+-3.18.0:3
51 + x11-libs/libICE
52 + x11-libs/libSM
53 + x11-libs/libX11
54 + >=gnome-base/gnome-desktop-3.18:3=
55 + >=dev-libs/json-glib-0.10
56 + media-libs/mesa[egl,gles2,X(+)]
57 + media-libs/libepoxy
58 + x11-libs/libXcomposite
59 +
60 + systemd? ( >=sys-apps/systemd-183:0= )
61 + elogind? ( >=sys-auth/elogind-239.4 )
62 + consolekit? ( >=dev-libs/dbus-glib-0.76 )
63 +"
64 +
65 +# Pure-runtime deps from the session files should *NOT* be added here
66 +# Otherwise, things like gdm pull in gnome-shell.
67 +# gnome-settings-daemon is assumed to be >=3.27.90, but this is about
68 +# removed components, so no need to strictly require it (older just
69 +# won't have those daemons loaded by gnome-session).
70 +# x11-misc/xdg-user-dirs{,-gtk} are needed to create the various XDG_*_DIRs, and
71 +# create .config/user-dirs.dirs which is read by glib to get G_USER_DIRECTORY_*
72 +# xdg-user-dirs-update is run during login (see 10-user-dirs-update-gnome below).
73 +# sys-apps/dbus[X] is needed for session management.
74 +# Our 90-xcursor-theme-gnome reads a setting from gsettings-desktop-schemas.
75 +RDEPEND="${DEPEND}
76 + >=gnome-base/gnome-settings-daemon-3.23.2
77 + >=gnome-base/gsettings-desktop-schemas-0.1.7
78 + sys-apps/dbus[X]
79 + consolekit? ( sys-auth/consolekit )
80 +
81 + x11-misc/xdg-user-dirs
82 + x11-misc/xdg-user-dirs-gtk
83 +"
84 +BDEPEND="
85 + dev-libs/libxslt
86 + dev-util/gdbus-codegen
87 + >=sys-devel/gettext-0.19.8
88 + x11-libs/xtrans
89 + virtual/pkgconfig
90 + doc? ( app-text/xmlto
91 + app-text/docbook-xml-dtd:4.1.2 )
92 +"
93 +
94 +PATCHES=(
95 + "${FILESDIR}"/3.30.1-elogind-support.patch
96 +)
97 +
98 +src_prepare() {
99 + xdg_src_prepare
100 + # Install USE=doc in $PF if enabled
101 + sed -i -e "s:meson\.project_name(), 'dbus':'${PF}', 'dbus':" doc/dbus/meson.build || die
102 +}
103 +
104 +src_configure() {
105 + local emesonargs=(
106 + -Ddeprecation_flags=false
107 + $(meson_use elogind)
108 + -Dsession_selector=true # gnome-custom-session
109 + $(meson_use systemd)
110 + $(meson_use systemd systemd_journal)
111 + $(meson_use consolekit)
112 + $(meson_use doc docbook)
113 + -Dman=true
114 + )
115 + meson_src_configure
116 +}
117 +
118 +src_install() {
119 + meson_src_install
120 +
121 + dodir /etc/X11/Sessions
122 + exeinto /etc/X11/Sessions
123 + doexe "${FILESDIR}/Gnome"
124 +
125 + insinto /usr/share/applications
126 + newins "${FILESDIR}/defaults.list-r4" gnome-mimeapps.list
127 +
128 + dodir /etc/X11/xinit/xinitrc.d/
129 + exeinto /etc/X11/xinit/xinitrc.d/
130 + newexe "${FILESDIR}/15-xdg-data-gnome-r1" 15-xdg-data-gnome
131 +
132 + # This should be done here as discussed in bug #270852
133 + newexe "${FILESDIR}/10-user-dirs-update-gnome-r1" 10-user-dirs-update-gnome
134 +
135 + # Set XCURSOR_THEME from current dconf setting instead of installing
136 + # default cursor symlink globally and affecting other DEs (bug #543488)
137 + # https://bugzilla.gnome.org/show_bug.cgi?id=711703
138 + newexe "${FILESDIR}/90-xcursor-theme-gnome" 90-xcursor-theme-gnome
139 +}
140 +
141 +pkg_postinst() {
142 + xdg_pkg_postinst
143 + gnome2_schemas_update
144 +
145 + if ! has_version gnome-base/gdm && ! has_version x11-misc/sddm; then
146 + ewarn "If you use a custom .xinitrc for your X session,"
147 + ewarn "make sure that the commands in the xinitrc.d scripts are run."
148 + fi
149 +
150 + if ! use systemd && ! use elogind && ! use consolekit; then
151 + ewarn "You are building without systemd, elogind and/or consolekit support."
152 + ewarn "gnome-session won't be able to correctly track and manage your session."
153 + fi
154 +}
155 +
156 +pkg_postrm() {
157 + xdg_pkg_postinst
158 + gnome2_schemas_update
159 +}