1 # Copyright 1999-2019 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"
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
44 consolekit? ( sys-auth/consolekit )
45 libnotify? ( >=x11-libs/libnotify-0.7:0 )
46 opengl? ( virtual/opengl )
47 pam? ( gnome-base/gnome-keyring sys-libs/pam )
48 !pam? ( kernel_linux? ( sys-apps/shadow ) )
49 elogind? ( sys-auth/elogind )
50 systemd? ( sys-apps/systemd:= )
51 !!<gnome-extra/gnome-screensaver-3"
53 RDEPEND="${COMMON_DEPEND}
54 >=mate-base/mate-session-manager-1.6"
56 DEPEND="${COMMON_DEPEND}
57 >=dev-util/intltool-0.50.1
65 --with-kbd-layout-indicator
67 --with-xscreensaverdir=/usr/share/xscreensaver/config
68 --with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver
70 $(use_with consolekit console-kit)
73 $(use_with opengl libgl)
79 mate_src_configure "${myconf[@]}"
85 # Install the conversion script in the documentation.
86 dodoc "${S}"/data/migrate-xscreensaver-config.sh
87 dodoc "${S}"/data/xscreensaver-config.xsl
88 dodoc "${FILESDIR}"/xss-conversion.txt
90 # Non PAM users will need this suid to read the password hashes.
91 # OpenPAM users will probably need this too when
92 # https://bugzilla.gnome.org/show_bug.cgi?id=370847
95 fperms u+s /usr/libexec/mate-screensaver-dialog
98 readme.gentoo_create_doc
104 if has_version "<x11-base/xorg-server-1.5.3-r4" ; then
105 ewarn "You have a too old xorg-server installation. This will cause"
106 ewarn "mate-screensaver to eat up your CPU. Please consider upgrading."
110 if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
111 ewarn "You have xscreensaver installed, you probably want to disable it."
112 ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
113 ewarn "build xscreensaver with -gnome in the USE flags."
114 ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
118 readme.gentoo_print_elog