summaryrefslogtreecommitdiff
blob: 63c3e599c51a6284fb2c33b60bbd066267cfb778 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3lock/i3lock-2.2.ebuild,v 1.3 2012/03/13 12:12:20 ago Exp $

EAPI=4

inherit eutils toolchain-funcs

DESCRIPTION="Simple screen locker"
HOMEPAGE="http://i3wm.org/i3lock/"
SRC_URI="http://i3wm.org/${PN}/${P}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="+cairo"

RDEPEND="virtual/pam
	x11-libs/xcb-util-keysyms
	x11-libs/xcb-util-image
	cairo? ( x11-libs/cairo[xcb] )"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"
DOCS=( README )

pkg_setup() {
	tc-export CC
}

src_prepare() {
	sed -i -e 's:login:system-auth:' ${PN}.pam || die
}

src_configure() {
	use cairo || export NOLIBCAIRO=1
}

src_install() {
	default
	doman ${PN}.1
}