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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1F16B138334 for ; Mon, 2 Dec 2019 22:28:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3600DE0826; Mon, 2 Dec 2019 22:28:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41552E0826 for ; Mon, 2 Dec 2019 22:28:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E261334D6E6 for ; Mon, 2 Dec 2019 22:28:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 34F818CA for ; Mon, 2 Dec 2019 22:28:53 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1575325681.27db12d19d1baa522ee1ec5a227c8e1569327f0b.asturm@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.0.3.ebuild X-VCS-Directories: app-emulation/genymotion-bin/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 27db12d19d1baa522ee1ec5a227c8e1569327f0b X-VCS-Branch: master Date: Mon, 2 Dec 2019 22:28:53 +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: 820223be-51e6-497d-a352-f0da6a14952b X-Archives-Hash: f568ef4cef66b1aa8d9fa42ce20349fb commit: 27db12d19d1baa522ee1ec5a227c8e1569327f0b Author: Marco Genasci gmail com> AuthorDate: Thu Oct 10 05:31:20 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Dec 2 22:28:01 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27db12d1 app-emulation/genymotion-bin: bump to 3.0.3 version Package-Manager: Portage-2.3.76, Repoman-2.3.16 Bug: https://bugs.gentoo.org/697104 Signed-off-by: Marco Genasci gmail.com> Closes: https://github.com/gentoo/gentoo/pull/13244 Signed-off-by: Andreas Sturmlechner gentoo.org> app-emulation/genymotion-bin/Manifest | 1 + .../genymotion-bin/genymotion-bin-3.0.3.ebuild | 123 +++++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/app-emulation/genymotion-bin/Manifest b/app-emulation/genymotion-bin/Manifest index 2b2ccdbf258..c0e4cd7c7d9 100644 --- a/app-emulation/genymotion-bin/Manifest +++ b/app-emulation/genymotion-bin/Manifest @@ -1 +1,2 @@ DIST genymotion-3.0.2-linux_x64.bin 38744066 BLAKE2B 4c98cdc8d5a5cd98192260893b39dd838bba5903d590268d53223c1ebe712296cf25aa638c16de39ea4f83a5fd8717edbab7c043ff6a12e6455862ecd25ca7cc SHA512 5075d9a9c6c5e84ff90e05e4fa70db98cf89ad25e8765566176b94559f60cc170e383a02f50c752fb63859b757645390d977081d2f79ce0fab8607ebf3e08e01 +DIST genymotion-3.0.3-linux_x64.bin 38760629 BLAKE2B 1853f5f631c8343eafa92fcd7fd42ad7663e78cc8a3848f7aa9d2ccf61009fc4e8955930142af35c4f2f9bbb9704260882e65fa0dc5e43c5d8d45e14f43218bc SHA512 8a3d5f57cb6c5018ae78940187a8c48bc19a7627f72ab746fc361afd3400a14b4f6ce2d036c828bd238b65d5346cffdf2dd55b5177c6d909b7fd749f4088d748 diff --git a/app-emulation/genymotion-bin/genymotion-bin-3.0.3.ebuild b/app-emulation/genymotion-bin/genymotion-bin-3.0.3.ebuild new file mode 100644 index 00000000000..93ee154e77c --- /dev/null +++ b/app-emulation/genymotion-bin/genymotion-bin-3.0.3.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +DEPEND="" +RDEPEND="|| ( >=app-emulation/virtualbox-5.0.28 >=app-emulation/virtualbox-bin-5.0.28 ) + virtual/opengl + || ( + dev-libs/openssl-compat:1.0.0 + =dev-libs/openssl-1.0*:0 + ) + dev-libs/hiredis:0/0.14 + sys-apps/util-linux +" +BDEPEND=">=dev-util/patchelf-0.9_p20180129" + +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 +" + +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" + + # patch to support newer hiredis version (0.14) + for i in genymotion genyshell gmtool player libcom.so.1.0.0 librendering.so.1.0.0 ; do + patchelf --replace-needed libhiredis.so.0.13 libhiredis.so.0.14 "${MY_PN}/${i}" || die "Unable to patch ${i} for hiredis" + done +} + +src_install() { + insinto /opt/"${MY_PN}" + exeinto /opt/"${MY_PN}" + + # Use qt bundled + doins -r "${MY_PN}"/{geoservices,Qt,QtGraphicalEffects,QtLocation,QtPositioning,QtQuick,QtQuick.2} + doins -r "${MY_PN}"/{icons,imageformats,platforms,plugins,sqldrivers,translations,xcbglintegrations} + doins "${MY_PN}"/libQt* + doins "${MY_PN}"/qt.conf + doins "${MY_PN}"/libicu* + + doexe "${MY_PN}"/{libcom,librendering,libswscale,libavutil}.so* + # android library + doexe "${MY_PN}"/{libEGL_translator,libGLES_CM_translator,libGLES_V2_translator,libOpenglRender}.so* + + find "${ED}/opt/${MY_PN}" -name "*.so*" -type f -exec chmod +x {} \; || die "Change .so permission failed" + + doexe "${MY_PN}"/{genymotion,genyshell,player,genymotionadbtunneld,gmtool} + + pax-mark -m "${ED}/opt/${MY_PN}/genymotion" + pax-mark -m "${ED}/opt/${MY_PN}/gmtool" + + dosym ../"${MY_PN}"/genyshell /opt/bin/genyshell + dosym ../"${MY_PN}"/genymotion /opt/bin/genymotion + dosym ../"${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" + + sed -i -e "s:Icon.*:Icon=/opt/${MY_PN}/icons/icon.png:" \ + -e "s:Exec.*:Exec=/opt/${MY_PN}/genymotion:" \ + "${HOME}"/.local/share/applications/genymobile-genymotion.desktop || die "sed failed" + domenu "${HOME}"/.local/share/applications/genymobile-genymotion.desktop +} + +pkg_postinst() { + elog "Genymotion needs adb to work correctly: install with android-sdk-update-manager" + elog "'Android SDK Platform-tools' and 'Android SDK Tools'" + elog "Your user should also be in the android group to work correctly" + elog "Then in Genymotion set the android-sdk-update-manager directory: (Settings->ADB)" + elog + elog " /opt/android-sdk-update-manager" +}