blob: 8700a7948e51134ea1a87eeef79c3315bca0a87f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xlockmore/xlockmore-5.23-r1.ebuild,v 1.4 2007/05/02 17:57:00 jer Exp $
inherit eutils pam flag-o-matic
IUSE="crypt debug nas esd motif opengl truetype gtk pam xlockrc unicode"
DESCRIPTION="Just another screensaver application for X"
SRC_URI="http://ftp.tux.org/pub/tux/bagleyd/${PN}/${P}.tar.bz2"
HOMEPAGE="http://www.tux.org/~bagleyd/xlockmore.html"
SLOT="0"
LICENSE="BSD GPL-2"
KEYWORDS="amd64 hppa ~ppc ppc64 ~sparc ~x86"
RDEPEND="opengl? ( media-libs/mesa )
x11-libs/libX11
x11-libs/libXmu
x11-libs/libXext
x11-libs/libXt
x11-libs/libXpm
media-libs/freetype
pam? ( virtual/pam )
nas? ( media-libs/nas )
esd? ( media-sound/esound )
motif? ( x11-libs/openmotif )
gtk? ( >=x11-libs/gtk+-2 )"
DEPEND="${RDEPEND}
x11-proto/xineramaproto"
src_compile() {
econf --enable-appdefaultdir=/usr/share/X11/app-defaults \
--enable-vtlock \
--without-ftgl \
$(use_enable crypt) \
$(use_with opengl) \
$(use_with opengl gltt) \
$(use_with opengl mesa) \
$(use_enable xlockrc xlockrc) \
$(use_enable unicode use-mb) \
$(use_enable pam) \
$(use_with truetype ttf) \
$(use_with gtk gtk2) \
$(use_with motif) \
$(use_with esd esound) \
$(use_with nas) \
$(use_with debug editres)
# fixes suid-with-lazy-bindings problem
append-flags $(bindnow-flags)
emake || die "emake failed."
}
src_install() {
einstall xapploaddir="${D}"/usr/share/X11/app-defaults \
|| die "einstall failed."
# install pam.d file and unset setuid root
pamd_mimic_system xlock auth
use pam && chmod 755 "${D}"/usr/bin/xlock
# ugly documentation hack to make it right
mv xlock/xlock.man xlock.1
doman xlock.1
rm "${D}"/usr/share/man/xlock.1
dohtml docs/*.html
rm docs/*.html
dodoc README docs/*
}
|