Line 0
Link Here
|
0 |
- |
1 |
# Copyright 2019 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 |
sys-libs/pam |
19 |
x11-libs/libX11 |
20 |
x11-libs/libXcomposite |
21 |
x11-libs/libXext |
22 |
x11-libs/libXfixes |
23 |
x11-libs/libXft |
24 |
x11-libs/libXmu |
25 |
x11-libs/libXrandr |
26 |
x11-libs/libXScrnSaver |
27 |
x11-libs/libXxf86misc |
28 |
xscreensaver? ( x11-misc/xscreensaver ) |
29 |
" |
30 |
DEPEND="${RDEPEND} |
31 |
x11-base/xorg-proto |
32 |
" |
33 |
BDEPEND="virtual/pkgconfig" |
34 |
|
35 |
src_configure() { |
36 |
local myeconfargs=( |
37 |
--prefix="${EPREFIX}"/usr |
38 |
--with-default-auth-module=auth_x11 |
39 |
--with-default-authproto-module=authproto_pam |
40 |
--without-htpasswd |
41 |
--without-mplayer |
42 |
--without-mpv |
43 |
--without-pamtester |
44 |
--without-pandoc |
45 |
--with-pam-service-name=system-auth |
46 |
) |
47 |
if use xscreensaver; then |
48 |
myeconfargs+=( |
49 |
--with-default-saver-module=saver_xscreensaver |
50 |
--with-xscreensaver="${EPREFIX}"/usr/$(get_libdir)/misc/xscreensaver |
51 |
) |
52 |
else |
53 |
myeconfargs+=( |
54 |
--with-default-saver-module=saver_blank |
55 |
--without-xscreensaver |
56 |
) |
57 |
fi |
58 |
econf "${myeconfargs[@]}" |
59 |
} |