Skip to content

Commit

Permalink
app-emulation/virtualbox: Install more icons.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.0
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Lars Wendler committed Jul 14, 2016
1 parent 0f26951 commit 5bb6ca1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app-emulation/virtualbox/virtualbox-5.1.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ src_install() {
use debug && binpath="debug"
cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die

local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile
local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile

vbox_inst() {
local binary="${1}"
Expand Down Expand Up @@ -351,6 +351,16 @@ src_install() {
newicon ${PN}-48px.png ${PN}.png
doicon -s scalable ${PN}.svg
popd &>/dev/null || die
pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
for size in 16 24 32 48 64 72 96 128 256 512 ; do
for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
icofile="${PN}-${ico}-${size}px.png"
if [[ -f "${icofile}" ]] ; then
newicon -s ${size} ${icofile} ${PN}-${ico}.png
fi
done
done
popd &>/dev/null || die
fi

if use lvm ; then
Expand Down

0 comments on commit 5bb6ca1

Please sign in to comment.