From c2878332ae1828ea09a03dae6b4fe1c622816155 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Thu, 9 May 2019 15:06:01 +0200 Subject: [PATCH] app-emulation/virtualbox: Minor ebuild improvements Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Lars Wendler --- app-emulation/virtualbox/virtualbox-6.0.6-r1.ebuild | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app-emulation/virtualbox/virtualbox-6.0.6-r1.ebuild b/app-emulation/virtualbox/virtualbox-6.0.6-r1.ebuild index ac99dd66bda2..627195b1a4d6 100644 --- a/app-emulation/virtualbox/virtualbox-6.0.6-r1.ebuild +++ b/app-emulation/virtualbox/virtualbox-6.0.6-r1.ebuild @@ -262,9 +262,7 @@ src_compile() { } src_install() { - local binpath="release" - use debug && binpath="debug" - cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die + cd "${S}"/out/linux.${ARCH}/$(usex debug debug release)/bin || die local vbox_inst_path="/usr/$(get_libdir)/${PN}" each size ico icofile @@ -489,7 +487,7 @@ pkg_postinst() { elog "" elog "WARNING!" elog "Without USE=udev, USB devices will likely not work in ${PN}." - elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then + elif [[ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ]] ; then elog "" elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\"" elog "or else USB in ${PN} won't work." -- 2.26.2