2012-03-11 10:53:16 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-06-18 18:12:02 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-tools/vmware-tools-8.4.9.744570.ebuild,v 1.1 2012/06/17 13:10:27 vadimk Exp $
|
2012-03-11 10:53:16 +04:00
|
|
|
|
|
|
|
inherit versionator vmware-bundle
|
|
|
|
|
|
|
|
MY_PV="$(replace_version_separator 3 - $PV)"
|
2012-06-18 18:12:02 +04:00
|
|
|
BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/3.1.$(($(get_version_component_range 3)-3))/$(get_version_component_range 4)/linux/packages/"
|
2012-03-11 10:53:16 +04:00
|
|
|
|
|
|
|
DESCRIPTION="VMware Tools for guest operating systems"
|
|
|
|
HOMEPAGE="http://www.vmware.com/products/player/"
|
|
|
|
|
|
|
|
LICENSE="vmware"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="-* ~amd64 ~x86"
|
|
|
|
RESTRICT="mirror"
|
|
|
|
IUSE=""
|
|
|
|
|
2012-06-18 18:12:02 +04:00
|
|
|
DEPEND="!<app-emulation/vmware-workstation-7"
|
2012-03-11 10:53:16 +04:00
|
|
|
RDEPEND=""
|
|
|
|
|
|
|
|
IUSE_VMWARE_GUEST="freebsd linux netware solaris windows winPre2k"
|
|
|
|
|
|
|
|
VM_INSTALL_DIR="/opt/vmware"
|
|
|
|
|
|
|
|
for guest in ${IUSE_VMWARE_GUEST} ; do
|
|
|
|
SRC_URI+=" vmware_guest_${guest}? (
|
|
|
|
amd64? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.x86_64.component.tar )
|
|
|
|
x86? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.i386.component.tar )
|
|
|
|
)"
|
|
|
|
IUSE+=" vmware_guest_${guest}"
|
|
|
|
done ; unset guest
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
local arch
|
|
|
|
if use x86 ; then arch='i386'
|
|
|
|
elif use amd64 ; then arch='x86_64'
|
|
|
|
fi
|
|
|
|
local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do
|
|
|
|
if use "vmware_guest_${guest}" ; then
|
|
|
|
local component="vmware-tools-${guest}-${MY_PV}.${arch}.component"
|
|
|
|
unpack "${component}.tar"
|
|
|
|
vmware-bundle_extract-component "${component}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto "${VM_INSTALL_DIR}"/lib/vmware/isoimages
|
|
|
|
local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do
|
|
|
|
if use "vmware_guest_${guest}" ; then
|
|
|
|
doins "${guest}".iso{,.sig}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|