Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2020 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
|
6 |
inherit autotools |
7 |
|
8 |
DESCRIPTION="X11 screen lock utility with security in mind" |
9 |
HOMEPAGE="https://github.com/google/xsecurelock" |
10 |
SRC_URI="https://github.com/google/${PN}/releases/download/v${PV}/${P}.tar.gz" |
11 |
|
12 |
LICENSE="Apache-2.0" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~x86" |
15 |
IUSE="xscreensaver" |
16 |
|
17 |
RDEPEND=" |
18 |
dev-libs/libbsd |
19 |
media-libs/fontconfig |
20 |
media-libs/freetype |
21 |
sys-apps/util-linux |
22 |
sys-libs/pam |
23 |
x11-libs/libX11 |
24 |
x11-libs/libXcomposite |
25 |
x11-libs/libXext |
26 |
x11-libs/libXfixes |
27 |
x11-libs/libXft |
28 |
x11-libs/libXmu |
29 |
x11-libs/libXrandr |
30 |
x11-libs/libXScrnSaver |
31 |
xscreensaver? ( x11-misc/xscreensaver ) |
32 |
" |
33 |
DEPEND="${RDEPEND} |
34 |
x11-base/xorg-proto |
35 |
" |
36 |
BDEPEND="virtual/pkgconfig" |
37 |
|
38 |
src_prepare() { |
39 |
default |
40 |
eautoreconf |
41 |
} |
42 |
|
43 |
src_configure() { |
44 |
local myeconfargs=( |
45 |
--prefix="${EPREFIX}"/usr |
46 |
--with-default-auth-module=auth_x11 |
47 |
--with-default-authproto-module=authproto_pam |
48 |
--without-htpasswd |
49 |
--without-mplayer |
50 |
--without-mpv |
51 |
--without-pamtester |
52 |
--without-pandoc |
53 |
--without-xf86misc |
54 |
--with-pam-service-name=system-auth |
55 |
) |
56 |
if use xscreensaver; then |
57 |
myeconfargs+=( |
58 |
--with-default-saver-module=saver_xscreensaver |
59 |
--with-xscreensaver="${EPREFIX}"/usr/$(get_libdir)/misc/xscreensaver |
60 |
) |
61 |
else |
62 |
myeconfargs+=( |
63 |
--with-default-saver-module=saver_blank |
64 |
--without-xscreensaver |
65 |
) |
66 |
fi |
67 |
econf "${myeconfargs[@]}" |
68 |
} |