summaryrefslogtreecommitdiff
blob: c18f8b76915fb2abd1766efa01c93835d230daec (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/slimlock/slimlock-0.11-r1.ebuild,v 1.1 2012/08/18 18:57:21 titanofold Exp $

EAPI=4

inherit eutils toolchain-funcs

DESCRIPTION="Screen locker borrowing the interface of the SLiM login-manager"
HOMEPAGE="http://joelburget.com/slimlock/"
SRC_URI="http://github.com/joelburget/slimlock/tarball/v${PV} -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""

RDEPEND=">=media-libs/freetype-2
		 media-libs/imlib2[X,png,jpeg]
		 virtual/pam
		 x11-libs/libX11
		 x11-libs/libXext
		 x11-libs/libXft
		 x11-misc/slim[pam]
"
DEPEND="${RDEPEND}"

src_unpack() {
	unpack ${A}

	# GitHub tarballs the package under a randomly named TLD.
	mv * ${P}
}

src_prepare() {
	epatch "${FILESDIR}/${P}-gcc47.patch"
}

src_compile() {
	emake CC="$(tc-getCC)" \
		CXX="$(tc-getCXX)" \
		CFGDIR="${EPREFIX%/}/etc" \
		MANDIR="${EPREFIX%/}/usr/share/man"
		PREFIX="${EPREFIX%/}/usr"
}