1 |
commit: 7503b42b739f011b8c663176fe0c97c33fcdeab8 |
2 |
Author: Marco Genasci <fedeliallalinea <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed May 10 06:43:19 2017 +0000 |
4 |
Commit: Ettore Di Giacinto <mudler <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 4 15:17:04 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7503b42b |
7 |
|
8 |
app-emulation/genymotion-bin: Revision bump |
9 |
|
10 |
- Update dependencies |
11 |
- Pax support |
12 |
|
13 |
Special thanks to Frédéric Barthelery. |
14 |
|
15 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
16 |
|
17 |
Signed-off-by: Ettore Di Giacinto <mudler <AT> gentoo.org> |
18 |
|
19 |
.../genymotion-bin/genymotion-bin-2.9.0-r1.ebuild | 122 +++++++++++++++++++++ |
20 |
1 file changed, 122 insertions(+) |
21 |
|
22 |
diff --git a/app-emulation/genymotion-bin/genymotion-bin-2.9.0-r1.ebuild b/app-emulation/genymotion-bin/genymotion-bin-2.9.0-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..b0faa6ff4a4 |
25 |
--- /dev/null |
26 |
+++ b/app-emulation/genymotion-bin/genymotion-bin-2.9.0-r1.ebuild |
27 |
@@ -0,0 +1,122 @@ |
28 |
+# Copyright 1999-2017 Gentoo Foundation |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=6 |
32 |
+ |
33 |
+inherit eutils bash-completion-r1 pax-utils |
34 |
+ |
35 |
+MY_PN="${PN/-bin}" |
36 |
+MY_P="${MY_PN}-${PV}" |
37 |
+ |
38 |
+DESCRIPTION="Complete set of tools that provide a virtual environment for Android" |
39 |
+HOMEPAGE="http://genymotion.com" |
40 |
+SRC_URI="${MY_P}-linux_x64.bin" |
41 |
+DOWNLOAD_URL="https://www.genymotion.com/download/" |
42 |
+ |
43 |
+LICENSE="genymotion" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="-* ~amd64" |
46 |
+ |
47 |
+DEPEND="" |
48 |
+RDEPEND="|| ( >=app-emulation/virtualbox-5.0.28 >=app-emulation/virtualbox-bin-5.0.28 ) |
49 |
+ virtual/opengl |
50 |
+ dev-libs/openssl |
51 |
+ dev-qt/qtgui:5 |
52 |
+ dev-qt/qtnetwork:5 |
53 |
+ dev-qt/qtopengl:5 |
54 |
+ dev-qt/qtsql:5[sqlite] |
55 |
+ dev-qt/qtwebkit:5 |
56 |
+ dev-qt/qtwebsockets:5 |
57 |
+ dev-qt/qtsvg:5 |
58 |
+ dev-qt/qtx11extras:5 |
59 |
+ dev-qt/qtdeclarative:5[widgets] |
60 |
+ dev-qt/qtquickcontrols:5 |
61 |
+ dev-qt/qtconcurrent:5 |
62 |
+ dev-qt/qtgraphicaleffects:5 |
63 |
+ sys-apps/util-linux |
64 |
+" |
65 |
+# note if you compile protobuf with >=gcc-5.1 you need to disable the new c++11 abi |
66 |
+# -D_GLIBCXX_USE_CXX11_ABI=0 to your CXXFLAGS for protobuf |
67 |
+# =dev-libs/protobuf-2.6* |
68 |
+ |
69 |
+RESTRICT="bindist fetch" |
70 |
+S="${WORKDIR}" |
71 |
+ |
72 |
+pkg_nofetch() { |
73 |
+ einfo |
74 |
+ einfo "Please visit ${DOWNLOAD_URL} and download ${A}" |
75 |
+ einfo "which must be placed in DISTDIR directory." |
76 |
+ einfo |
77 |
+} |
78 |
+ |
79 |
+src_unpack() { |
80 |
+ cp "${DISTDIR}/${A}" "${WORKDIR}" || die "cp failed" |
81 |
+} |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ default |
85 |
+ |
86 |
+ # removed function _install_desktop_file because happens outside of sandbox |
87 |
+ sed -i -e "s/_install_desktop_file\ ||\ abort//" ${A} || die "sed failed" |
88 |
+ chmod +x ${A} || die "chmod failed" |
89 |
+ yes | ./${A} -d "${S}" > /dev/null || die "unpack failed" |
90 |
+ |
91 |
+ # removed windows line for bashcompletion |
92 |
+ sed -i -e "s/complete\ -F\ _gmtool\ gmtool.exe//" "${S}/${MY_PN}/completion/bash/gmtool.bash" || die "sed failed" |
93 |
+} |
94 |
+ |
95 |
+QA_PREBUILT=" |
96 |
+ opt/${MY_PN}/*.so* |
97 |
+ opt/${MY_PN}/imageformats/*.so |
98 |
+ opt/${MY_PN}/plugins/*.so* |
99 |
+ opt/${MY_PN}/device-upgrade |
100 |
+ opt/${MY_PN}/${MY_PN} |
101 |
+ opt/${MY_PN}/genyshell |
102 |
+ opt/${MY_PN}/player |
103 |
+ opt/${MY_PN}/${MY_PN}adbtunneld |
104 |
+ opt/${MY_PN}/gmtool |
105 |
+" |
106 |
+ |
107 |
+src_install() { |
108 |
+ insinto /opt/"${MY_PN}" |
109 |
+ doins -r "${MY_PN}"/{plugins,translations,icons} |
110 |
+ |
111 |
+ doins "${MY_PN}"/{libcom,librendering}.so* |
112 |
+ # library that differ from system version |
113 |
+ doins "${MY_PN}"/{libswscale,libavutil,libprotobuf}.so* |
114 |
+ # android library |
115 |
+ doins "${MY_PN}"/{libEGL_translator,libGLES_CM_translator,libGLES_V2_translator,libOpenglRender,libemugl_logger}.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 |
+ # Workaround |
128 |
+ dosym "${ED%/}/"usr/$(get_libdir)/qt5/plugins/imageformats/libqsvg.so /opt/"${MY_PN}"/imageformats/libqsvg.so |
129 |
+ dosym "${ED%/}/"usr/$(get_libdir)/qt5/plugins/sqldrivers/libqsqlite.so /opt/"${MY_PN}"/sqldrivers/libqsqlite.so |
130 |
+ |
131 |
+ newbashcomp "${MY_PN}/completion/bash/gmtool.bash" gmtool |
132 |
+ |
133 |
+ if has_version "app-shells/zsh" ; then |
134 |
+ insinto /usr/share/zsh/site-functions |
135 |
+ doins "${MY_PN}/completion/zsh/_gmtool" |
136 |
+ fi |
137 |
+ |
138 |
+ make_desktop_entry "/opt/${MY_PN}/${MY_PN}" "Genymotion ${PV}" "/opt/${MY_PN}/icons/icon.png" "Development;Emulator;" |
139 |
+ mv "${ED%/}"/usr/share/applications/*.desktop "${ED%/}"/usr/share/applications/"${MY_PN}".desktop || die "mv failed" |
140 |
+} |
141 |
+ |
142 |
+pkg_postinst() { |
143 |
+ elog "Genymotion needs adb to work correctly: install with android-sdk-update-manager" |
144 |
+ elog "'Android SDK Platform-tools' and 'Android SDK Tools'" |
145 |
+ elog "Your user should also be in the android group to work correctly" |
146 |
+ elog "Then in Genymotion set the android-sdk-update-manager directory: (Settings->ADB)" |
147 |
+ elog |
148 |
+ elog " /opt/android-sdk-update-manager" |
149 |
+} |