1 |
commit: 79d3bbef1b508c36bf1f88481a9d791098b438cd |
2 |
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> |
3 |
AuthorDate: Sun Oct 16 17:14:35 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 30 09:37:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79d3bbef |
7 |
|
8 |
x11-misc/xscreensaver: version bump to 6.05 |
9 |
|
10 |
* New patch for handsys manners |
11 |
* Building with USE="-opengl" is not supported anymore |
12 |
* Also added a patch for -gtk builds, set GTK_SHAREDIR because when build |
13 |
with USE="-gtk" it is not set and then installs .service file into / |
14 |
* Building with USE="-xft" is not supported anymore |
15 |
* Delete .service file when USE="-systemd" |
16 |
|
17 |
Closes: https://bugs.gentoo.org/869218 |
18 |
Closes: https://bugs.gentoo.org/851057 |
19 |
Closes: https://bugs.gentoo.org/834593 |
20 |
Closes: https://bugs.gentoo.org/851834 |
21 |
Closes: https://bugs.gentoo.org/830777 |
22 |
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de> |
23 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
24 |
|
25 |
x11-misc/xscreensaver/Manifest | 1 + |
26 |
.../xscreensaver-6.05-configure-exit-codes.patch | 29 +++ |
27 |
...screensaver-6.05-remove-update-icon-cache.patch | 13 ++ |
28 |
...creensaver-6.05-teach-handsy-some-manners.patch | 42 ++++ |
29 |
x11-misc/xscreensaver/metadata.xml | 9 +- |
30 |
x11-misc/xscreensaver/xscreensaver-6.05.ebuild | 243 +++++++++++++++++++++ |
31 |
6 files changed, 336 insertions(+), 1 deletion(-) |
32 |
|
33 |
diff --git a/x11-misc/xscreensaver/Manifest b/x11-misc/xscreensaver/Manifest |
34 |
index cb133020e650..fd4388280ff6 100644 |
35 |
--- a/x11-misc/xscreensaver/Manifest |
36 |
+++ b/x11-misc/xscreensaver/Manifest |
37 |
@@ -2,3 +2,4 @@ DIST xscreensaver-6.01.tar.gz 27820165 BLAKE2B b2c90b47fb65db79d2473c1e396717156 |
38 |
DIST xscreensaver-6.02.tar.gz 22672643 BLAKE2B 2d931fe93230e8c7344abd9180e26ab8775f82604e6f4804c82821c486203be567708cf50f7a11276a6b39df493fe5652b4198765ecb3bc5afc8cbc5a01d4801 SHA512 2291ec6ca2d2a24dae975f7f3a8e1733c06f289eb74955db5b3344c7ddcc1d72f82d380df984ef9199f2ed7ab8a7bc920da57d98f589ae5fd1cee082755ba1ff |
39 |
DIST xscreensaver-6.03.tar.gz 25703584 BLAKE2B 1276e469e8f4116fac5d434aeacbc16ff8243b56095d39ff4fcbb390abad935e70d308d2a3ecfebaa453f2dd19944ecc2edb18a229248c02f2e3997f30436bce SHA512 4aa30824c972a73dc09aeba478cad074f273839a4c7641cddd292da38fc75db10a3f6243cbe8619c5e39cad54c27d33e1e271dfed167458faa7747fb0a090630 |
40 |
DIST xscreensaver-6.04.tar.gz 26112437 BLAKE2B 42411d5f63a99d4aaccbc3bc34f8c31a1f25f1806eaf513a1ba59c2f24722e27fa2a7b1970c82a591502627224c4b4269176bda3475aba58bb945d5cd9a9464b SHA512 7e8f01853b3d9252ce0120894db7dd4fa3cd19114602a09aa770ec750e2f3742585ca4daf19b009e97386f8c0e3cc89330fe760148c6388f41de8cc1f48f8071 |
41 |
+DIST xscreensaver-6.05.1.tar.gz 26110057 BLAKE2B 97c16c9f0b2a0b4d00ddccd711b921ca683bd233bc3d07ecad38b68ff94b149a20512246dd6bae052323f00b1b433f56469c5638a031cbc65b61c2b84a0180e3 SHA512 c659a769ff71020b9f96b7e707bd1bcc667eb304179305d56b1be45eed095d650a8aa019890a0c5d444672f9dd68516c99c53b0df94cd96196d7f30a24b987e3 |
42 |
|
43 |
diff --git a/x11-misc/xscreensaver/files/xscreensaver-6.05-configure-exit-codes.patch b/x11-misc/xscreensaver/files/xscreensaver-6.05-configure-exit-codes.patch |
44 |
new file mode 100644 |
45 |
index 000000000000..a8ef464d2db0 |
46 |
--- /dev/null |
47 |
+++ b/x11-misc/xscreensaver/files/xscreensaver-6.05-configure-exit-codes.patch |
48 |
@@ -0,0 +1,29 @@ |
49 |
+The configure scripts exits on a non zero exit code even with a warning. Even |
50 |
+though for upstream this is just a warning, for portage this means failure and |
51 |
+it will exit. |
52 |
+We therefore alter the exit codes where neccesary. |
53 |
+ |
54 |
+--- a/configure.ac |
55 |
++++ b/configure.ac |
56 |
+@@ -4588,7 +4588,6 @@ if test "$have_motif" = no -a "$have_gtk" = no; then |
57 |
+ else |
58 |
+ warnL "The GTK libraries do not seem to be available; the" |
59 |
+ warn2 "\`xscreensaver-settings' program requires them." |
60 |
+- CONF_STATUS=1 |
61 |
+ # echo '' |
62 |
+ # warn2 'You can use Motif or Lesstif instead of GTK (use the' |
63 |
+ # warn2 "\`--with-motif' option) but that is NOT recommended." |
64 |
+@@ -4615,7 +4614,6 @@ if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then |
65 |
+ warn "GTK is being used, but the GDK-Pixbuf library and/or" |
66 |
+ warn2 "headers were not found. That can't be good. Please" |
67 |
+ warn2 "install the GDK-Pixbuf development kit and re-configure." |
68 |
+- CONF_STATUS=1 |
69 |
+ fi |
70 |
+ |
71 |
+ if test "$have_motif" = yes -a "$have_lesstif" = yes ; then |
72 |
+@@ -4733,7 +4731,6 @@ if test "$have_png" = no ; then |
73 |
+ |
74 |
+ if test "$png_halfassed" = yes ; then halfassery ; fi |
75 |
+ warn2 "Many things aren't going to work right." |
76 |
+- CONF_STATUS=1 |
77 |
+ fi |
78 |
|
79 |
diff --git a/x11-misc/xscreensaver/files/xscreensaver-6.05-remove-update-icon-cache.patch b/x11-misc/xscreensaver/files/xscreensaver-6.05-remove-update-icon-cache.patch |
80 |
new file mode 100644 |
81 |
index 000000000000..7d9ffdfae4d7 |
82 |
--- /dev/null |
83 |
+++ b/x11-misc/xscreensaver/files/xscreensaver-6.05-remove-update-icon-cache.patch |
84 |
@@ -0,0 +1,13 @@ |
85 |
+Remove update icon cache as it is a sandbox access violation. |
86 |
+We do this in the ebuild by ourselves instead. |
87 |
+ |
88 |
+--- a/driver/Makefile.in |
89 |
++++ b/driver/Makefile.in |
90 |
+@@ -564,7 +564,6 @@ install-gnome:: $(LOGO) |
91 |
+ fi |
92 |
+ |
93 |
+ install-gnome:: uninstall-old-gnome-icons |
94 |
+-install-gnome:: update-icon-caches |
95 |
+ |
96 |
+ update-icon-caches:: |
97 |
+ @for f in /usr/share/icons/index.theme |
98 |
|
99 |
diff --git a/x11-misc/xscreensaver/files/xscreensaver-6.05-teach-handsy-some-manners.patch b/x11-misc/xscreensaver/files/xscreensaver-6.05-teach-handsy-some-manners.patch |
100 |
new file mode 100644 |
101 |
index 000000000000..0f09d970a920 |
102 |
--- /dev/null |
103 |
+++ b/x11-misc/xscreensaver/files/xscreensaver-6.05-teach-handsy-some-manners.patch |
104 |
@@ -0,0 +1,42 @@ |
105 |
+This is to teach handly some good manners and get his mind out of the gutter. He let himself go quite a bit lately. |
106 |
+Fixes: https://bugs.gentoo.org/869218 |
107 |
+ |
108 |
+ |
109 |
+--- a/hacks/glx/handsy_anim.h |
110 |
++++ b/hacks/glx/handsy_anim.h |
111 |
+@@ -770,7 +770,6 @@ static const hand_anim goatse_anim[] = { |
112 |
+ /**************************************************************************/ |
113 |
+ |
114 |
+ static const hand_anim_pair all_hand_anims[] = { |
115 |
+- {{ middle_anim, middle_anim }, 0.2 }, |
116 |
+ {{ tap_anim, tap_anim }, 0.7 }, |
117 |
+ {{ tap_anim, tap_anim }, 0.7 }, |
118 |
+ {{ tap_anim, tap_anim }, 0.7 }, |
119 |
+@@ -778,15 +777,12 @@ static const hand_anim_pair all_hand_anims[] = { |
120 |
+ {{ spock_anim, hidden_anim}, 0 }, |
121 |
+ {{ horns_anim, horns_anim}, 0 }, |
122 |
+ {{ horns_anim, horns_anim}, 0 }, |
123 |
+- {{ bs1_anim, bs2_anim }, 0 }, |
124 |
+- {{ upyours_anim, hidden_anim }, 0 }, |
125 |
+ {{ peace_anim, hidden_anim }, 0 }, |
126 |
+ {{ scissor1_anim, scissor2_anim }, 0 }, |
127 |
+ {{ wave_anim, hidden_anim }, 0 }, |
128 |
+ {{ wave2_anim, hidden_anim }, 0 }, |
129 |
+ {{ jazzhands_anim, jazzhands_anim }, 0 }, |
130 |
+ {{ ok_anim, ok_anim }, 0 }, |
131 |
+- {{ inout1_anim, inout2_anim }, 0 }, |
132 |
+ {{ clap_anim, clap_anim }, 0 }, |
133 |
+ {{ slow_clap_anim, slow_clap_anim }, 0 }, |
134 |
+ {{ pray_anim, pray_anim }, 0 }, |
135 |
+@@ -795,11 +791,9 @@ static const hand_anim_pair all_hand_anims[] = { |
136 |
+ {{ thumbsup_anim, thumbsup_anim }, 0 }, |
137 |
+ {{ thumbsdn_anim, thumbsdn_anim }, 0 }, |
138 |
+ {{ thisguy_anim, thisguy_anim }, 0 }, |
139 |
+- {{ outtahere_anim, hidden_anim }, 0 }, |
140 |
+ {{ stahhhp_anim, stahhhp_anim }, 0 }, |
141 |
+ {{ gun_anim, gun_anim }, 0.25 }, |
142 |
+ {{ walk_anim, walk_anim }, 0.3 }, |
143 |
+- {{ goatse_anim, goatse_anim }, 0 }, |
144 |
+ {{ 0, }}}; |
145 |
+ |
146 |
+ #endif /* __HANDSY_ANIM__ */ |
147 |
|
148 |
diff --git a/x11-misc/xscreensaver/metadata.xml b/x11-misc/xscreensaver/metadata.xml |
149 |
index e6446e8ce0e8..11a85b2711e6 100644 |
150 |
--- a/x11-misc/xscreensaver/metadata.xml |
151 |
+++ b/x11-misc/xscreensaver/metadata.xml |
152 |
@@ -1,7 +1,14 @@ |
153 |
<?xml version="1.0" encoding="UTF-8"?> |
154 |
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
155 |
<pkgmetadata> |
156 |
- <!-- maintainer-needed --> |
157 |
+ <maintainer type="person"> |
158 |
+ <email>pascal.jaeger@×××××××××.de</email> |
159 |
+ <name>Pascal Jäger</name> |
160 |
+ </maintainer> |
161 |
+ <maintainer type="project" proxied="proxy"> |
162 |
+ <email>proxy-maint@g.o</email> |
163 |
+ <name>Proxy Maintainers</name> |
164 |
+ </maintainer> |
165 |
<upstream> |
166 |
<maintainer> |
167 |
<email>jwz@×××.org</email> |
168 |
|
169 |
diff --git a/x11-misc/xscreensaver/xscreensaver-6.05.ebuild b/x11-misc/xscreensaver/xscreensaver-6.05.ebuild |
170 |
new file mode 100644 |
171 |
index 000000000000..5e6910a7f3ff |
172 |
--- /dev/null |
173 |
+++ b/x11-misc/xscreensaver/xscreensaver-6.05.ebuild |
174 |
@@ -0,0 +1,243 @@ |
175 |
+# Copyright 1999-2022 Gentoo Authors |
176 |
+# Distributed under the terms of the GNU General Public License v2 |
177 |
+ |
178 |
+EAPI=8 |
179 |
+ |
180 |
+inherit autotools flag-o-matic font optfeature pam strip-linguas |
181 |
+ |
182 |
+DESCRIPTION="Modular screen saver and locker for the X Window System" |
183 |
+HOMEPAGE="https://www.jwz.org/xscreensaver/" |
184 |
+SRC_URI="https://www.jwz.org/xscreensaver/${P}.1.tar.gz" |
185 |
+ |
186 |
+# Font license mapping for folder ./hacks/fonts/ as following: |
187 |
+# clacon.ttf -- MIT |
188 |
+# gallant12x22.ttf -- unclear, hence dropped |
189 |
+# luximr.ttf -- bh-luxi (package media-fonts/font-bh-ttf) |
190 |
+# OCRAStd.otf -- unclear, hence dropped |
191 |
+# SpecialElite.ttf -- Apache-2.0 |
192 |
+LICENSE="BSD fonts? ( MIT Apache-2.0 )" |
193 |
+SLOT="0" |
194 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" |
195 |
+IUSE="elogind fonts +gdk-pixbuf gdm gles glx +gtk jpeg +locking new-login offensive pam +perl +png selinux suid systemd xinerama" |
196 |
+REQUIRED_USE=" |
197 |
+ gles? ( !glx ) |
198 |
+ ?? ( elogind systemd ) |
199 |
+ gtk? ( || ( gdk-pixbuf png ) ) |
200 |
+" |
201 |
+ |
202 |
+COMMON_DEPEND=" |
203 |
+ >=dev-libs/libxml2-2.4.6 |
204 |
+ x11-apps/appres |
205 |
+ x11-apps/xwininfo |
206 |
+ x11-libs/libX11 |
207 |
+ x11-libs/libXext |
208 |
+ x11-libs/libXi |
209 |
+ x11-libs/libXrandr |
210 |
+ x11-libs/libXt |
211 |
+ x11-libs/libXxf86vm |
212 |
+ elogind? ( sys-auth/elogind ) |
213 |
+ gdk-pixbuf? ( |
214 |
+ x11-libs/gdk-pixbuf-xlib |
215 |
+ >=x11-libs/gdk-pixbuf-2.42.0:2 |
216 |
+ ) |
217 |
+ gtk? ( >=x11-libs/gtk+-2.22.0:3 ) |
218 |
+ jpeg? ( media-libs/libjpeg-turbo:= ) |
219 |
+ locking? ( virtual/libcrypt:= ) |
220 |
+ new-login? ( |
221 |
+ gdm? ( gnome-base/gdm ) |
222 |
+ !gdm? ( || ( x11-misc/lightdm lxde-base/lxdm ) ) |
223 |
+ ) |
224 |
+ virtual/glu |
225 |
+ virtual/opengl |
226 |
+ pam? ( sys-libs/pam ) |
227 |
+ png? ( media-libs/libpng:= ) |
228 |
+ systemd? ( >=sys-apps/systemd-221 ) |
229 |
+ >=x11-libs/libXft-2.1.0 |
230 |
+ xinerama? ( x11-libs/libXinerama ) |
231 |
+" |
232 |
+# For USE="perl" see output of `qlist xscreensaver | grep bin | xargs grep '::'` |
233 |
+RDEPEND=" |
234 |
+ ${COMMON_DEPEND} |
235 |
+ media-gfx/fbida |
236 |
+ perl? ( |
237 |
+ dev-lang/perl |
238 |
+ dev-perl/libwww-perl |
239 |
+ virtual/perl-Digest-MD5 |
240 |
+ ) |
241 |
+ selinux? ( sec-policy/selinux-xscreensaver ) |
242 |
+" |
243 |
+DEPEND=" |
244 |
+ ${COMMON_DEPEND} |
245 |
+ x11-base/xorg-proto |
246 |
+" |
247 |
+BDEPEND=" |
248 |
+ dev-util/intltool |
249 |
+ sys-devel/bc |
250 |
+ sys-devel/gettext |
251 |
+ virtual/pkgconfig |
252 |
+" |
253 |
+PATCHES=( |
254 |
+ "${FILESDIR}"/${PN}-6.01-interix.patch |
255 |
+ "${FILESDIR}"/${PN}-5.31-pragma.patch |
256 |
+ "${FILESDIR}"/${PN}-6.01-gentoo.patch |
257 |
+ "${FILESDIR}"/${PN}-5.45-gcc.patch |
258 |
+ "${FILESDIR}"/${PN}-6.01-configure.ac-sandbox.patch |
259 |
+ "${FILESDIR}"/${PN}-6.01-without-gl-makefile.patch |
260 |
+ "${FILESDIR}"/${PN}-6.01-non-gtk-install.patch |
261 |
+ "${FILESDIR}"/${PN}-6.01-configure-install_sh.patch |
262 |
+ "${FILESDIR}"/${PN}-6.03-without-gl-configure.patch |
263 |
+ "${FILESDIR}"/${PN}-6.05-remove-update-icon-cache.patch |
264 |
+ "${FILESDIR}"/${PN}-6.05-configure-exit-codes.patch |
265 |
+) |
266 |
+ |
267 |
+DOCS=( README{,.hacking} ) |
268 |
+ |
269 |
+src_prepare() { |
270 |
+ default |
271 |
+ |
272 |
+ sed -i configure.ac -e '/^ALL_LINGUAS=/d' || die |
273 |
+ strip-linguas -i po/ |
274 |
+ export ALL_LINGUAS="${LINGUAS}" |
275 |
+ |
276 |
+ if use new-login && ! use gdm; then #392967 |
277 |
+ sed -i \ |
278 |
+ -e "/default_l.*1/s:gdmflexiserver -ls:${EPREFIX}/usr/libexec/lightdm/&:" \ |
279 |
+ configure{,.ac} || die |
280 |
+ fi |
281 |
+ |
282 |
+ # We are patching driver/XScreenSaver.ad.in, so let's delete the |
283 |
+ # header generated from it so that it gets back in sync during build: |
284 |
+ rm driver/XScreenSaver_ad.h || die |
285 |
+ |
286 |
+ if ! use offensive; then |
287 |
+ sed -i \ |
288 |
+ -e '/boobies/d;/boobs/d;/cock/d;/pussy/d;/viagra/d;/vibrator/d' \ |
289 |
+ hacks/barcode.c || die |
290 |
+ sed -i \ |
291 |
+ -e 's|erect penis|shuffle board|g' \ |
292 |
+ -e 's|flaccid penis|flaccid anchor|g' \ |
293 |
+ -e 's|vagina|engagement ring|g' \ |
294 |
+ -e 's|Penis|Shuttle|g' \ |
295 |
+ hacks/glx/glsnake.c || die |
296 |
+ sed -i \ |
297 |
+ 's| Stay.*fucking mask\.$||' \ |
298 |
+ hacks/glx/covid19.man \ |
299 |
+ hacks/config/covid19.xml || die |
300 |
+ eapply "${FILESDIR}/xscreensaver-6.05-teach-handsy-some-manners.patch" |
301 |
+ fi |
302 |
+ |
303 |
+ config_rpath_update "${S}"/config.rpath |
304 |
+ |
305 |
+ # Must be eauto*re*conf, to force the rebuild |
306 |
+ eautoreconf |
307 |
+} |
308 |
+ |
309 |
+src_configure() { |
310 |
+ if use ppc || use ppc64; then |
311 |
+ filter-flags -maltivec -mabi=altivec |
312 |
+ append-flags -U__VEC__ |
313 |
+ fi |
314 |
+ |
315 |
+ unset BC_ENV_ARGS #24568 |
316 |
+ |
317 |
+ # /proc/interrupts won't always have the keyboard bits needed |
318 |
+ # Not clear this does anything in 6.03+(?) but let's keep it for now in case. |
319 |
+ # (See also: configure argument) |
320 |
+ export ac_cv_have_proc_interrupts=yes |
321 |
+ |
322 |
+ # WARNING: This is NOT a normal autoconf script |
323 |
+ # Some of the --with options are NOT standard, and expect "--with-X=no" rather than "--without-X" |
324 |
+ ECONF_OPTS=( |
325 |
+ $(use_enable locking) |
326 |
+ $(use_with elogind) |
327 |
+ $(use_with gdk-pixbuf pixbuf) |
328 |
+ $(use_with gles) |
329 |
+ $(use_with glx) |
330 |
+ $(use_with gtk) |
331 |
+ $(use_with new-login login-manager) |
332 |
+ $(use_with pam) |
333 |
+ $(use_with suid setuid-hacks) |
334 |
+ $(use_with systemd) |
335 |
+ $(use_with xinerama xinerama-ext) |
336 |
+ --with-jpeg=$(usex jpeg yes no) |
337 |
+ --with-png=$(usex png yes no) |
338 |
+ --with-xft=yes |
339 |
+ --with-app-defaults="${EPREFIX}"/usr/share/X11/app-defaults |
340 |
+ --with-configdir="${EPREFIX}"/usr/share/${PN}/config |
341 |
+ --with-dpms-ext |
342 |
+ --with-hackdir="${EPREFIX}"/usr/$(get_libdir)/misc/${PN} |
343 |
+ --with-proc-interrupts |
344 |
+ --with-randr-ext |
345 |
+ --with-text-file="${EPREFIX}"/etc/gentoo-release |
346 |
+ --with-xdbe-ext |
347 |
+ --with-xf86gamma-ext |
348 |
+ --with-xf86vmode-ext |
349 |
+ --with-xinput-ext |
350 |
+ --with-xkb-ext |
351 |
+ --with-xshm-ext |
352 |
+ --without-gle |
353 |
+ --without-kerberos |
354 |
+ --without-motif |
355 |
+ --with-proc-oom |
356 |
+ --x-includes="${EPREFIX}"/usr/include |
357 |
+ --x-libraries="${EPREFIX}"/usr/$(get_libdir) |
358 |
+ ) |
359 |
+ # WARNING: This is NOT a normal autoconf script |
360 |
+ econf "${ECONF_OPTS[@]}" |
361 |
+} |
362 |
+ |
363 |
+src_compile() { |
364 |
+ # stock target is "default", which is broken in some releases. |
365 |
+ emake all |
366 |
+} |
367 |
+ |
368 |
+src_install() { |
369 |
+ use pam && dodir /etc/pam.d/ |
370 |
+ emake install_prefix="${D}" DESTDIR="${D}" GTK_SHAREDIR="${installprefix}"/usr/share/xscreensaver install |
371 |
+ |
372 |
+ if use fonts; then |
373 |
+ # Do not install fonts with unclear licensing |
374 |
+ rm -v "${ED}${FONTDIR}"/{gallant12x22.ttf,OCRAStd.otf} || die |
375 |
+ |
376 |
+ # Do not duplicate font Luxi Mono (of package media-fonts/font-bh-ttf) |
377 |
+ rm -v "${ED}${FONTDIR}"/luximr.ttf || die |
378 |
+ |
379 |
+ font_xfont_config |
380 |
+ else |
381 |
+ rm -v "${ED}${FONTDIR}"/*.{ttf,otf} || die |
382 |
+ rmdir -v "${ED}${FONTDIR}" || die #812473 |
383 |
+ fi |
384 |
+ |
385 |
+ einstalldocs |
386 |
+ |
387 |
+ if use pam; then |
388 |
+ fperms 755 /usr/bin/${PN} |
389 |
+ pamd_mimic_system ${PN} auth |
390 |
+ fi |
391 |
+ |
392 |
+ # bugs #809599, #828869 |
393 |
+ if ! use gtk; then |
394 |
+ rm "${ED}/usr/bin/xscreensaver-demo" || die |
395 |
+ fi |
396 |
+ # Makefile installs xscreensaver.service regardless of --without-systemd |
397 |
+ if ! use systemd; then |
398 |
+ rm "${ED}/usr/share/xscreensaver.service" || die |
399 |
+ fi |
400 |
+} |
401 |
+ |
402 |
+pkg_postinst() { |
403 |
+ use fonts && font_pkg_postinst |
404 |
+ |
405 |
+ # bug #811885 |
406 |
+ if ! use glx; then |
407 |
+ elog "Enable USE='glx' if OpenGL screensavers are crashing." |
408 |
+ fi |
409 |
+ |
410 |
+ optfeature 'Bitmap fonts 75dpi' media-fonts/font-adobe-75dpi |
411 |
+ optfeature 'Bitmap fonts 100dpi' media-fonts/font-adobe-100dpi |
412 |
+ optfeature 'Truetype font Luxi Mono' media-fonts/font-bh-ttf |
413 |
+} |
414 |
+ |
415 |
+pkg_postrm() { |
416 |
+ use fonts && font_pkg_postrm |
417 |
+} |