summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2008-01-05 17:51:48 +0000
committerMarkus Ullmann <jokey@gentoo.org>2008-01-05 17:51:48 +0000
commit284018b03d4a55331a00e1037ab0007126822e9c (patch)
tree6097dde5a9076a83656f46a322c553d75488b2ea /app-emulation/virtualbox/virtualbox-9999.ebuild
parentVersion bump wrt bug #203893 thanks to x-drum (diff)
downloadgentoo-2-284018b03d4a55331a00e1037ab0007126822e9c.tar.gz
gentoo-2-284018b03d4a55331a00e1037ab0007126822e9c.tar.bz2
gentoo-2-284018b03d4a55331a00e1037ab0007126822e9c.zip
Version bump wrt bug #203893 thanks to x-drum
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'app-emulation/virtualbox/virtualbox-9999.ebuild')
-rw-r--r--app-emulation/virtualbox/virtualbox-9999.ebuild39
1 files changed, 24 insertions, 15 deletions
diff --git a/app-emulation/virtualbox/virtualbox-9999.ebuild b/app-emulation/virtualbox/virtualbox-9999.ebuild
index 9ceca73115c0..f232aeb72cce 100644
--- a/app-emulation/virtualbox/virtualbox-9999.ebuild
+++ b/app-emulation/virtualbox/virtualbox-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-9999.ebuild,v 1.21 2007/10/22 22:19:38 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-9999.ebuild,v 1.22 2008/01/05 17:51:47 jokey Exp $
-inherit eutils flag-o-matic linux-mod qt3 subversion toolchain-funcs
+inherit eutils fdo-mime flag-o-matic linux-mod qt3 subversion toolchain-funcs
DESCRIPTION="Softwarefamily of powerful x86 virtualization"
HOMEPAGE="http://www.virtualbox.org/"
@@ -11,7 +11,7 @@ ESVN_REPO_URI="http://virtualbox.org/svn/vbox/trunk"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="sdk"
+IUSE="pulseaudio sdk"
RDEPEND="!app-emulation/virtualbox-bin
!app-emulation/virtualbox-additions
@@ -22,16 +22,18 @@ RDEPEND="!app-emulation/virtualbox-bin
dev-libs/xerces-c
media-libs/libsdl
x11-libs/libXcursor
- $(qt_min_version 3.3.5)
- sys-apps/hal"
+ $(qt_min_version 3.3.5)"
DEPEND="${RDEPEND}
sys-devel/bin86
sys-devel/dev86
sys-power/iasl
- >=media-libs/alsa-lib-1.0.13"
+ >=media-libs/alsa-lib-1.0.13
+ pulseaudio? ( media-sound/pulseaudio )"
+# sys-apps/hal is required at runtime (bug #197541)
RDEPEND="${RDEPEND}
sys-apps/usermode-utilities
- net-misc/bridge-utils"
+ net-misc/bridge-utils
+ sys-apps/hal"
BUILD_TARGETS="all"
MODULE_NAMES="vboxdrv(misc:${S}/out/linux.${ARCH}/release/bin/src:${S}/out/linux.${ARCH}/release/bin/src)"
@@ -54,9 +56,14 @@ pkg_setup() {
}
src_compile() {
- cd "${S}"
- ./configure || die "configure failed"
+ local myconf
+ if ! use pulseaudio; then
+ myconf="${myconf} --disable-pulse"
+ fi
+
+ ./configure \
+ ${myconf} || die "configure failed"
source ./env.sh
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
@@ -118,15 +125,13 @@ src_install() {
newins "${FILESDIR}/${PN}-interfaces" interfaces
# desktop entry
- insinto /usr/share/pixmaps
- newins "${S}"/src/VBox/Frontends/VirtualBox/images/ico32x01.png ${PN}.png
- insinto /usr/share/applications
- doins "${FILESDIR}"/${PN}.desktop
- dosed -e "s/Version=/Version=${PV}/" /usr/share/applications/${PN}.desktop
+ newicon "${S}"/src/VBox/Frontends/VirtualBox/images/ico32x01.png ${PN}.png
+ domenu "${FILESDIR}"/${PN}.desktop
}
pkg_postinst() {
linux-mod_pkg_postinst
+ fdo-mime_desktop_database_update
elog "To launch VirtualBox just type: \"VirtualBox\""
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
@@ -137,3 +142,7 @@ pkg_postinst() {
elog "additions available for the live ebuild"
elog ""
}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}