# HG changeset patch # User Da Risk # Date 1494359079 25200 # Node ID 83b6f114ac24eeceb576929277b1cab3c14c380b # Parent 13f8d9ef4e05057e10da3785732c091644df0793 app-emulation/genymotion-bin: simplification of original ebuild. Correct the dependencies list. Put bin symlinks only for binaries supposed to be used Correct qtsql dependency (Portage version: 2.3.5/hg/Linux x86_64, unsigned Manifest commit) diff -r 13f8d9ef4e05 -r 83b6f114ac24 app-emulation/genymotion-bin/Manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-emulation/genymotion-bin/Manifest Tue May 09 12:44:39 2017 -0700 @@ -0,0 +1,1 @@ +DIST genymotion-2.9.0-linux_x64.bin 44858494 SHA256 2392c8fdce45354d109b001e72d994f26bd6d4a3976ef91f02404178dc66c110 SHA512 cf96b804ecfb5c620d20ce601ab6a99bdcc9365efa9bf6e830ac54c75ad2838372115db425a549b89a05bc496ce39dbb51a3abeba1641e300f801f996eeaaf1f WHIRLPOOL 49b2abe0f04b34810140410deac8a0063787963828186b97bc595da94686b50b46c5c7422dcc4bb49b26eb8cf438e696914f11fd0bb37f0830731781bfe401d8 diff -r 13f8d9ef4e05 -r 83b6f114ac24 app-emulation/genymotion-bin/genymotion-bin-2.9.0.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-emulation/genymotion-bin/genymotion-bin-2.9.0.ebuild Tue May 09 12:44:39 2017 -0700 @@ -0,0 +1,112 @@ +# 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/qtwidgets:5 + dev-qt/qtx11extras:5 + dev-qt/qtdeclarative:5 + 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" + +pkg_nofetch() { + einfo + einfo "Please visit ${DOWNLOAD_URL} and download ${A}" + einfo "which must be placed in DISTDIR directory." + einfo +} + +src_unpack() { + mkdir -p "${S}" + skip=$(awk '/^__TARFILE_FOLLOWS__/ { print NR + 1; exit 0; }' "${DISTDIR}/${A}") + tail -n +$skip "${DISTDIR}/${A}" | tar -xj -C "${S}" +} + +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 plugins translations icons + + doins {libcom,librendering}.so* + # library that differ from system version + doins {libswscale,libavutil,libprotobuf}.so* + # android library + doins {libEGL_translator,libGLES_CM_translator,libGLES_V2_translator,libOpenglRender,libemugl_logger}.so* + + insopts -m0755 + doins {device-upgrade,genymotion,genyshell,player,genymotionadbtunneld,gmtool} + + pax-mark -m "${ED%/}/opt/genymotion/genymotion" + pax-mark -m "${ED%/}/opt/genymotion/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 "completion/bash/gmtool.bash" gmtool + + if has_version "app-shells/zsh" ; then + insinto /usr/share/zsh/site-functions + doins "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" +} diff -r 13f8d9ef4e05 -r 83b6f114ac24 app-emulation/genymotion-bin/metadata.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-emulation/genymotion-bin/metadata.xml Tue May 09 12:44:39 2017 -0700 @@ -0,0 +1,16 @@ + + + + + fedeliallalinea@gmail.com + Marco Genasci + + + mudler@gentoo.org + Ettore Di Giacinto + + + proxy-maint@gentoo.org + Proxy Maintainers + +