blob: eecedcbf40a03267345f5b2558b98ecce07dd1d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit mate readme.gentoo-r1
MINOR=$(($(ver_cut 2) % 2))
if [[ ${MINOR} -eq 0 ]]; then
KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv x86"
fi
DESCRIPTION="Replaces xscreensaver, integrating with the MATE desktop"
LICENSE="GPL-2+ HPND LGPL-2+"
SLOT="0"
IUSE="X debug elogind libnotify opengl pam systemd"
REQUIRED_USE="?? ( elogind systemd )"
COMMON_DEPEND="
>=dev-libs/dbus-glib-0.71:0
>=dev-libs/glib-2.58:2
gnome-base/dconf
>=mate-base/libmatekbd-1.17.0
>=mate-base/mate-desktop-1.17.0
>=mate-base/mate-menus-1.21.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/libXxf86vm
x11-libs/libxklavier
x11-libs/pango
libnotify? ( >=x11-libs/libnotify-0.7:0 )
opengl? ( virtual/opengl )
pam? ( gnome-base/gnome-keyring sys-libs/pam )
!pam? ( kernel_linux? ( sys-apps/shadow ) )
elogind? ( sys-auth/elogind )
systemd? ( sys-apps/systemd:= )
"
RDEPEND="${COMMON_DEPEND}
>=mate-base/mate-session-manager-1.6
virtual/libintl
mate-base/mate-panel
"
DEPEND="${COMMON_DEPEND}
dev-libs/libxml2
>=sys-devel/gettext-0.19.8:*
x11-base/xorg-proto
virtual/pkgconfig:*
"
DOC_CONTENTS="
Information for converting screensavers is located in
/usr/share/doc/${PF}/xss-conversion.txt*
"
src_configure() {
local myconf=(
--enable-locking
--with-kbd-layout-indicator
--with-xf86gamma-ext
--with-xscreensaverdir=/usr/share/xscreensaver/config
--with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver
--without-console-kit
$(use_with X x)
$(use_with elogind)
$(use_with libnotify)
$(use_with opengl libgl)
$(use_with systemd)
$(use_enable debug)
$(use_enable pam)
)
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 "<x11-base/xorg-server-1.5.3-r4" ; then
ewarn "You have a too old xorg-server installation. This will cause"
ewarn "mate-screensaver to eat up your CPU. Please consider upgrading."
echo
fi
if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
ewarn "You have xscreensaver installed, you probably want to disable it."
ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
ewarn "build xscreensaver with -gnome in the USE flags."
ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
echo
fi
readme.gentoo_print_elog
}
|