Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/genymotion-bin/
Date: Sat, 27 Apr 2019 13:24:47
Message-Id: 1556371418.752777e9b54bdb44a692aa7649664badd7d97c4d.mgorny@gentoo
1 commit: 752777e9b54bdb44a692aa7649664badd7d97c4d
2 Author: Marco Genasci <fedeliallalinea <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 27 12:36:18 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 27 13:23:38 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=752777e9
7
8 app-emulation/genymotion-bin: bump to version 3.0.2
9
10 Special thanks to Frédéric Barthelery.
11
12 Signed-off-by: Marco Genasci <fedeliallalinea <AT> gmail.com>
13 Package-Manager: Portage-2.3.62, Repoman-2.3.11
14 Closes: https://bugs.gentoo.org/674766
15 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
16
17 app-emulation/genymotion-bin/Manifest | 1 +
18 .../genymotion-bin/genymotion-bin-3.0.2.ebuild | 123 +++++++++++++++++++++
19 2 files changed, 124 insertions(+)
20
21 diff --git a/app-emulation/genymotion-bin/Manifest b/app-emulation/genymotion-bin/Manifest
22 index 462804264ea..767f04d1b95 100644
23 --- a/app-emulation/genymotion-bin/Manifest
24 +++ b/app-emulation/genymotion-bin/Manifest
25 @@ -1 +1,2 @@
26 DIST genymotion-2.12.2-linux_x64.bin 45850812 BLAKE2B 74c3dfa73818f1d7318235d13acbff79d5dd27fd8d7c8cd246046406aaf8f2b9cdb9e9cb7c44bd294b0a047c2bd1e6a419bd4191dd3e332d82494f358cc9d73c SHA512 31b1c9de1a264f285938fcc62612a6aa74393e88f6075664f3e168c5226e74ab25e72061904716f6b2d33ed77221b8c4605c247090c7e2fd149ea8be96f9b5dc
27 +DIST genymotion-3.0.2-linux_x64.bin 38744066 BLAKE2B 4c98cdc8d5a5cd98192260893b39dd838bba5903d590268d53223c1ebe712296cf25aa638c16de39ea4f83a5fd8717edbab7c043ff6a12e6455862ecd25ca7cc SHA512 5075d9a9c6c5e84ff90e05e4fa70db98cf89ad25e8765566176b94559f60cc170e383a02f50c752fb63859b757645390d977081d2f79ce0fab8607ebf3e08e01
28
29 diff --git a/app-emulation/genymotion-bin/genymotion-bin-3.0.2.ebuild b/app-emulation/genymotion-bin/genymotion-bin-3.0.2.ebuild
30 new file mode 100644
31 index 00000000000..70737af7536
32 --- /dev/null
33 +++ b/app-emulation/genymotion-bin/genymotion-bin-3.0.2.ebuild
34 @@ -0,0 +1,123 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit bash-completion-r1 desktop pax-utils
41 +
42 +MY_PN="${PN/-bin}"
43 +MY_P="${MY_PN}-${PV}"
44 +BIN_ARCHIVE="${MY_P}-linux_x64.bin"
45 +
46 +DESCRIPTION="Complete set of tools that provide a virtual environment for Android"
47 +HOMEPAGE="https://genymotion.com"
48 +SRC_URI="${BIN_ARCHIVE}"
49 +
50 +LICENSE="genymotion"
51 +SLOT="0"
52 +KEYWORDS="-* ~amd64"
53 +
54 +DEPEND=""
55 +RDEPEND="|| ( >=app-emulation/virtualbox-5.0.28 >=app-emulation/virtualbox-bin-5.0.28 )
56 + virtual/opengl
57 + || (
58 + dev-libs/openssl:1.0.0
59 + =dev-libs/openssl-1.0*:0
60 + )
61 + dev-libs/hiredis:0/0.14
62 + sys-apps/util-linux
63 +"
64 +BDEPEND=">=dev-util/patchelf-0.9_p20180129"
65 +
66 +RESTRICT="bindist fetch"
67 +S="${WORKDIR}"
68 +
69 +QA_PREBUILT="
70 + opt/${MY_PN}/*.so*
71 + opt/${MY_PN}/imageformats/*.so
72 + opt/${MY_PN}/plugins/*.so*
73 + opt/${MY_PN}/${MY_PN}
74 + opt/${MY_PN}/genyshell
75 + opt/${MY_PN}/player
76 + opt/${MY_PN}/${MY_PN}adbtunneld
77 + opt/${MY_PN}/gmtool
78 +"
79 +
80 +pkg_nofetch() {
81 + einfo
82 + einfo "Please visit"
83 + einfo
84 + einfo " https://www.genymotion.com/download/"
85 + einfo
86 + einfo "and download "
87 + einfo
88 + einfo " ${BIN_ARCHIVE}"
89 + einfo
90 + einfo "which must be placed in DISTDIR directory."
91 + einfo
92 +}
93 +
94 +src_unpack() {
95 + cp "${DISTDIR}/${BIN_ARCHIVE}" "${WORKDIR}" || die "cp failed"
96 +}
97 +
98 +src_prepare() {
99 + default
100 +
101 + chmod +x ${BIN_ARCHIVE} || die "chmod failed"
102 + yes | ./${BIN_ARCHIVE} > /dev/null || die "unpack failed"
103 +
104 + # removed windows line for bashcompletion
105 + sed -i "/complete -F _gmtool gmtool.exe/d" "${MY_PN}/completion/bash/gmtool.bash" || die "sed failed"
106 +
107 + # patch to support newer hiredis version (0.14)
108 + for i in genymotion genyshell gmtool player libcom.so.1.0.0 librendering.so.1.0.0 ; do
109 + patchelf --replace-needed libhiredis.so.0.13 libhiredis.so.0.14 "${MY_PN}/${i}" || die "Unable to patch ${i} for hiredis"
110 + done
111 +}
112 +
113 +src_install() {
114 + insinto /opt/"${MY_PN}"
115 + exeinto /opt/"${MY_PN}"
116 +
117 + # Use qt bundled
118 + doins -r "${MY_PN}"/{geoservices,Qt,QtGraphicalEffects,QtLocation,QtPositioning,QtQuick,QtQuick.2}
119 + doins -r "${MY_PN}"/{icons,imageformats,platforms,plugins,sqldrivers,translations,xcbglintegrations}
120 + doins "${MY_PN}"/libQt*
121 + doins "${MY_PN}"/qt.conf
122 + doins "${MY_PN}"/libicu*
123 +
124 + doexe "${MY_PN}"/{libcom,librendering}.so*
125 + # android library
126 + doexe "${MY_PN}"/{libEGL_translator,libGLES_CM_translator,libGLES_V2_translator,libOpenglRender}.so*
127 +
128 + find "${ED}/opt/${MY_PN}" -name "*.so*" -type f -exec chmod +x {} \; || die "Change .so permission failed"
129 +
130 + doexe "${MY_PN}"/{genymotion,genyshell,player,genymotionadbtunneld,gmtool}
131 +
132 + pax-mark -m "${ED}/opt/${MY_PN}/genymotion"
133 + pax-mark -m "${ED}/opt/${MY_PN}/gmtool"
134 +
135 + dosym ../"${MY_PN}"/genyshell /opt/bin/genyshell
136 + dosym ../"${MY_PN}"/genymotion /opt/bin/genymotion
137 + dosym ../"${MY_PN}"/gmtool /opt/bin/gmtool
138 +
139 + newbashcomp "${MY_PN}/completion/bash/gmtool.bash" gmtool
140 +
141 + insinto /usr/share/zsh/site-functions
142 + doins "${MY_PN}/completion/zsh/_gmtool"
143 +
144 + sed -i -e "s:Icon.*:Icon=/opt/${MY_PN}/icons/icon.png:" \
145 + -e "s:Exec.*:Exec=/opt/${MY_PN}/genymotion:" \
146 + "${HOME}"/.local/share/applications/genymobile-genymotion.desktop || die "sed failed"
147 + domenu "${HOME}"/.local/share/applications/genymobile-genymotion.desktop
148 +}
149 +
150 +pkg_postinst() {
151 + elog "Genymotion needs adb to work correctly: install with android-sdk-update-manager"
152 + elog "'Android SDK Platform-tools' and 'Android SDK Tools'"
153 + elog "Your user should also be in the android group to work correctly"
154 + elog "Then in Genymotion set the android-sdk-update-manager directory: (Settings->ADB)"
155 + elog
156 + elog " /opt/android-sdk-update-manager"
157 +}