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 A2AD2139694 for ; Sun, 4 Jun 2017 15:18:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 843C7E0F5F; Sun, 4 Jun 2017 15:18:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52BB8E0F5F for ; Sun, 4 Jun 2017 15:18:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5F4A034194B for ; Sun, 4 Jun 2017 15:18:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD6987488 for ; Sun, 4 Jun 2017 15:18:04 +0000 (UTC) From: "Ettore Di Giacinto" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ettore Di Giacinto" Message-ID: <1496589424.7503b42b739f011b8c663176fe0c97c33fcdeab8.mudler@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/genymotion-bin-2.9.0-r1.ebuild X-VCS-Directories: app-emulation/genymotion-bin/ X-VCS-Committer: mudler X-VCS-Committer-Name: Ettore Di Giacinto X-VCS-Revision: 7503b42b739f011b8c663176fe0c97c33fcdeab8 X-VCS-Branch: master Date: Sun, 4 Jun 2017 15:18:04 +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-Archives-Salt: cc3a033d-6def-401e-8055-402fa3397fe5 X-Archives-Hash: 55b83f4c6a431d8e261f15bde3992aec commit: 7503b42b739f011b8c663176fe0c97c33fcdeab8 Author: Marco Genasci gmail com> AuthorDate: Wed May 10 06:43:19 2017 +0000 Commit: Ettore Di Giacinto gentoo org> CommitDate: Sun Jun 4 15:17:04 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7503b42b app-emulation/genymotion-bin: Revision bump - Update dependencies - Pax support Special thanks to Frédéric Barthelery. Package-Manager: Portage-2.3.5, Repoman-2.3.1 Signed-off-by: Ettore Di Giacinto gentoo.org> .../genymotion-bin/genymotion-bin-2.9.0-r1.ebuild | 122 +++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/app-emulation/genymotion-bin/genymotion-bin-2.9.0-r1.ebuild b/app-emulation/genymotion-bin/genymotion-bin-2.9.0-r1.ebuild new file mode 100644 index 00000000000..b0faa6ff4a4 --- /dev/null +++ b/app-emulation/genymotion-bin/genymotion-bin-2.9.0-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils bash-completion-r1 pax-utils + +MY_PN="${PN/-bin}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Complete set of tools that provide a virtual environment for Android" +HOMEPAGE="http://genymotion.com" +SRC_URI="${MY_P}-linux_x64.bin" +DOWNLOAD_URL="https://www.genymotion.com/download/" + +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 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtsql:5[sqlite] + dev-qt/qtwebkit:5 + dev-qt/qtwebsockets:5 + dev-qt/qtsvg:5 + dev-qt/qtx11extras:5 + dev-qt/qtdeclarative:5[widgets] + dev-qt/qtquickcontrols:5 + dev-qt/qtconcurrent:5 + dev-qt/qtgraphicaleffects:5 + sys-apps/util-linux +" +# note if you compile protobuf with >=gcc-5.1 you need to disable the new c++11 abi +# -D_GLIBCXX_USE_CXX11_ABI=0 to your CXXFLAGS for protobuf +# =dev-libs/protobuf-2.6* + +RESTRICT="bindist fetch" +S="${WORKDIR}" + +pkg_nofetch() { + einfo + einfo "Please visit ${DOWNLOAD_URL} and download ${A}" + einfo "which must be placed in DISTDIR directory." + einfo +} + +src_unpack() { + cp "${DISTDIR}/${A}" "${WORKDIR}" || die "cp failed" +} + +src_prepare() { + default + + # removed function _install_desktop_file because happens outside of sandbox + sed -i -e "s/_install_desktop_file\ ||\ abort//" ${A} || die "sed failed" + chmod +x ${A} || die "chmod failed" + yes | ./${A} -d "${S}" > /dev/null || die "unpack failed" + + # removed windows line for bashcompletion + sed -i -e "s/complete\ -F\ _gmtool\ gmtool.exe//" "${S}/${MY_PN}/completion/bash/gmtool.bash" || die "sed failed" +} + +QA_PREBUILT=" + opt/${MY_PN}/*.so* + opt/${MY_PN}/imageformats/*.so + opt/${MY_PN}/plugins/*.so* + opt/${MY_PN}/device-upgrade + opt/${MY_PN}/${MY_PN} + opt/${MY_PN}/genyshell + opt/${MY_PN}/player + opt/${MY_PN}/${MY_PN}adbtunneld + opt/${MY_PN}/gmtool +" + +src_install() { + insinto /opt/"${MY_PN}" + doins -r "${MY_PN}"/{plugins,translations,icons} + + doins "${MY_PN}"/{libcom,librendering}.so* + # library that differ from system version + doins "${MY_PN}"/{libswscale,libavutil,libprotobuf}.so* + # android library + doins "${MY_PN}"/{libEGL_translator,libGLES_CM_translator,libGLES_V2_translator,libOpenglRender,libemugl_logger}.so* + + insopts -m0755 + doins "${MY_PN}"/{device-upgrade,genymotion,genyshell,player,genymotionadbtunneld,gmtool} + + pax-mark -m "${ED%/}/opt/${MY_PN}/${MY_PN}" + pax-mark -m "${ED%/}/opt/${MY_PN}/gmtool" + + dosym "${ED%/}"/opt/"${MY_PN}"/genyshell /opt/bin/genyshell + dosym "${ED%/}"/opt/"${MY_PN}"/"${MY_PN}" /opt/bin/"${MY_PN}" + dosym "${ED%/}"/opt/"${MY_PN}"/gmtool /opt/bin/gmtool + + # Workaround + dosym "${ED%/}/"usr/$(get_libdir)/qt5/plugins/imageformats/libqsvg.so /opt/"${MY_PN}"/imageformats/libqsvg.so + dosym "${ED%/}/"usr/$(get_libdir)/qt5/plugins/sqldrivers/libqsqlite.so /opt/"${MY_PN}"/sqldrivers/libqsqlite.so + + newbashcomp "${MY_PN}/completion/bash/gmtool.bash" gmtool + + if has_version "app-shells/zsh" ; then + insinto /usr/share/zsh/site-functions + doins "${MY_PN}/completion/zsh/_gmtool" + fi + + make_desktop_entry "/opt/${MY_PN}/${MY_PN}" "Genymotion ${PV}" "/opt/${MY_PN}/icons/icon.png" "Development;Emulator;" + mv "${ED%/}"/usr/share/applications/*.desktop "${ED%/}"/usr/share/applications/"${MY_PN}".desktop || die "mv failed" +} + +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" +}