Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xscreensaver/
Date: Wed, 01 Mar 2017 20:46:02
Message-Id: 1488401083.08a84ae4072eb3a06c6762b29788f3ff6c3d47ef.soap@gentoo
1 commit: 08a84ae4072eb3a06c6762b29788f3ff6c3d47ef
2 Author: Harri Nieminen <moikkis <AT> gmail <DOT> com>
3 AuthorDate: Mon Feb 27 16:47:14 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 20:44:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08a84ae4
7
8 x11-misc/xscreensaver: Depend on x11-libs/gdk-pixbuf[X], fixes #608982
9
10 Configure step gives following warning otherwise.
11
12 Warning: GTK version 2.24.31 was found, but at least one supporting
13 library (gdk-pixbuf-xlib-2.0) was not, so GTK can't be used.
14 Perhaps some of the development packages are not installed?
15
16 Warning: The GTK libraries do not seem to be available; the
17 `xscreensaver-demo' program requires them.
18
19 Warning: Use of GDK-Pixbuf was requested, but it was not found.
20 The XPM library is being used instead.
21
22 Some of the demos will not use images as much as they could.
23 You should consider installing GDK-Pixbuf and re-running
24 configure. (GDK-Pixbuf is recommended over XPM, as it
25 provides support for more image formats.)
26
27 Gentoo-Bug: https://bugs.gentoo.org/608982
28 Package-Manager: Portage-2.3.3, Repoman-2.3.1
29 Closes: https://github.com/gentoo/gentoo/pull/4091
30
31 x11-misc/xscreensaver/xscreensaver-5.36-r1.ebuild | 144 ++++++++++++++++++++++
32 1 file changed, 144 insertions(+)
33
34 diff --git a/x11-misc/xscreensaver/xscreensaver-5.36-r1.ebuild b/x11-misc/xscreensaver/xscreensaver-5.36-r1.ebuild
35 new file mode 100644
36 index 00000000000..2733736ca6b
37 --- /dev/null
38 +++ b/x11-misc/xscreensaver/xscreensaver-5.36-r1.ebuild
39 @@ -0,0 +1,144 @@
40 +# Copyright 1999-2017 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Id$
43 +
44 +EAPI=6
45 +inherit autotools flag-o-matic multilib pam
46 +
47 +DESCRIPTION="A modular screen saver and locker for the X Window System"
48 +HOMEPAGE="https://www.jwz.org/xscreensaver/"
49 +SRC_URI="${HOMEPAGE}${P}.tar.gz"
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
54 +IUSE="gdm jpeg new-login offensive opengl pam +perl selinux suid xinerama"
55 +
56 +COMMON_DEPEND="
57 + >=gnome-base/libglade-2
58 + dev-libs/libxml2
59 + media-libs/netpbm
60 + x11-apps/appres
61 + x11-apps/xwininfo
62 + x11-libs/gdk-pixbuf:2[X]
63 + x11-libs/gtk+:2
64 + x11-libs/libX11
65 + x11-libs/libXext
66 + x11-libs/libXi
67 + x11-libs/libXmu
68 + x11-libs/libXrandr
69 + x11-libs/libXt
70 + x11-libs/libXxf86misc
71 + x11-libs/libXxf86vm
72 + jpeg? ( virtual/jpeg:0 )
73 + new-login? (
74 + gdm? ( gnome-base/gdm )
75 + !gdm? ( || ( x11-misc/lightdm lxde-base/lxdm ) )
76 + )
77 + opengl? (
78 + virtual/glu
79 + virtual/opengl
80 + )
81 + pam? ( virtual/pam )
82 + xinerama? ( x11-libs/libXinerama )
83 +"
84 +# For USE="perl" see output of `qlist xscreensaver | grep bin | xargs grep '::'`
85 +RDEPEND="
86 + ${COMMON_DEPEND}
87 + perl? (
88 + dev-lang/perl
89 + dev-perl/libwww-perl
90 + virtual/perl-Digest-MD5
91 + )
92 + selinux? ( sec-policy/selinux-xscreensaver )
93 +"
94 +DEPEND="
95 + ${COMMON_DEPEND}
96 + dev-util/intltool
97 + sys-devel/bc
98 + sys-devel/gettext
99 + virtual/pkgconfig
100 + x11-proto/recordproto
101 + x11-proto/scrnsaverproto
102 + x11-proto/xextproto
103 + x11-proto/xf86miscproto
104 + x11-proto/xf86vidmodeproto
105 + xinerama? ( x11-proto/xineramaproto )
106 +"
107 +
108 +PATCHES=(
109 + "${FILESDIR}"/${PN}-5.05-interix.patch
110 + "${FILESDIR}"/${PN}-5.20-blurb-hndl-test-passwd.patch
111 + "${FILESDIR}"/${PN}-5.20-test-passwd-segv-tty.patch
112 + "${FILESDIR}"/${PN}-5.20-tests-miscfix.patch
113 + "${FILESDIR}"/${PN}-5.28-comment-style.patch
114 + "${FILESDIR}"/${PN}-5.31-pragma.patch
115 + "${FILESDIR}"/${PN}-5.35-gentoo.patch
116 +)
117 +
118 +src_prepare() {
119 + use offensive || PATCHES+=( "${FILESDIR}"/${PN}-5.35-offensive.patch )
120 + default
121 +
122 + mv configure.{in,ac} || die #426262
123 +
124 + sed -i configure.ac -e '/^ALL_LINGUAS=/d' || die
125 + strip-linguas -i po/
126 + export ALL_LINGUAS="${LINGUAS}"
127 +
128 + if use new-login && ! use gdm; then #392967
129 + sed -i \
130 + -e "/default_l.*1/s:gdmflexiserver -ls:${EPREFIX}/usr/libexec/lightdm/&:" \
131 + configure{,.ac} || die
132 + fi
133 +
134 + eautoconf
135 + eautoheader
136 +}
137 +
138 +src_configure() {
139 + if use ppc || use ppc64; then
140 + filter-flags -maltivec -mabi=altivec
141 + append-flags -U__VEC__
142 + fi
143 +
144 + unset BC_ENV_ARGS #24568
145 + export RPM_PACKAGE_VERSION=no #368025
146 +
147 + econf \
148 + $(use_with jpeg) \
149 + $(use_with new-login login-manager) \
150 + $(use_with opengl gl) \
151 + $(use_with pam) \
152 + $(use_with suid setuid-hacks) \
153 + $(use_with xinerama xinerama-ext) \
154 + --enable-locking \
155 + --with-configdir="${EPREFIX}"/usr/share/${PN}/config \
156 + --with-dpms-ext \
157 + --with-gtk \
158 + --with-hackdir="${EPREFIX}"/usr/$(get_libdir)/misc/${PN} \
159 + --with-pixbuf \
160 + --with-proc-interrupts \
161 + --with-randr-ext \
162 + --with-text-file="${EPREFIX}"/etc/gentoo-release \
163 + --with-x-app-defaults="${EPREFIX}"/usr/share/X11/app-defaults \
164 + --with-xdbe-ext \
165 + --with-xf86gamma-ext \
166 + --with-xf86vmode-ext \
167 + --with-xinput-ext \
168 + --with-xshm-ext \
169 + --without-gle \
170 + --without-kerberos \
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 + einstalldocs
178 +
179 + use pam && fperms 755 /usr/bin/${PN}
180 + pamd_mimic_system ${PN} auth
181 +
182 + rm -f "${ED%/}"/usr/share/${PN}/config/{electricsheep,fireflies}.xml || die
183 +}