summaryrefslogtreecommitdiff
blob: f352ccf5df3f451dc73e6422c6ef258b76ff7bb5 (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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

NEED_PYTHON=2.5

inherit distutils eutils

DESCRIPTION="ctypes-opencv is a package that brings OpenCV to Python."
HOMEPAGE="http://code.google.com/p/ctypes-opencv"
SRC_URI="http://${PN}.googlecode.com/files/${P}-src.7z"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE=""

RDEPEND="virtual/python
         <=media-libs/opencv-1.1.0_pre1[-python]"
DEPEND="${RDEPEND}
		dev-python/setuptools
		app-arch/p7zip"

S="${WORKDIR}/src"
DOCS="AUTHORS README THANKS TODO"

src_unpack() {
	7z x "${DISTDIR}/${A}" || die "unpack failed"
}

src_install() {
	distutils_src_install
	rm -rf "${D}/usr/doc"
}