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, 15 Sep 2020 14:11:33
Message-Id: 1600179076.966ef1be6636ca8f1ce42f070638f2a34929e208.juippis@gentoo
1 commit: 966ef1be6636ca8f1ce42f070638f2a34929e208
2 Author: Marco Genasci <fedeliallalinea <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 10 06:29:28 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 15 14:11:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=966ef1be
7
8 app-emulation/genymotion-bin: removed old
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Marco Genasci <fedeliallalinea <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/17067
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-emulation/genymotion-bin/Manifest | 1 -
16 .../genymotion-bin/genymotion-bin-3.1.0.ebuild | 126 ---------------------
17 2 files changed, 127 deletions(-)
18
19 diff --git a/app-emulation/genymotion-bin/Manifest b/app-emulation/genymotion-bin/Manifest
20 index 391f199e183..27fa5fde26a 100644
21 --- a/app-emulation/genymotion-bin/Manifest
22 +++ b/app-emulation/genymotion-bin/Manifest
23 @@ -1,2 +1 @@
24 -DIST genymotion-3.1.0-linux_x64.bin 40490397 BLAKE2B 4601ff24b5cc2f33c442ec6cf76e04eaa010304d4097b30ac82c7d6824dc3949b409ec5867cc7f08ee2985e254eefc9d8282ff77a5a92961dec0df9f3f80c6d7 SHA512 53a325b0a7eac6998ae525277d3a566ab6a73e21eccd6496caecefc175138b604a516d2bba1fac9f61ad52aaf9dcf0dd1fe2cd2da0c5c31a2f48c08f88a2a68a
25 DIST genymotion-3.1.1-linux_x64.bin 40506791 BLAKE2B 5318568766826cac587802c3b84fb2d32eaad6f00e0c2642fc1f8a81794f94de85d57d66b816848f3161b9f763ddbd84e9fafe6bc2027fb478b31b7c6f858750 SHA512 8468843131a6f09dfa65da4f638d25f3c8b806b6275a46b5bc379d7b97ebb30518a00a8dd6433ce33b78dfddcb3e1c62ceba67e9b41e39e44a677ea2fbedeade
26
27 diff --git a/app-emulation/genymotion-bin/genymotion-bin-3.1.0.ebuild b/app-emulation/genymotion-bin/genymotion-bin-3.1.0.ebuild
28 deleted file mode 100644
29 index f5745370f0d..00000000000
30 --- a/app-emulation/genymotion-bin/genymotion-bin-3.1.0.ebuild
31 +++ /dev/null
32 @@ -1,126 +0,0 @@
33 -# Copyright 1999-2020 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="|| (
53 - app-emulation/virtualbox
54 - app-emulation/virtualbox-bin
55 - )
56 - || (
57 - dev-libs/openssl-compat:1.0.0
58 - =dev-libs/openssl-1.0*:0
59 - )
60 - dev-libs/hiredis:0/0.14
61 - sys-apps/util-linux
62 - virtual/opengl
63 -"
64 -BDEPEND="dev-util/patchelf"
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}"/libqgsttools_p.so.1
122 - doins "${MY_PN}"/qt.conf
123 - doins "${MY_PN}"/libicu*
124 -
125 - doexe "${MY_PN}"/{libcom,librendering,libswscale,libavutil}.so*
126 - # android library
127 - doexe "${MY_PN}"/{libEGL_translator,libGLES_CM_translator,libGLES_V2_translator,libOpenglRender,libemugl_logger}.so*
128 -
129 - find "${ED}/opt/${MY_PN}" -name "*.so*" -type f -exec chmod +x {} \; || die "Change .so permission failed"
130 -
131 - doexe "${MY_PN}"/{genymotion,genyshell,player,gmtool}
132 -
133 - pax-mark -m "${ED}/opt/${MY_PN}/genymotion"
134 - pax-mark -m "${ED}/opt/${MY_PN}/gmtool"
135 -
136 - dosym ../"${MY_PN}"/genyshell /opt/bin/genyshell
137 - dosym ../"${MY_PN}"/genymotion /opt/bin/genymotion
138 - dosym ../"${MY_PN}"/gmtool /opt/bin/gmtool
139 -
140 - newbashcomp "${MY_PN}/completion/bash/gmtool.bash" gmtool
141 -
142 - insinto /usr/share/zsh/site-functions
143 - doins "${MY_PN}/completion/zsh/_gmtool"
144 -
145 - sed -i -e "s:Icon.*:Icon=/opt/${MY_PN}/icons/icon.png:" \
146 - -e "s:Exec.*:Exec=/opt/${MY_PN}/genymotion:" \
147 - "${HOME}"/.local/share/applications/genymobile-genymotion.desktop || die "sed failed"
148 - domenu "${HOME}"/.local/share/applications/genymobile-genymotion.desktop
149 -}
150 -
151 -pkg_postinst() {
152 - elog "Genymotion needs adb to work correctly: install with android-sdk-update-manager"
153 - elog "'Android SDK Platform-tools' and 'Android SDK Tools'"
154 - elog "Your user should also be in the android group to work correctly"
155 - elog "Then in Genymotion set the android-sdk-update-manager directory: (Settings->ADB)"
156 - elog
157 - elog " /opt/android-sdk-update-manager"
158 -}