Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: xfce-base/xfce4-session/
Date: Sun, 08 Apr 2018 08:29:37
Message-Id: 1523176164.98185fb9ac5cb5438664528919bdefb842719a93.mgorny@gentoo
1 commit: 98185fb9ac5cb5438664528919bdefb842719a93
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 8 07:32:05 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 8 08:29:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98185fb9
7
8 xfce-base/xfce4-session: Bump 4.12.1 to EAPI=6
9
10 .../xfce4-session/xfce4-session-4.12.1-r2.ebuild | 77 ++++++++++++++++++++++
11 1 file changed, 77 insertions(+)
12
13 diff --git a/xfce-base/xfce4-session/xfce4-session-4.12.1-r2.ebuild b/xfce-base/xfce4-session/xfce4-session-4.12.1-r2.ebuild
14 new file mode 100644
15 index 00000000000..19efc8cad64
16 --- /dev/null
17 +++ b/xfce-base/xfce4-session/xfce4-session-4.12.1-r2.ebuild
18 @@ -0,0 +1,77 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=6
23 +
24 +inherit gnome2-utils
25 +
26 +DESCRIPTION="A session manager for the Xfce desktop environment"
27 +HOMEPAGE="https://docs.xfce.org/xfce/xfce4-session/start"
28 +SRC_URI="mirror://xfce/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2"
29 +
30 +LICENSE="GPL-2"
31 +SLOT="0"
32 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
33 +IUSE="nls policykit systemd upower +xscreensaver"
34 +
35 +COMMON_DEPEND=">=dev-libs/dbus-glib-0.100:=
36 + x11-apps/iceauth
37 + x11-libs/libSM:=
38 + >=x11-libs/libwnck-2.30:1=
39 + x11-libs/libX11:=
40 + >=xfce-base/libxfce4util-4.11:=
41 + >=xfce-base/libxfce4ui-4.12.1:=
42 + >=xfce-base/xfconf-4.10:=
43 + policykit? ( >=sys-auth/polkit-0.102:= )
44 + upower? ( || ( >=sys-power/upower-0.9.23 sys-power/upower-pm-utils ) )"
45 +RDEPEND="${COMMON_DEPEND}
46 + x11-apps/xrdb
47 + nls? ( x11-misc/xdg-user-dirs )
48 + !systemd? ( upower? ( sys-power/pm-utils ) )
49 + xscreensaver? ( || (
50 + >=x11-misc/xscreensaver-5.26
51 + x11-misc/light-locker
52 + >=x11-misc/xlockmore-5.43
53 + x11-misc/slock
54 + x11-misc/alock[pam]
55 + ) )"
56 +DEPEND="${COMMON_DEPEND}
57 + dev-util/intltool
58 + sys-devel/gettext
59 + virtual/pkgconfig"
60 +
61 +REQUIRED_USE="systemd? ( policykit )"
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${PN}-4.10.1-alock_support_to_xflock4.patch
65 + "${FILESDIR}"/${PN}-4.12.1-light-locker_support_to_xflock4.patch
66 +)
67 +
68 +src_configure() {
69 + local myconf=(
70 + $(use_enable policykit polkit)
71 + --with-xsession-prefix="${EPREFIX}"/usr
72 + )
73 + use upower && myconf+=( --enable-upower )
74 +
75 + econf "${myconf[@]}"
76 +}
77 +
78 +src_install() {
79 + default
80 + find "${ED}" -name '*.la' -delete || die
81 +
82 + local sessiondir=/etc/X11/Sessions
83 + echo startxfce4 > "${T}"/Xfce4 || die
84 + exeinto ${sessiondir}
85 + doexe "${T}"/Xfce4
86 + dosym Xfce4 ${sessiondir}/Xfce
87 +}
88 +
89 +pkg_postinst() {
90 + gnome2_icon_cache_update
91 +}
92 +
93 +pkg_postrm() {
94 + gnome2_icon_cache_update
95 +}