app-emulation/genymotion: Add simple first ebuild for genymotion the android emulator
authorDa Risk <da_risk@geekorum.com>
Thu, 17 Sep 2015 19:49:00 +0200
changeset 175 a0edc01f9602
parent 174 f4f8656da761
child 176 fa89ae11661d
app-emulation/genymotion: Add simple first ebuild for genymotion the android emulator (Portage version: 2.2.20.1/hg/Linux x86_64, unsigned Manifest commit)
app-emulation/genymotion/Manifest
app-emulation/genymotion/genymotion-2.5.2.ebuild
app-emulation/genymotion/metadata.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app-emulation/genymotion/Manifest	Thu Sep 17 19:49:00 2015 +0200
@@ -0,0 +1,2 @@
+DIST genymotion-2.5.2_x64.bin 25387747 SHA256 1a8d544b9d9deb9c9b0601efcd9ae0eccb509121f16d2cd8d9a8e5679cfd991e SHA512 3cb21992a022ab88aa66af3a26ca478606a1a5120be0a6a401d65cbe93206137cf22faea9d73a4ceee02a47c3a1f433b2baf0149422164956ed3cef1e32e21e5 WHIRLPOOL fce971f870b388dedbc92f2b67b4c8d1cc76cdf846a91c757ccdf3300b3553418deb593100d699669b1d9411bf134f8afce9f8b67614f4748650f2901517a470
+DIST genymotion-2.5.2_x86.bin 24297802 SHA256 ff0cac599d65a413567d0f05a7684c741b870c102497a246ebb1e80f2fd37268 SHA512 d6be204d31c326c90f1d214f7215bdc3ce4afa96cd2d37e159ea941e050e58b8705f90027680c194f5fe123451ad8e3326904e3cad24e7e1727f7ec4531a9de1 WHIRLPOOL 3869f8c2fb76f576691ffcb497c540111b353248b4d09486c89045058d8e8398e022ae5cc037c8616ef2ed24d81e1f2b86ad88c2368d06e8bcb9cb591dfcadec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app-emulation/genymotion/genymotion-2.5.2.ebuild	Thu Sep 17 19:49:00 2015 +0200
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="An awesome Android emulator"
+HOMEPAGE="http://www.genymotion.com"
+SRC_URI="amd64? ( http://files2.genymotion.com/${PN}/${P}/${P}_x64.bin )
+		 x86? ( http://files2.genymotion.com/${PN}/${P}/${P}_x86.bin )"
+
+LICENSE="GENYMOTION"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="system-qt"
+
+inherit pax-utils
+
+DEPEND=""
+RDEPEND="|| ( app-emulation/virtualbox
+		    app-emulation/virtualbox-bin )
+		 system-qt? (
+			=dev-qt/qtcore-4.8.5*
+			=dev-qt/qtgui-4.8.5*
+			=dev-qt/qtscript-4.8.5*
+			=dev-qt/qtsql-4.8.5*
+			=dev-qt/qtgui-4.8.5*
+			=dev-qt/qtwebkit-4.8.5*
+		 )"
+
+		 # other dependencies
+		 # libav protobuf qca
+
+QA_PRESTRIPPED="
+	/opt/genymotion/libQtSvg.so.4
+	/opt/genymotion/genymotion
+	/opt/genymotion/player
+	/opt/genymotion/sqldrivers/libqsqlite.so
+	/opt/genymotion/device-upgrade
+	/opt/genymotion/libQtScript.so.4
+	/opt/genymotion/libQtSql.so.4
+	/opt/genymotion/libswscale.so.2
+	/opt/genymotion/libavutil.so.51
+	/opt/genymotion/libQtNetwork.so.4
+	/opt/genymotion/lib64OpenglRender.so
+	/opt/genymotion/imageformats/libqtga.so
+	/opt/genymotion/imageformats/libqtiff.so
+	/opt/genymotion/imageformats/libqico.so
+	/opt/genymotion/imageformats/libqsvg.so
+	/opt/genymotion/imageformats/libqjpeg.so
+	/opt/genymotion/imageformats/libqgif.so
+	/opt/genymotion/imageformats/libqmng.so
+	/opt/genymotion/libQtGui.so.4
+	/opt/genymotion/libQtWebKit.so.4
+	/opt/genymotion/genymotion-tool
+	/opt/genymotion/libQtCore.so.4
+	/opt/genymotion/libQtXml.so.4
+	/opt/genymotion/libqca.so.2
+	/opt/genymotion/lib64GLES_CM_translator.so
+	/opt/genymotion/genyshell
+	/opt/genymotion/lib64GLES_V2_translator.so
+	/opt/genymotion/plugins/libvboxmanage.so.1.0.0
+	/opt/genymotion/lib64EGL_translator.so
+	/opt/genymotion/crypto/libqca-ossl.so
+	/opt/genymotion/tools/aapt
+	/opt/genymotion/tools/adb "
+
+src_unpack() {
+	mkdir "${S}"
+	skip=$(awk '/^__TARFILE_FOLLOWS__/ { print NR + 1; exit 0; }' "${DISTDIR}/${A}")
+	tail -n +$skip "${DISTDIR}/${A}" | tar -xj -C "${S}"
+}
+
+src_install() {
+	dodir "/opt/genymotion"
+	if use system-qt ; then
+		rm libQtCore.so.4 libQtGui.so.4 libQtNetwork.so.4 libQtScript.so.4 \
+			libQtSql.so.4 libQtSvg.so.4 libQtWebKit.so.4 libQtXml.so.4
+	fi
+	cp -R "${S}/*" "${D}/opt/genymotion"
+	pax-mark -m "${D}/opt/genymotion/genymotion"
+
+	dodir "/opt/bin"
+	dosym "/opt/genymotion/genymotion" "/opt/bin/genymotion"
+	dosym "/opt/genymotion/genymotion-shell" "/opt/bin/genymotion-shell"
+	dosym "/opt/genymotion/gmtool" "/opt/bin/gmtool"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app-emulation/genymotion/metadata.xml	Thu Sep 17 19:49:00 2015 +0200
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<longdescription lang="en">
+	</longdescription>
+	<maintainer>
+		<email>da_risk@geekorum.com</email>
+		<name>Frederic Barthelery</name>
+	</maintainer>
+<use>
+	<flag name="system-qt">Use the system-wide <cat>dev-qt</cat> packages instead of bundled.</flag>
+</use>
+</pkgmetadata>