1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit mate readme.gentoo-r1
8 if [[ ${PV} != 9999 ]]; then
9 KEYWORDS="amd64 ~arm ~arm64 x86"
12 DESCRIPTION="Replaces xscreensaver, integrating with the MATE desktop"
14 LICENSE="GPL-2+ HPND LGPL-2+"
16 IUSE="X debug consolekit elogind kernel_linux libnotify opengl pam systemd"
17 REQUIRED_USE="?? ( elogind systemd )"
20 Information for converting screensavers is located in
21 /usr/share/doc/${PF}/xss-conversion.txt*
25 >=dev-libs/dbus-glib-0.71:0
26 >=dev-libs/glib-2.50:2
28 >=mate-base/libmatekbd-1.17.0
29 >=mate-base/mate-desktop-1.17.0
30 >=mate-base/mate-menus-1.21.0
32 >=x11-libs/gdk-pixbuf-2.14:2
35 >=x11-libs/gtk+-3.22:3
38 x11-libs/libXScrnSaver
43 consolekit? ( sys-auth/consolekit )
44 libnotify? ( >=x11-libs/libnotify-0.7:0 )
45 opengl? ( virtual/opengl )
46 pam? ( gnome-base/gnome-keyring sys-libs/pam )
47 !pam? ( kernel_linux? ( sys-apps/shadow ) )
48 elogind? ( sys-auth/elogind )
49 systemd? ( sys-apps/systemd:= )
50 !!<gnome-extra/gnome-screensaver-3"
52 RDEPEND="${COMMON_DEPEND}
53 >=mate-base/mate-session-manager-1.6"
55 DEPEND="${COMMON_DEPEND}
56 >=dev-util/intltool-0.50.1
64 --with-kbd-layout-indicator
66 --with-xscreensaverdir=/usr/share/xscreensaver/config
67 --with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver
69 $(use_with consolekit console-kit)
72 $(use_with opengl libgl)
78 mate_src_configure "${myconf[@]}"
84 # Install the conversion script in the documentation.
85 dodoc "${S}"/data/migrate-xscreensaver-config.sh
86 dodoc "${S}"/data/xscreensaver-config.xsl
87 dodoc "${FILESDIR}"/xss-conversion.txt
89 # Non PAM users will need this suid to read the password hashes.
90 # OpenPAM users will probably need this too when
91 # https://bugzilla.gnome.org/show_bug.cgi?id=370847
94 fperms u+s /usr/libexec/mate-screensaver-dialog
97 readme.gentoo_create_doc
103 if has_version "<x11-base/xorg-server-1.5.3-r4" ; then
104 ewarn "You have a too old xorg-server installation. This will cause"
105 ewarn "mate-screensaver to eat up your CPU. Please consider upgrading."
109 if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
110 ewarn "You have xscreensaver installed, you probably want to disable it."
111 ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
112 ewarn "build xscreensaver with -gnome in the USE flags."
113 ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
117 readme.gentoo_print_elog