Gentoo Archives: gentoo-commits

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