# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit mate readme.gentoo-r1 if [[ ${PV} != 9999 ]]; then KEYWORDS="amd64 ~arm ~arm64 x86" fi DESCRIPTION="Replaces xscreensaver, integrating with the MATE desktop" LICENSE="GPL-2" SLOT="0" IUSE="X debug consolekit elogind kernel_linux libnotify opengl pam systemd" REQUIRED_USE="?? ( elogind systemd )" DOC_CONTENTS=" Information for converting screensavers is located in /usr/share/doc/${PF}/xss-conversion.txt* " COMMON_DEPEND=" >=dev-libs/dbus-glib-0.71:0 >=dev-libs/glib-2.50:2 gnome-base/dconf >=mate-base/libmatekbd-1.17.0 >=mate-base/mate-desktop-1.17.0 >=mate-base/mate-menus-1.10.0 >=sys-apps/dbus-0.30 >=x11-libs/gdk-pixbuf-2.14:2 >=x11-libs/libX11-1 x11-libs/cairo >=x11-libs/gtk+-3.22:3 x11-libs/libXext x11-libs/libXrandr x11-libs/libXScrnSaver x11-libs/libXxf86misc x11-libs/libXxf86vm x11-libs/libxklavier x11-libs/pango virtual/libintl consolekit? ( sys-auth/consolekit ) libnotify? ( >=x11-libs/libnotify-0.7:0 ) opengl? ( virtual/opengl ) pam? ( gnome-base/gnome-keyring virtual/pam ) !pam? ( kernel_linux? ( sys-apps/shadow ) ) elogind? ( sys-auth/elogind ) systemd? ( sys-apps/systemd:= ) !!/dev/null` SYSTEMD_LIBS=`pkg-config --libs "libelogind" 2>/dev/null` ) fi mate_src_configure "${myconf[@]}" } src_install() { mate_src_install # Install the conversion script in the documentation. dodoc "${S}"/data/migrate-xscreensaver-config.sh dodoc "${S}"/data/xscreensaver-config.xsl dodoc "${FILESDIR}"/xss-conversion.txt # Non PAM users will need this suid to read the password hashes. # OpenPAM users will probably need this too when # https://bugzilla.gnome.org/show_bug.cgi?id=370847 # is fixed. if ! use pam ; then fperms u+s /usr/libexec/mate-screensaver-dialog fi readme.gentoo_create_doc } pkg_postinst() { mate_pkg_postinst if has_version "> /etc/portage/package.use" echo fi readme.gentoo_print_elog }