virtualbox-extpack-oracle-5.0.32.112930.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils multilib versionator
  5. MAIN_PV="$(get_version_component_range 1-3)"
  6. if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
  7. MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
  8. DEP_PV="${MY_PV}"
  9. MY_PV="${MY_PV/beta/BETA}"
  10. MY_PV="${MY_PV/rc/RC}"
  11. else
  12. MY_PV="${MAIN_PV}"
  13. DEP_PV="${MAIN_PV}"
  14. fi
  15. VBOX_BUILD_ID="$(get_version_component_range 4)"
  16. MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
  17. MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
  18. DESCRIPTION="PUEL extensions for VirtualBox"
  19. HOMEPAGE="http://www.virtualbox.org/"
  20. SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
  21. LICENSE="PUEL"
  22. SLOT="0"
  23. KEYWORDS="amd64 x86"
  24. IUSE=""
  25. RESTRICT="mirror strip"
  26. RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
  27. S="${WORKDIR}"
  28. QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
  29. src_install() {
  30. insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
  31. doins -r linux.${ARCH}
  32. doins ExtPack* PXE-Intel.rom
  33. }