Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xscreensaver/
Date: Fri, 11 Jun 2021 22:27:46
Message-Id: 1623450424.31abc1bf19fe9e55e2b5277bc0cd80fde110e4aa.sping@gentoo
1 commit: 31abc1bf19fe9e55e2b5277bc0cd80fde110e4aa
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 11 22:26:00 2021 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 11 22:27:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31abc1bf
7
8 x11-misc/xscreensaver: Add rdepend media-gfx/fbida
9
10 Bug: https://bugs.gentoo.org/790599
11 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
12 Package-Manager: Portage-3.0.19, Repoman-3.0.3
13
14 x11-misc/xscreensaver/xscreensaver-5.45-r2.ebuild | 169 ++++++++++++++++++++++
15 1 file changed, 169 insertions(+)
16
17 diff --git a/x11-misc/xscreensaver/xscreensaver-5.45-r2.ebuild b/x11-misc/xscreensaver/xscreensaver-5.45-r2.ebuild
18 new file mode 100644
19 index 00000000000..87f3f15a9cc
20 --- /dev/null
21 +++ b/x11-misc/xscreensaver/xscreensaver-5.45-r2.ebuild
22 @@ -0,0 +1,169 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +inherit autotools flag-o-matic l10n multilib optfeature pam
28 +
29 +DESCRIPTION="modular screen saver and locker for the X Window System"
30 +HOMEPAGE="https://www.jwz.org/xscreensaver/"
31 +SRC_URI="https://www.jwz.org/xscreensaver/${P}.tar.gz"
32 +
33 +LICENSE="BSD"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
36 +IUSE="caps +gdk-pixbuf gdm +gtk jpeg +locking new-login offensive opengl pam +perl selinux suid systemd xinerama"
37 +REQUIRED_USE="
38 + gdk-pixbuf? ( gtk )
39 +"
40 +
41 +COMMON_DEPEND="
42 + >=gnome-base/libglade-2
43 + dev-libs/libxml2
44 + media-libs/netpbm
45 + x11-apps/appres
46 + x11-apps/xwininfo
47 + x11-libs/libX11
48 + x11-libs/libXext
49 + x11-libs/libXft
50 + x11-libs/libXi
51 + x11-libs/libXmu
52 + x11-libs/libXrandr
53 + x11-libs/libXt
54 + x11-libs/libXxf86vm
55 + caps? ( sys-libs/libcap )
56 + gdk-pixbuf? (
57 + x11-libs/gdk-pixbuf-xlib
58 + >=x11-libs/gdk-pixbuf-2.42.0:2
59 + )
60 + gtk? ( x11-libs/gtk+:2 )
61 + jpeg? ( virtual/jpeg:0 )
62 + new-login? (
63 + gdm? ( gnome-base/gdm )
64 + !gdm? ( || ( x11-misc/lightdm lxde-base/lxdm ) )
65 + )
66 + opengl? (
67 + virtual/glu
68 + virtual/opengl
69 + )
70 + pam? ( sys-libs/pam )
71 + systemd? ( >=sys-apps/systemd-221 )
72 + xinerama? ( x11-libs/libXinerama )
73 +"
74 +# For USE="perl" see output of `qlist xscreensaver | grep bin | xargs grep '::'`
75 +RDEPEND="
76 + ${COMMON_DEPEND}
77 + media-gfx/fbida
78 + perl? (
79 + dev-lang/perl
80 + dev-perl/libwww-perl
81 + virtual/perl-Digest-MD5
82 + )
83 + selinux? ( sec-policy/selinux-xscreensaver )
84 +"
85 +DEPEND="
86 + ${COMMON_DEPEND}
87 + dev-util/intltool
88 + sys-devel/bc
89 + sys-devel/gettext
90 + virtual/pkgconfig
91 + x11-base/xorg-proto
92 +"
93 +PATCHES=(
94 + "${FILESDIR}"/${PN}-5.45-remove-libXxf86misc-dep.patch
95 + "${FILESDIR}"/${PN}-5.45-interix.patch
96 + "${FILESDIR}"/${PN}-5.31-pragma.patch
97 + "${FILESDIR}"/${PN}-5.44-blurb-hndl-test-passwd.patch
98 + "${FILESDIR}"/${PN}-5.44-gentoo.patch
99 + "${FILESDIR}"/${PN}-5.45-gcc.patch
100 + "${FILESDIR}"/${PN}-5.45-configure.ac-sandbox.patch
101 + "${FILESDIR}"/${P}-cve-2021-34557.patch # bug 794475
102 +)
103 +
104 +src_prepare() {
105 + sed -i configure.ac -e '/^ALL_LINGUAS=/d' || die
106 + strip-linguas -i po/
107 + export ALL_LINGUAS="${LINGUAS}"
108 +
109 + if use new-login && ! use gdm; then #392967
110 + sed -i \
111 + -e "/default_l.*1/s:gdmflexiserver -ls:${EPREFIX}/usr/libexec/lightdm/&:" \
112 + configure{,.ac} || die
113 + fi
114 +
115 + default
116 +
117 + if ! use offensive; then
118 + sed -i \
119 + -e '/boobies/d;/boobs/d;/cock/d;/pussy/d;/viagra/d;/vibrator/d' \
120 + hacks/barcode.c || die
121 + sed -i \
122 + -e 's|erect penis|shuffle board|g' \
123 + -e 's|flaccid penis|flaccid anchor|g' \
124 + -e 's|vagina|engagement ring|g' \
125 + -e 's|Penis|Shuttle|g' \
126 + hacks/glx/glsnake.c || break
127 + fi
128 +
129 + eapply_user
130 +
131 + eautoconf
132 + eautoheader
133 +}
134 +
135 +src_configure() {
136 + if use ppc || use ppc64; then
137 + filter-flags -maltivec -mabi=altivec
138 + append-flags -U__VEC__
139 + fi
140 +
141 + unset BC_ENV_ARGS #24568
142 + export RPM_PACKAGE_VERSION=no #368025
143 +
144 + econf \
145 + $(use_enable locking) \
146 + $(use_with caps setcap-hacks) \
147 + $(use_with gdk-pixbuf pixbuf) \
148 + $(use_with gtk) \
149 + $(use_with jpeg) \
150 + $(use_with new-login login-manager) \
151 + $(use_with opengl gl) \
152 + $(use_with pam) \
153 + $(use_with suid setuid-hacks) \
154 + $(use_with systemd) \
155 + $(use_with xinerama xinerama-ext) \
156 + --with-app-defaults="${EPREFIX}"/usr/share/X11/app-defaults \
157 + --with-configdir="${EPREFIX}"/usr/share/${PN}/config \
158 + --with-dpms-ext \
159 + --with-hackdir="${EPREFIX}"/usr/$(get_libdir)/misc/${PN} \
160 + --with-proc-interrupts \
161 + --with-randr-ext \
162 + --with-text-file="${EPREFIX}"/etc/gentoo-release \
163 + --with-xdbe-ext \
164 + --with-xf86gamma-ext \
165 + --with-xf86vmode-ext \
166 + --with-xinput-ext \
167 + --with-xshm-ext \
168 + --without-gle \
169 + --without-kerberos \
170 + --without-motif \
171 + --x-includes="${EPREFIX}"/usr/include \
172 + --x-libraries="${EPREFIX}"/usr/$(get_libdir)
173 +}
174 +
175 +src_install() {
176 + emake install_prefix="${D}" install
177 +
178 + dodoc README{,.hacking}
179 +
180 + if use pam; then
181 + fperms 755 /usr/bin/${PN}
182 + pamd_mimic_system ${PN} auth
183 + fi
184 +
185 + rm -f "${ED}"/usr/share/${PN}/config/{electricsheep,fireflies}.xml
186 +}
187 +
188 +pkg_postinst() {
189 + optfeature 'Bitmap fonts 75dpi' media-fonts/font-adobe-75dpi
190 + optfeature 'Bitmap fonts 100dpi' media-fonts/font-adobe-100dpi
191 +}