/[gentoo-x86]/x11-misc/alock/alock-60-r3.ebuild
Gentoo

Contents of /x11-misc/alock/alock-60-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Jun 5 10:50:59 2010 UTC (4 years, 6 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
Remove LICENSE file from dodoc
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/alock/alock-60-r3.ebuild,v 1.8 2010/06/05 10:19:09 hwoarang Exp $
4
5 EAPI="2"
6
7 inherit eutils
8
9 DESCRIPTION="locks the local X display until a password is entered"
10 HOMEPAGE="http://code.google.com/p/alock/
11 http://darkshed.net/projects/alock"
12 SRC_URI="http://alock.googlecode.com/files/alock-svn-${PV}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ~ppc x86"
17 IUSE="imlib pam"
18
19 DEPEND="x11-libs/libX11
20 x11-libs/libXext
21 x11-libs/libXpm
22 x11-libs/libXrender
23 x11-libs/libXcursor
24 imlib? ( media-libs/imlib2[X] )
25 pam? ( virtual/pam )"
26 RDEPEND="${DEPEND}"
27
28 S=${WORKDIR}/alock-svn-${PV}
29
30 src_prepare() {
31 sed -i 's|\$(DESTDIR)\$(prefix)/man|\$(DESTDIR)\$(prefix)/share/man|g' \
32 "${S}"/Makefile || die "sed failed"
33 }
34
35 src_configure() {
36 econf --with-all \
37 $(use_with pam) \
38 $(use_with imlib imlib2) \
39 || die "configure failed"
40 }
41
42 src_install() {
43 dobin src/alock || die
44 doman alock.1 || die
45 dodoc README.txt CHANGELOG.txt || die
46
47 insinto /usr/share/alock/xcursors
48 doins contrib/xcursor-* || die
49
50 insinto /usr/share/alock/bitmaps
51 doins bitmaps/* || die
52 }
53
54 pkg_postinst() {
55 if ! use pam; then
56 einfo "pam support disabled"
57 einfo "In order to authenticate against /etc/passwd, "
58 einfo "/usr/bin/alock will need to be SUID"
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20