summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-02-16 15:55:43 +0100
committerLars Wendler <polynomial-c@gentoo.org>2018-02-16 15:56:08 +0100
commitbd169bf87e74dd92cb7df5db229ad7c515cc0e1a (patch)
treeb9534f979e3b112fe26f8c550e03577896e31bc9 /app-emulation
parentapp-emulation/virtualbox: Improved USB device detection. (diff)
downloadgentoo-bd169bf87e74dd92cb7df5db229ad7c515cc0e1a.tar.gz
gentoo-bd169bf87e74dd92cb7df5db229ad7c515cc0e1a.tar.bz2
gentoo-bd169bf87e74dd92cb7df5db229ad7c515cc0e1a.zip
app-emulation/virtualbox: Some ebuild improvements.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/virtualbox/virtualbox-5.1.32.ebuild29
-rw-r--r--app-emulation/virtualbox/virtualbox-5.2.6.ebuild29
2 files changed, 34 insertions, 24 deletions
diff --git a/app-emulation/virtualbox/virtualbox-5.1.32.ebuild b/app-emulation/virtualbox/virtualbox-5.1.32.ebuild
index 698f0b56ddab..08304b19cae9 100644
--- a/app-emulation/virtualbox/virtualbox-5.1.32.ebuild
+++ b/app-emulation/virtualbox/virtualbox-5.1.32.ebuild
@@ -204,21 +204,26 @@ src_configure() {
--with-g++="$(tc-getCXX)"
--disable-dbus
--disable-kmods
+ $(usex alsa '' --disable-alsa)
+ $(usex debug --build-debug '')
+ $(usex doc '' --disable-docs)
+ $(usex java '' --disable-java)
+ $(usex lvm '' --disable-devmapper)
+ $(usex pulseaudio '' --disable-pulse)
+ $(usex python '' --disable-python)
+ $(usex vboxwebsrv --enable-webservice '')
+ $(usex vnc --enable-vnc '')
)
- 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 )
- use opengl || myconf+=( --disable-opengl )
- use pulseaudio || myconf+=( --disable-pulse )
- use python || myconf+=( --disable-python )
- use vboxwebsrv && myconf+=( --enable-webservice )
- use vnc && myconf+=( --enable-vnc )
if ! use headless ; then
- use qt5 || myconf+=( --disable-qt )
+ myconf+=(
+ $(usex opengl '' --disable-opengl)
+ $(usex qt5 '' --disable-qt)
+ )
else
- myconf+=( --build-headless --disable-opengl )
+ myconf+=(
+ --build-headless
+ --disable-opengl
+ )
fi
if use amd64 && ! has_multilib_profile ; then
myconf+=( --disable-vmmraw )
diff --git a/app-emulation/virtualbox/virtualbox-5.2.6.ebuild b/app-emulation/virtualbox/virtualbox-5.2.6.ebuild
index 46c3c3cba7a0..7133045118bf 100644
--- a/app-emulation/virtualbox/virtualbox-5.2.6.ebuild
+++ b/app-emulation/virtualbox/virtualbox-5.2.6.ebuild
@@ -204,21 +204,26 @@ src_configure() {
--with-g++="$(tc-getCXX)"
--disable-dbus
--disable-kmods
+ $(usex alsa '' --disable-alsa)
+ $(usex debug --build-debug '')
+ $(usex doc '' --disable-docs)
+ $(usex java '' --disable-java)
+ $(usex lvm '' --disable-devmapper)
+ $(usex pulseaudio '' --disable-pulse)
+ $(usex python '' --disable-python)
+ $(usex vboxwebsrv --enable-webservice '')
+ $(usex vnc --enable-vnc '')
)
- 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 )
- use opengl || myconf+=( --disable-opengl )
- use pulseaudio || myconf+=( --disable-pulse )
- use python || myconf+=( --disable-python )
- use vboxwebsrv && myconf+=( --enable-webservice )
- use vnc && myconf+=( --enable-vnc )
if ! use headless ; then
- use qt5 || myconf+=( --disable-qt )
+ myconf+=(
+ $(usex opengl '' --disable-opengl)
+ $(usex qt5 '' --disable-qt)
+ )
else
- myconf+=( --build-headless --disable-opengl )
+ myconf+=(
+ --build-headless
+ --disable-opengl
+ )
fi
if use amd64 && ! has_multilib_profile ; then
myconf+=( --disable-vmmraw )