summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-05-15 21:36:22 +0200
committerLars Wendler <polynomial-c@gentoo.org>2016-05-15 21:36:52 +0200
commit93b660ef48ae9a57161da4f53bc9879cd7fcb6c2 (patch)
treed15fd33d2298b283119d4c9b30e2e8a136d25388 /app-emulation/virtualbox
parentapp-antivirus/clamav-unofficial-sigs: replace v5.0.6 with v5.3.1. (diff)
downloadgentoo-93b660ef48ae9a57161da4f53bc9879cd7fcb6c2.tar.gz
gentoo-93b660ef48ae9a57161da4f53bc9879cd7fcb6c2.tar.bz2
gentoo-93b660ef48ae9a57161da4f53bc9879cd7fcb6c2.zip
app-emulation/virtualbox: Added debug USE flag (bug #583052).
Package-Manager: portage-2.2.28 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox')
-rw-r--r--app-emulation/virtualbox/virtualbox-5.0.20.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/app-emulation/virtualbox/virtualbox-5.0.20.ebuild b/app-emulation/virtualbox/virtualbox-5.0.20.ebuild
index bf4cc33e047b..6b54510865d7 100644
--- a/app-emulation/virtualbox/virtualbox-5.0.20.ebuild
+++ b/app-emulation/virtualbox/virtualbox-5.0.20.ebuild
@@ -20,7 +20,7 @@ HOMEPAGE="http://www.virtualbox.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="alsa doc headless java libressl lvm pam pulseaudio +opengl python +qt4 +sdk +udev vboxwebsrv vnc"
+IUSE="alsa debug doc headless java libressl lvm pam pulseaudio +opengl python +qt4 +sdk +udev vboxwebsrv vnc"
RDEPEND="!app-emulation/virtualbox-bin
~app-emulation/virtualbox-modules-${PV}
@@ -182,6 +182,7 @@ src_prepare() {
src_configure() {
local myconf
use alsa || myconf+=( --disable-alsa )
+ use debug && myconf+=( --build-debug )
use doc || myconf+=( --disable-docs )
use java || myconf+=( --disable-java )
use lvm || myconf+=( --disable-devmapper )
@@ -230,7 +231,9 @@ src_compile() {
}
src_install() {
- cd "${S}"/out/linux.${ARCH}/release/bin || die
+ local binpath="release"
+ use debug && binpath="debug"
+ cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile