# 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 }