1 |
commit: 4799df2fc43ebd935b46b3ebd15bee981e0a5015 |
2 |
Author: Marco Genasci <fedeliallalinea <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jan 11 15:14:00 2023 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 06:15:48 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4799df2f |
7 |
|
8 |
app-emulation/genymotion-bin: bump version to 3.3.2 |
9 |
|
10 |
Signed-off-by: Marco Genasci <fedeliallalinea <AT> gmail.com> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
app-emulation/genymotion-bin/Manifest | 1 + |
14 |
.../genymotion-bin/genymotion-bin-3.3.2.ebuild | 140 +++++++++++++++++++++ |
15 |
2 files changed, 141 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/genymotion-bin/Manifest b/app-emulation/genymotion-bin/Manifest |
18 |
index 36557a3cd30b..5fbab3ad70bd 100644 |
19 |
--- a/app-emulation/genymotion-bin/Manifest |
20 |
+++ b/app-emulation/genymotion-bin/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST genymotion-3.2.1-linux_x64.bin 48264053 BLAKE2B 961b2480ed72ad29e1b71d98cedf98cb724e42032539445aa19e2783f2d714f389d983aa5d886e8f759a1a77585725daa1084ffac3d7083f72de78ccab46af77 SHA512 47589913c66dac42e107420574cdc1fd7ea6db8dacfa16c0173a72207f77d0bedf72e6c6643453b1b83e1e7d906ea52e79e3876d3d687bb689f251ce3bfa8385 |
23 |
+DIST genymotion-3.3.2-linux_x64.bin 66085990 BLAKE2B d2d11eaa00e387749e3257a90f3bbe30d586f1ec178d97e5f4537f331451b1161806fcf05d1c84b10b5116247023bd338ac4440e568d7e58d249055aed2f3597 SHA512 ae3bfd2c4eefceb04cd67256b291e3c7bee3c3d0e212add92086709e5fd60bee4789d2ea80732bacbcad880be472e507470afd635cb766903664ea0815ed0205 |
24 |
|
25 |
diff --git a/app-emulation/genymotion-bin/genymotion-bin-3.3.2.ebuild b/app-emulation/genymotion-bin/genymotion-bin-3.3.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..0fc8ae17fa4d |
28 |
--- /dev/null |
29 |
+++ b/app-emulation/genymotion-bin/genymotion-bin-3.3.2.ebuild |
30 |
@@ -0,0 +1,140 @@ |
31 |
+# Copyright 1999-2023 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit bash-completion-r1 desktop pax-utils |
37 |
+ |
38 |
+MY_PN="${PN/-bin}" |
39 |
+MY_P="${MY_PN}-${PV}" |
40 |
+BIN_ARCHIVE="${MY_P}-linux_x64.bin" |
41 |
+ |
42 |
+DESCRIPTION="Complete set of tools that provide a virtual environment for Android" |
43 |
+HOMEPAGE="https://genymotion.com" |
44 |
+SRC_URI="${BIN_ARCHIVE}" |
45 |
+ |
46 |
+LICENSE="genymotion" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="-* ~amd64" |
49 |
+ |
50 |
+RDEPEND="app-arch/lz4 |
51 |
+ app-crypt/mit-krb5 |
52 |
+ app-emulation/virtualbox |
53 |
+ || ( |
54 |
+ dev-libs/openssl-compat:1.1.0 |
55 |
+ =dev-libs/openssl-1.1*:0 |
56 |
+ ) |
57 |
+ dev-libs/glib:2 |
58 |
+ =dev-libs/hiredis-1.0* |
59 |
+ media-libs/alsa-lib |
60 |
+ media-libs/fontconfig |
61 |
+ media-libs/freetype |
62 |
+ media-libs/libpulse |
63 |
+ media-libs/gst-plugins-base:1.0 |
64 |
+ media-libs/gstreamer:1.0 |
65 |
+ sys-apps/dbus |
66 |
+ sys-libs/zlib |
67 |
+ virtual/opengl |
68 |
+ x11-libs/libX11 |
69 |
+ x11-libs/libxcb |
70 |
+ x11-libs/libXext |
71 |
+ x11-libs/libXi |
72 |
+ x11-libs/libxkbcommon |
73 |
+ x11-libs/libXmu |
74 |
+ x11-libs/xcb-util |
75 |
+ x11-libs/xcb-util-image |
76 |
+ x11-libs/xcb-util-keysyms |
77 |
+ x11-libs/xcb-util-renderutil |
78 |
+ x11-libs/xcb-util-wm |
79 |
+" |
80 |
+BDEPEND="x11-misc/xdg-utils" |
81 |
+ |
82 |
+RESTRICT="bindist fetch" |
83 |
+S="${WORKDIR}" |
84 |
+ |
85 |
+QA_PREBUILT=" |
86 |
+ opt/${MY_PN}/*.so* |
87 |
+ opt/${MY_PN}/imageformats/*.so |
88 |
+ opt/${MY_PN}/plugins/*.so* |
89 |
+ opt/${MY_PN}/${MY_PN} |
90 |
+ opt/${MY_PN}/genyshell |
91 |
+ opt/${MY_PN}/player |
92 |
+ opt/${MY_PN}/${MY_PN}adbtunneld |
93 |
+ opt/${MY_PN}/gmtool |
94 |
+ opt/${MY_PN}/tools/* |
95 |
+" |
96 |
+ |
97 |
+pkg_nofetch() { |
98 |
+ einfo |
99 |
+ einfo "Please visit" |
100 |
+ einfo |
101 |
+ einfo " https://www.genymotion.com/download/" |
102 |
+ einfo |
103 |
+ einfo "and download " |
104 |
+ einfo |
105 |
+ einfo " ${BIN_ARCHIVE}" |
106 |
+ einfo |
107 |
+ einfo "which must be placed in DISTDIR directory." |
108 |
+ einfo |
109 |
+} |
110 |
+ |
111 |
+src_unpack() { |
112 |
+ cp "${DISTDIR}/${BIN_ARCHIVE}" "${WORKDIR}" || die "cp failed" |
113 |
+} |
114 |
+ |
115 |
+src_prepare() { |
116 |
+ default |
117 |
+ |
118 |
+ chmod +x ${BIN_ARCHIVE} || die "chmod failed" |
119 |
+ yes | ./${BIN_ARCHIVE} > /dev/null || die "unpack failed" |
120 |
+ |
121 |
+ # removed windows line for bashcompletion |
122 |
+ sed -i "/complete -F _gmtool gmtool.exe/d" "${MY_PN}/completion/bash/gmtool.bash" || die "sed failed" |
123 |
+ |
124 |
+ # copy .desktop file in S directory |
125 |
+ sed -i -e "s:Icon.*:Icon=/opt/${MY_PN}/icons/genymotion-logo.png:" \ |
126 |
+ -e "s:Exec.*:Exec=/opt/${MY_PN}/genymotion:" \ |
127 |
+ "${HOME}"/.local/share/applications/genymobile-genymotion.desktop || die "sed failed" |
128 |
+ cp "${HOME}"/.local/share/applications/genymobile-genymotion.desktop "${S}" || die "copy .desktop file" |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ insinto /opt/"${MY_PN}" |
133 |
+ exeinto /opt/"${MY_PN}" |
134 |
+ |
135 |
+ # Use qt bundled |
136 |
+ doins -r "${MY_PN}"/{audio,geoservices,Qt,QtGraphicalEffects,QtLocation,QtPositioning,QtQuick,QtQuick.2} |
137 |
+ doins -r "${MY_PN}"/{icons,imageformats,mediaservice,platforms,plugins,sqldrivers,translations,xcbglintegrations} |
138 |
+ doins "${MY_PN}"/libQt* |
139 |
+ doins "${MY_PN}"/qt.conf |
140 |
+ doins "${MY_PN}"/libicu* |
141 |
+ |
142 |
+ doexe "${MY_PN}"/{libcom,librendering,libshadertranslator,libswscale,libavutil}.so* |
143 |
+ # android library |
144 |
+ doexe "${MY_PN}"/{libOpenglRender,libemugl_logger,libemugl_common}.so* |
145 |
+ |
146 |
+ find "${ED}/opt/${MY_PN}" -name "*.so*" -type f -exec chmod +x {} \; || die "Change .so permission failed" |
147 |
+ |
148 |
+ doexe "${MY_PN}"/{genymotion,genyshell,player,gmtool} |
149 |
+ |
150 |
+ # the android-sdk-update-manager have some bugs and lacks maintenance |
151 |
+ # so installs bundled version |
152 |
+ exeinto /opt/"${MY_PN}"/tools |
153 |
+ doexe "${MY_PN}"/tools/{aapt,adb,glewinfo} |
154 |
+ exeinto /opt/"${MY_PN}"/tools/lib64 |
155 |
+ doexe "${MY_PN}"/tools/lib64/libc++.so |
156 |
+ |
157 |
+ pax-mark -m "${ED}/opt/${MY_PN}/genymotion" |
158 |
+ pax-mark -m "${ED}/opt/${MY_PN}/gmtool" |
159 |
+ |
160 |
+ dosym ../"${MY_PN}"/genyshell /opt/bin/genyshell |
161 |
+ dosym ../"${MY_PN}"/genymotion /opt/bin/genymotion |
162 |
+ dosym ../"${MY_PN}"/gmtool /opt/bin/gmtool |
163 |
+ |
164 |
+ newbashcomp "${MY_PN}/completion/bash/gmtool.bash" gmtool |
165 |
+ |
166 |
+ insinto /usr/share/zsh/site-functions |
167 |
+ doins "${MY_PN}/completion/zsh/_gmtool" |
168 |
+ |
169 |
+ domenu genymobile-genymotion.desktop |
170 |
+} |