1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools desktop eutils flag-o-matic multilib pam
7 DESCRIPTION="A modular screen saver and locker for the X Window System"
8 HOMEPAGE="https://www.jwz.org/xscreensaver/"
10 https://www.jwz.org/xscreensaver/${P}.tar.gz -> ${P}-r1.tar.gz
15 KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
16 IUSE="caps gdm jpeg new-login offensive opengl pam +perl selinux suid xinerama"
19 >=gnome-base/libglade-2
24 x11-libs/gdk-pixbuf:2[X]
35 caps? ( sys-libs/libcap )
36 jpeg? ( virtual/jpeg:0 )
38 gdm? ( gnome-base/gdm )
39 !gdm? ( || ( x11-misc/lightdm lxde-base/lxdm ) )
46 xinerama? ( x11-libs/libXinerama )
48 # For USE="perl" see output of `qlist xscreensaver | grep bin | xargs grep '::'`
54 virtual/perl-Digest-MD5
56 selinux? ( sec-policy/selinux-xscreensaver )
67 "${FILESDIR}"/${PN}-5.05-interix.patch
68 "${FILESDIR}"/${PN}-5.20-blurb-hndl-test-passwd.patch
69 "${FILESDIR}"/${PN}-5.20-test-passwd-segv-tty.patch
70 "${FILESDIR}"/${PN}-5.20-tests-miscfix.patch
71 "${FILESDIR}"/${PN}-5.31-pragma.patch
72 "${FILESDIR}"/${PN}-5.43-gentoo.patch
76 sed -i configure.in -e '/^ALL_LINGUAS=/d' || die
78 export ALL_LINGUAS="${LINGUAS}"
80 if use new-login && ! use gdm; then #392967
82 -e "/default_l.*1/s:gdmflexiserver -ls:${EPREFIX}/usr/libexec/lightdm/&:" \
83 configure{,.in} || die
88 use offensive || eapply "${FILESDIR}"/${PN}-5.43-offensive.patch
97 if use ppc || use ppc64; then
98 filter-flags -maltivec -mabi=altivec
99 append-flags -U__VEC__
102 unset BC_ENV_ARGS #24568
103 export RPM_PACKAGE_VERSION=no #368025
106 $(use_with caps setcap-hacks) \
108 $(use_with new-login login-manager) \
109 $(use_with opengl gl) \
111 $(use_with suid setuid-hacks) \
112 $(use_with xinerama xinerama-ext) \
114 --with-configdir="${EPREFIX}"/usr/share/${PN}/config \
117 --with-hackdir="${EPREFIX}"/usr/$(get_libdir)/misc/${PN} \
119 --with-proc-interrupts \
121 --with-text-file="${EPREFIX}"/etc/gentoo-release \
122 --with-x-app-defaults="${EPREFIX}"/usr/share/X11/app-defaults \
124 --with-xf86gamma-ext \
125 --with-xf86vmode-ext \
130 --x-includes="${EPREFIX}"/usr/include \
131 --x-libraries="${EPREFIX}"/usr/$(get_libdir)
135 emake install_prefix="${D}" install
137 dodoc README{,.hacking}
139 use pam && fperms 755 /usr/bin/${PN}
140 pamd_mimic_system ${PN} auth
142 rm -f "${ED}"/usr/share/${PN}/config/{electricsheep,fireflies}.xml