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

inherit eutils

MY_P=VirtualBox_${PV}_Linux_x86

DESCRIPTION="Guest additions for VirtualBox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://virtualbox.org/download/${PV}/${MY_P}.run"

LICENSE="PUEL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="!app-emulation/virtualbox-bin"

RESTRICT="primaryuri"

pkg_setup() {
	check_license
}

src_unpack() {
	unpack_makeself ${A}
	unpack ./VirtualBox.tar.bz2
}

src_install() {
	insinto /opt/VirtualBox/additions
	doins "${WORKDIR}"/additions/VBoxGuestAdditions.iso
}