--- app-emulation/vagrant/vagrant-1.2.2.ebuild 2013-04-24 07:34:47.000000000 +0200 +++ app-emulation/vagrant/vagrant-1.2.2.ebuild 2013-05-07 15:00:07.019876278 +0200 @@ -19,14 +19,14 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86 ~x64-macos" -IUSE="test" +IUSE="+virtualbox test" # Missing ebuild for contest RESTRICT="test" RDEPEND="${RDEPEND} net-misc/curl - !x64-macos? ( || ( app-emulation/virtualbox app-emulation/virtualbox-bin ) )" + virtualbox? ( !x64-macos? ( || ( app-emulation/virtualbox app-emulation/virtualbox-bin ) ) )" ruby_add_rdepend " >=dev-ruby/childprocess-0.3.7 @@ -55,8 +55,16 @@ epatch "${FILESDIR}"/${PN}-1.2.1-no-warning.patch } +each_ruby_install() { + if ! use virtualbox ; then + rm -rf plugins/providers/virtualbox/ + fi + + each_fakegem_install +} + pkg_postinst() { - if use x64-macos ; then + if use virtualbox && use x64-macos ; then ewarn ewarn "For Mac OS X prefixes, you must install the virtualbox" ewarn "package specifically for OS X which can be found at:"