mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-emulation/genymotion-bin: removed old
Signed-off-by: Marco Genasci <fedeliallalinea@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33055 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST genymotion-3.4.0-linux_x64.bin 104125579 BLAKE2B 561feb942b69b2e1995dcbfa573684bd50d9b77d0c946288883a179323a2e64ce59b24d6cb015fb90fca0890085d67797c183911bd697e05558c6cfd865b44d7 SHA512 747e4dd4d3a844d19255092cc900990029bbefe12db4080ae57332ae1e37ea46a2d3f38d8007ee39bdab730878034285f34b713a611629ec936a303276a4700d
|
||||
DIST genymotion-3.6.0-linux_x64.bin 103911915 BLAKE2B 2c7174404b29a71174fc04de96285475e1800880f79fb70c455539c2a658a305a4cd8a541c545024c3130458081b5a94e493478a47126905fae5e104afbd3efd SHA512 ff05bb91edf05c38d68e3dec16dd21f6fcc50bf31e03411f46b9a3a71ca3f9139705e54b8650c8ab44295a2ebb49aa262e169faecea1f6bb8dd385785440f245
|
||||
|
||||
@@ -1,160 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit bash-completion-r1 desktop pax-utils
|
||||
|
||||
MY_PN="${PN/-bin}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
BIN_ARCHIVE="${MY_P}-linux_x64.bin"
|
||||
|
||||
DESCRIPTION="Complete set of tools that provide a virtual environment for Android"
|
||||
HOMEPAGE="https://genymotion.com"
|
||||
SRC_URI="${BIN_ARCHIVE}"
|
||||
|
||||
LICENSE="genymotion"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
|
||||
RDEPEND="app-arch/lz4
|
||||
app-crypt/mit-krb5
|
||||
|| (
|
||||
app-emulation/qemu[qemu_softmmu_targets_x86_64]
|
||||
app-emulation/virtualbox
|
||||
)
|
||||
|| (
|
||||
dev-libs/openssl-compat:1.1.1
|
||||
=dev-libs/openssl-1.1*:0
|
||||
)
|
||||
dev-libs/glib:2
|
||||
=dev-libs/hiredis-1.0*
|
||||
media-libs/alsa-lib
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
media-libs/libpulse
|
||||
media-libs/gst-plugins-base:1.0
|
||||
media-libs/gstreamer:1.0
|
||||
sys-apps/dbus
|
||||
sys-libs/zlib
|
||||
virtual/opengl
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libxkbcommon[X]
|
||||
x11-libs/libXmu
|
||||
x11-libs/xcb-util
|
||||
x11-libs/xcb-util-image
|
||||
x11-libs/xcb-util-keysyms
|
||||
x11-libs/xcb-util-renderutil
|
||||
x11-libs/xcb-util-wm
|
||||
"
|
||||
BDEPEND="x11-misc/xdg-utils"
|
||||
|
||||
RESTRICT="bindist fetch"
|
||||
S="${WORKDIR}"
|
||||
|
||||
QA_PREBUILT="
|
||||
opt/${MY_PN}/*.so*
|
||||
opt/${MY_PN}/imageformats/*.so
|
||||
opt/${MY_PN}/plugins/*.so*
|
||||
opt/${MY_PN}/${MY_PN}
|
||||
opt/${MY_PN}/genyshell
|
||||
opt/${MY_PN}/player
|
||||
opt/${MY_PN}/${MY_PN}adbtunneld
|
||||
opt/${MY_PN}/gmtool
|
||||
opt/${MY_PN}/tools/*
|
||||
"
|
||||
|
||||
pkg_nofetch() {
|
||||
einfo
|
||||
einfo "Please visit"
|
||||
einfo
|
||||
einfo " https://www.genymotion.com/download/"
|
||||
einfo
|
||||
einfo "and download "
|
||||
einfo
|
||||
einfo " ${BIN_ARCHIVE}"
|
||||
einfo
|
||||
einfo "which must be placed in DISTDIR directory."
|
||||
einfo
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
cp "${DISTDIR}/${BIN_ARCHIVE}" "${WORKDIR}" || die "cp failed"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
chmod +x ${BIN_ARCHIVE} || die "chmod failed"
|
||||
yes | ./${BIN_ARCHIVE} > /dev/null || die "unpack failed"
|
||||
|
||||
# removed windows line for bashcompletion
|
||||
sed -i "/complete -F _gmtool gmtool.exe/d" "${MY_PN}/completion/bash/gmtool.bash" || die "sed failed"
|
||||
|
||||
# copy .desktop file in S directory
|
||||
sed -i -e "s:Icon.*:Icon=/opt/${MY_PN}/icons/genymotion-logo.png:" \
|
||||
-e "s:Exec.*:Exec=/opt/${MY_PN}/genymotion:" \
|
||||
"${HOME}"/.local/share/applications/genymobile-genymotion.desktop || die "sed failed"
|
||||
cp "${HOME}"/.local/share/applications/genymobile-genymotion.desktop "${S}" || die "copy .desktop file"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/"${MY_PN}"
|
||||
exeinto /opt/"${MY_PN}"
|
||||
|
||||
# Use qt bundled
|
||||
doins -r "${MY_PN}"/{audio,geoservices,Qt,QtGraphicalEffects,QtLocation,QtPositioning,QtQuick,QtQuick.2}
|
||||
doins -r "${MY_PN}"/{icons,imageformats,mediaservice,platforms,plugins,sqldrivers,translations,xcbglintegrations}
|
||||
doins "${MY_PN}"/libQt*
|
||||
doins "${MY_PN}"/qt.conf
|
||||
doins "${MY_PN}"/libicu*
|
||||
|
||||
doexe "${MY_PN}"/{libcom,librendering,libshadertranslator,libswscale,libavutil}.so*
|
||||
# android library
|
||||
doexe "${MY_PN}"/{libOpenglRender,libemugl_logger,libemugl_common}.so*
|
||||
|
||||
find "${ED}/opt/${MY_PN}" -name "*.so*" -type f -exec chmod +x {} \; || die "Change .so permission failed"
|
||||
|
||||
doexe "${MY_PN}"/{genymotion,genyshell,player,gmtool}
|
||||
|
||||
# the android-sdk-update-manager have some bugs and lacks maintenance
|
||||
# so installs bundled version
|
||||
exeinto /opt/"${MY_PN}"/tools
|
||||
doexe "${MY_PN}"/tools/{aapt,adb,glewinfo}
|
||||
exeinto /opt/"${MY_PN}"/tools/lib64
|
||||
doexe "${MY_PN}"/tools/lib64/libc++.so
|
||||
|
||||
pax-mark -m "${ED}/opt/${MY_PN}/genymotion"
|
||||
pax-mark -m "${ED}/opt/${MY_PN}/gmtool"
|
||||
|
||||
dosym -r /opt/"${MY_PN}"/genyshell /opt/bin/genyshell
|
||||
dosym -r /opt/"${MY_PN}"/genymotion /opt/bin/genymotion
|
||||
dosym -r /opt/"${MY_PN}"/gmtool /opt/bin/gmtool
|
||||
|
||||
newbashcomp "${MY_PN}/completion/bash/gmtool.bash" gmtool
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins "${MY_PN}/completion/zsh/_gmtool"
|
||||
|
||||
if has_version app-emulation/qemu ; then
|
||||
dodir /opt/"${MY_PN}"/qemu/bin
|
||||
dosym -r /usr/bin/qemu-system-x86_64 /opt/"${MY_PN}"/qemu/bin/qemu-system-x86_64
|
||||
dosym -r /usr/bin/qemu-img /opt/"${MY_PN}"/qemu/bin/qemu-img
|
||||
fi
|
||||
|
||||
domenu genymobile-genymotion.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if has_version app-emulation/qemu && ! has_version app-emulation/virtualbox ; then
|
||||
ewarn "By default Genymotion is configured to work with VirtualBox hypervisor."
|
||||
ewarn "So you should run command:"
|
||||
ewarn ""
|
||||
ewarn " gmtool config --hypervisor qemu"
|
||||
ewarn ""
|
||||
ewarn "to change hypervisor to QEMU."
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user