summaryrefslogtreecommitdiff
blob: 4051a0f527e7e698434f12a3ec5d51b1ce9c3f02 (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
46
47
48
49
50
51
52
53
54
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 

EAPI=2

inherit eutils

DESCRIPTION=""
HOMEPAGE="http://http://nuicode.com/projects/ccv"
SRC_URI="amd64? ( http://nuicode.com/attachments/download/186/ccv-1.4.0-lin-64-bin.tar.gz )
	x86? ( http://nuicode.com/attachments/download/184/ccv-1.4-lin-32-bin.tar.gz
	)"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror"

DEPEND=""

RDEPEND=""

#S=${WORKDIR}

src_unpack() {
	unpack "${A}"

	EXTRACT_DIR=${WORKDIR}

	if use amd64 ; then
		EXTRACT_DIR=${WORKDIR}/ccv-1.4.0-lin-64-bin
	fi

	if use x86 ; then
		EXTRACT_DIR=${WORKDIR}/ccv-1.4.lin-bin
	fi

	mv ${EXTRACT_DIR}/* ${WORKDIR}

	rmdir ${EXTRACT_DIR}
}

src_install() {
	insinto /opt/ccv

	doins -r * || die

	fperms 0755 /opt/ccv/clickToLaunchApp.sh
	fperms 0755 /opt/ccv/Community_Core_Vision/clickToLaunchApp.sh
	fperms 0755 /opt/ccv/Community_Core_Vision/Community_Core_Vision
}