diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-emulation/genymotion-bin | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emulation/genymotion-bin')
-rw-r--r-- | app-emulation/genymotion-bin/Manifest | 3 | ||||
-rw-r--r-- | app-emulation/genymotion-bin/genymotion-bin-2.11.0.ebuild | 123 | ||||
-rw-r--r-- | app-emulation/genymotion-bin/metadata.xml | 16 |
3 files changed, 142 insertions, 0 deletions
diff --git a/app-emulation/genymotion-bin/Manifest b/app-emulation/genymotion-bin/Manifest new file mode 100644 index 000000000000..1b111fec3518 --- /dev/null +++ b/app-emulation/genymotion-bin/Manifest @@ -0,0 +1,3 @@ +DIST genymotion-2.11.0-linux_x64.bin 45096365 BLAKE2B 8686e37a0e1bd0acf1847de40dfff650db6b723b65dc369652114c19fb51554ea9b1c1f11c8e8db568e44f50aaf043617ee263258d04e2e90e6c23bb41a0cf56 SHA512 b128fbe1e27120cdd88a6ac4661031231cc17fc0adf007fa986f7892571db7d8ce259bf6f106eb9e620149572d5ca242ae6032b7360ba7502b208ac18ef98e2e +EBUILD genymotion-bin-2.11.0.ebuild 3800 BLAKE2B dc2aa4e21e18bc81e20755febd757060c34b66cad5af6b079df693b0613bbe55be6807e4358165fa389b3efc8699a59b0937196a0c74bcf288a988c8d8564594 SHA512 b429aeeaebbb20bacd93e1f63cfa3ff8a5e316c16cf1873cf81f05f4d13ab7f0b0e7f80f4e9cd1a33e617c64efded6ddd5025d84e0561fa1bd8f0e69c8b34545 +MISC metadata.xml 483 BLAKE2B 1ed85dae79388f3c548163e5fafd2838e1adf9bfc9a9c793ce7f9e7e323f8e3c9e7e2f3190b3ec54a0c598d048c61b6ad67c8eefb3845cd446ea67b01e0df8a8 SHA512 e88ad9fd8c20d5be5569c64544c3f4dd72eb3243d46333c30aaa1b939eb6ce35855aa3e771008b2fff990de5b2e5bf79ca378714e3cf7dc375144b7cd8f5649c diff --git a/app-emulation/genymotion-bin/genymotion-bin-2.11.0.ebuild b/app-emulation/genymotion-bin/genymotion-bin-2.11.0.ebuild new file mode 100644 index 000000000000..15acb33f5a04 --- /dev/null +++ b/app-emulation/genymotion-bin/genymotion-bin-2.11.0.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2018 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="https://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 + media-libs/gst-plugins-base:0.10 +" +# 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}"/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" +} diff --git a/app-emulation/genymotion-bin/metadata.xml b/app-emulation/genymotion-bin/metadata.xml new file mode 100644 index 000000000000..0a47874eaf48 --- /dev/null +++ b/app-emulation/genymotion-bin/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>fedeliallalinea@gmail.com</email> + <name>Marco Genasci</name> + </maintainer> + <maintainer type="person"> + <email>mudler@gentoo.org</email> + <name>Ettore Di Giacinto</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> |