summaryrefslogtreecommitdiff
path: root/sys-auth/pam-face-authentication/pam-face-authentication-0.3.ebuild
blob: c9bf52cd371bf9347a4ffdda6622de7d892081a1 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit cmake-utils eutils

DESCRIPTION="This is Pluggable Authentication Module for Face based Authentication"
HOMEPAGE="http://code.google.com/p/pam-face-authentication/"
SRC_URI="http://pam-face-authentication.googlecode.com/files/${P}.tar.gz"

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

DEPEND="
	>=media-libs/opencv-1.0.0
	>=sci-libs/gsl-1.9
	virtual/pam
"
RDEPEND="${DEPEND}"

DOCS=( AUTHORS ChangeLog README )

src_prepare() {
	epatch "${FILESDIR}"/${PN}-0.3-cmake.patch
	epatch "${FILESDIR}"/${PN}-0.3-opencv.patch

	cp /usr/share/OpenCV/OpenCVConfig.cmake cmake/modules/FindOpenCV.cmake || die
	sed -i cmake/modules/FindOpenCV.cmake \
		-e 's:${OpenCV_INSTALL_PATH}:/usr:' || die
}