From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9825E15939F for ; Thu, 11 Jul 2024 16:30:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9748E2A36; Thu, 11 Jul 2024 16:30:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6689E2A36 for ; Thu, 11 Jul 2024 16:30:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B1694342FB1 for ; Thu, 11 Jul 2024 16:30:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AE6821E1E for ; Thu, 11 Jul 2024 16:29:59 +0000 (UTC) From: "Eli Schwartz" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eli Schwartz" Message-ID: <1720715310.5d2dc0c4af7556db0c8ae19f57f09d757a2766b5.eschwartz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/genymotion-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/genymotion-bin/Manifest app-emulation/genymotion-bin/genymotion-bin-3.7.1.ebuild X-VCS-Directories: app-emulation/genymotion-bin/ X-VCS-Committer: eschwartz X-VCS-Committer-Name: Eli Schwartz X-VCS-Revision: 5d2dc0c4af7556db0c8ae19f57f09d757a2766b5 X-VCS-Branch: master Date: Thu, 11 Jul 2024 16:29:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fc0527aa-5ea7-449f-a073-f66daedbc4a9 X-Archives-Hash: 425d9b373b029dba5b688bd7ae7eb058 commit: 5d2dc0c4af7556db0c8ae19f57f09d757a2766b5 Author: Marco Genasci gmail com> AuthorDate: Fri Jun 14 04:26:20 2024 +0000 Commit: Eli Schwartz gentoo org> CommitDate: Thu Jul 11 16:28:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d2dc0c4 app-emulation/genymotion-bin: bump version to 3.7.1 Closes: https://bugs.gentoo.org/934144 Signed-off-by: Marco Genasci gmail.com> Signed-off-by: Eli Schwartz gentoo.org> app-emulation/genymotion-bin/Manifest | 1 + .../genymotion-bin/genymotion-bin-3.7.1.ebuild | 145 +++++++++++++++++++++ 2 files changed, 146 insertions(+) diff --git a/app-emulation/genymotion-bin/Manifest b/app-emulation/genymotion-bin/Manifest index 573dc28b4118..b738555effd6 100644 --- a/app-emulation/genymotion-bin/Manifest +++ b/app-emulation/genymotion-bin/Manifest @@ -1 +1,2 @@ DIST genymotion-3.6.0-linux_x64.bin 103911915 BLAKE2B 2c7174404b29a71174fc04de96285475e1800880f79fb70c455539c2a658a305a4cd8a541c545024c3130458081b5a94e493478a47126905fae5e104afbd3efd SHA512 ff05bb91edf05c38d68e3dec16dd21f6fcc50bf31e03411f46b9a3a71ca3f9139705e54b8650c8ab44295a2ebb49aa262e169faecea1f6bb8dd385785440f245 +DIST genymotion-3.7.1-linux_x64.bin 103767728 BLAKE2B 08ebd35ed27dc6f197d442752935541cd932a06776c49dc4a2352d2cb2fe746472d658e12d4b2115767752db267d0c5da35e5e3ddcc489eb8a15f88ba6d23d64 SHA512 7a6c91864399ec9e2ee66094b58135c0ffb464eddc46642da225d0929f8247192324a6cb544cfd771bb389bb517c3a92e5da2d19747e0c67284cbd6d6c0b4f5e diff --git a/app-emulation/genymotion-bin/genymotion-bin-3.7.1.ebuild b/app-emulation/genymotion-bin/genymotion-bin-3.7.1.ebuild new file mode 100644 index 000000000000..f2d0e0a82345 --- /dev/null +++ b/app-emulation/genymotion-bin/genymotion-bin-3.7.1.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2024 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://www.genymotion.com" +SRC_URI="https://dl.genymotion.com/releases/${MY_P}/${BIN_ARCHIVE}" + +S="${WORKDIR}" + +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 + 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 mirror" + +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/* +" + +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" + + dodir /opt/"${MY_PN}"/qemu/bin + dosym -r /usr/bin/qemu-system-x86_64 /opt/"${MY_PN}"/qemu/x86_64/bin/qemu-system-x86_64 + dosym -r /usr/bin/qemu-img /opt/"${MY_PN}"/qemu/x86_64/bin/qemu-img + + 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 QEMU hypervisor." + ewarn "So you should run command:" + ewarn "" + ewarn " gmtool config --hypervisor virtualbox" + ewarn "" + ewarn "to change hypervisor to VirtualBox" + fi +}