Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/genymotion-bin/
Date: Thu, 18 Oct 2018 11:56:22
Message-Id: 1539863738.a44d0f0af67655eef4ba71aa789b3855c9339093.vdupras@gentoo
1 commit: a44d0f0af67655eef4ba71aa789b3855c9339093
2 Author: Marco Genasci <fedeliallalinea <AT> gmail <DOT> com>
3 AuthorDate: Mon Oct 8 07:21:10 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 18 11:55:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a44d0f0a
7
8 app-emulation/genymotion-bin: version bump to 2.12.2
9
10 Closes: https://bugs.gentoo.org/655580
11 Package-Manager: Portage-2.3.49, Repoman-2.3.10
12 Signed-off-by: Marco Genasci <fedeliallalinea <AT> gmail.com>
13 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
14
15 app-emulation/genymotion-bin/Manifest | 1 +
16 .../genymotion-bin/genymotion-bin-2.12.2.ebuild | 113 +++++++++++++++++++++
17 2 files changed, 114 insertions(+)
18
19 diff --git a/app-emulation/genymotion-bin/Manifest b/app-emulation/genymotion-bin/Manifest
20 index cda2f1ef6a1..9a01451180f 100644
21 --- a/app-emulation/genymotion-bin/Manifest
22 +++ b/app-emulation/genymotion-bin/Manifest
23 @@ -1 +1,2 @@
24 DIST genymotion-2.11.0-linux_x64.bin 45096365 BLAKE2B 8686e37a0e1bd0acf1847de40dfff650db6b723b65dc369652114c19fb51554ea9b1c1f11c8e8db568e44f50aaf043617ee263258d04e2e90e6c23bb41a0cf56 SHA512 b128fbe1e27120cdd88a6ac4661031231cc17fc0adf007fa986f7892571db7d8ce259bf6f106eb9e620149572d5ca242ae6032b7360ba7502b208ac18ef98e2e
25 +DIST genymotion-2.12.2-linux_x64.bin 45850812 BLAKE2B 74c3dfa73818f1d7318235d13acbff79d5dd27fd8d7c8cd246046406aaf8f2b9cdb9e9cb7c44bd294b0a047c2bd1e6a419bd4191dd3e332d82494f358cc9d73c SHA512 31b1c9de1a264f285938fcc62612a6aa74393e88f6075664f3e168c5226e74ab25e72061904716f6b2d33ed77221b8c4605c247090c7e2fd149ea8be96f9b5dc
26
27 diff --git a/app-emulation/genymotion-bin/genymotion-bin-2.12.2.ebuild b/app-emulation/genymotion-bin/genymotion-bin-2.12.2.ebuild
28 new file mode 100644
29 index 00000000000..b7acb03d478
30 --- /dev/null
31 +++ b/app-emulation/genymotion-bin/genymotion-bin-2.12.2.ebuild
32 @@ -0,0 +1,113 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit eutils bash-completion-r1 pax-utils
39 +
40 +MY_PN="${PN/-bin}"
41 +MY_P="${MY_PN}-${PV}"
42 +
43 +DESCRIPTION="Complete set of tools that provide a virtual environment for Android"
44 +HOMEPAGE="https://genymotion.com"
45 +SRC_URI="${MY_P}-linux_x64.bin"
46 +DOWNLOAD_URL="https://www.genymotion.com/download/"
47 +
48 +LICENSE="genymotion"
49 +SLOT="0"
50 +KEYWORDS="-* ~amd64"
51 +
52 +DEPEND=""
53 +RDEPEND="|| ( >=app-emulation/virtualbox-5.0.28 >=app-emulation/virtualbox-bin-5.0.28 )
54 + app-arch/snappy
55 + virtual/opengl
56 + dev-libs/openssl
57 + dev-libs/hiredis
58 + media-gfx/graphite2
59 + sys-apps/util-linux
60 + media-libs/gst-plugins-base:0.10
61 +"
62 +# note if you compile protobuf with >=gcc-5.1 you need to disable the new c++11 abi
63 +# -D_GLIBCXX_USE_CXX11_ABI=0 to your CXXFLAGS for protobuf
64 +# =dev-libs/protobuf-2.6*
65 +
66 +RESTRICT="bindist fetch"
67 +S="${WORKDIR}"
68 +
69 +pkg_nofetch() {
70 + einfo
71 + einfo "Please visit ${DOWNLOAD_URL} and download ${A}"
72 + einfo "which must be placed in DISTDIR directory."
73 + einfo
74 +}
75 +
76 +src_unpack() {
77 + cp "${DISTDIR}/${A}" "${WORKDIR}" || die "cp failed"
78 +}
79 +
80 +src_prepare() {
81 + default
82 +
83 + # removed function _install_desktop_file because happens outside of sandbox
84 + sed -i -e "s/_install_desktop_file\ ||\ abort//" ${A} || die "sed failed"
85 + chmod +x ${A} || die "chmod failed"
86 + yes | ./${A} -d "${S}" > /dev/null || die "unpack failed"
87 +
88 + # removed windows line for bashcompletion
89 + sed -i -e "s/complete\ -F\ _gmtool\ gmtool.exe//" "${S}/${MY_PN}/completion/bash/gmtool.bash" || die "sed failed"
90 +}
91 +
92 +QA_PREBUILT="
93 + opt/${MY_PN}/*.so*
94 + opt/${MY_PN}/imageformats/*.so
95 + opt/${MY_PN}/plugins/*.so*
96 + opt/${MY_PN}/device-upgrade
97 + opt/${MY_PN}/${MY_PN}
98 + opt/${MY_PN}/genyshell
99 + opt/${MY_PN}/player
100 + opt/${MY_PN}/${MY_PN}adbtunneld
101 + opt/${MY_PN}/gmtool
102 +"
103 +
104 +src_install() {
105 + insinto /opt/"${MY_PN}"
106 + doins -r "${MY_PN}"/{plugins,translations,icons}
107 +
108 + doins -r "${MY_PN}"/{QtGraphicalEffects,QtQuick,QtQuick.2,platforms,sqldrivers,imageformats}
109 + doins "${MY_PN}"/libQt*
110 + doins "${MY_PN}"/qt.conf
111 + doins "${MY_PN}"/libicu*
112 +
113 + doins "${MY_PN}"/{libcom,librendering}.so*
114 + # android library
115 + doins "${MY_PN}"/{libEGL_translator,libGLES_CM_translator,libGLES_V2_translator,libOpenglRender}.so*
116 +
117 + insopts -m0755
118 + doins "${MY_PN}"/{device-upgrade,genymotion,genyshell,player,genymotionadbtunneld,gmtool}
119 +
120 + pax-mark -m "${ED%/}/opt/${MY_PN}/${MY_PN}"
121 + pax-mark -m "${ED%/}/opt/${MY_PN}/gmtool"
122 +
123 + dosym "${ED%/}"/opt/"${MY_PN}"/genyshell /opt/bin/genyshell
124 + dosym "${ED%/}"/opt/"${MY_PN}"/"${MY_PN}" /opt/bin/"${MY_PN}"
125 + dosym "${ED%/}"/opt/"${MY_PN}"/gmtool /opt/bin/gmtool
126 +
127 + newbashcomp "${MY_PN}/completion/bash/gmtool.bash" gmtool
128 +
129 + if has_version "app-shells/zsh" ; then
130 + insinto /usr/share/zsh/site-functions
131 + doins "${MY_PN}/completion/zsh/_gmtool"
132 + fi
133 +
134 + make_desktop_entry "/opt/${MY_PN}/${MY_PN}" "Genymotion ${PV}" "/opt/${MY_PN}/icons/icon.png" "Development;Emulator;"
135 + mv "${ED%/}"/usr/share/applications/*.desktop "${ED%/}"/usr/share/applications/"${MY_PN}".desktop || die "mv failed"
136 +}
137 +
138 +pkg_postinst() {
139 + elog "Genymotion needs adb to work correctly: install with android-sdk-update-manager"
140 + elog "'Android SDK Platform-tools' and 'Android SDK Tools'"
141 + elog "Your user should also be in the android group to work correctly"
142 + elog "Then in Genymotion set the android-sdk-update-manager directory: (Settings->ADB)"
143 + elog
144 + elog " /opt/android-sdk-update-manager"
145 +}