Permalink
Browse files

Add Adobe Air 2.5 ebuild

  • Loading branch information...
1 parent bf4750a commit f0053ec622204e8a2731a2e69c25777dc8b88436 @sebasmagri committed Jan 16, 2011
@@ -0,0 +1,5 @@
+AUX adobe-air-sdk-bin.xml 733 RMD160 6eefe40d9609e229db418652036219e0f0f5d4b1 SHA1 5b5d0c9f56ad80407da13a69c3f7d8480f0ff19d SHA256 78ed2730fdae405e619c7ff56f9cb05b2d9542f86dfa1bd90a7ef1e334034011
+AUX airstart 548 RMD160 69238d3ac40c527f98b6231b67bd2a8366c42df0 SHA1 53432405b7091cd0fcc966b4a9d79d97c5290ccf SHA256 47773916abe8ebc74d771cc498df395aa29f47442e2be0d06e6e0b559f6bf620
+AUX airstart.desktop 367 RMD160 120565cdbba01cb89c6f5d1433703f04bdd1d38d SHA1 70161b83e7e2e90005fdd947f1c020c5dcaa3686 SHA256 0b1670898b8dc5c295df88e5c84b486b5ad4ca3da99d8d918b39ce3418d331ed
+DIST AdobeAIRSDK-2.5.tbz2 34681885 RMD160 84b54ca13202986f5c62e4aad1f2c76b6c6f4ac1 SHA1 a25041a82768bf82c288a195c4bab1e825bef97f SHA256 eb805725a8aedb09d9611330b9afac5b64d669a295b20bd29642d7eef6972d6e
+EBUILD adobe-air-sdk-bin-2.5.ebuild 1957 RMD160 2f66e57ec705bbb4ad508960705eb606ae296e0c SHA1 469bcaf98fbc8a67785f29dc201d7137a11d6871 SHA256 efc6527f0ad3129edd5db293912a8c993153534e51f5bafc12b3d705b57c7810
@@ -0,0 +1,73 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit eutils fdo-mime multilib
+
+DESCRIPTION="Adobe AIR SDK"
+HOMEPAGE="http://www.adobe.com/products/air/tools/sdk/"
+SRC_URI="http://airdownload.adobe.com/air/lin/download/${PV}/AdobeAIRSDK.tbz2 -> AdobeAIRSDK-${PV}.tbz2"
+
+LICENSE="AdobeAirSDK"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-arch/unzip
+ x86? ( dev-libs/libxml2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/libpng
+ net-misc/curl
+ www-plugins/adobe-flash
+ x11-libs/cairo
+ x11-libs/gtk+ )
+ amd64? ( app-emulation/emul-linux-x86-baselibs
+ app-emulation/emul-linux-x86-gtklibs )"
+
+QA_PRESTRIPPED=".*\.so
+ /opt/Adobe/AirSDK/bin/adl"
+QA_EXECSTACK="*/libCore.so"
+
+src_install() {
+ local sdkdir=opt/Adobe/AirSDK
+ local rtdir='runtimes/air/linux/Adobe AIR/Versions/1.0'
+
+ # remove the broken symlinks
+ rm -r "${rtdir}"/Resources/nss3/{0d,1d} || die "removing cruft failed"
+ if use x86; then
+ rm "${rtdir}"/Resources/lib{curl,flashplayer}.so || die "removing cruft failed"
+ fi
+
+ insinto /${sdkdir}
+ doins -r * || die "doins failed"
+
+ cd "${D}"
+ fperms 0755 ${sdkdir}/bin/* ${sdkdir}/"${rtdir}"/{libCore.so,Resources/lib*.so*} \
+ || die "chmod failed"
+
+ use x86 && make_wrapper adl /${sdkdir}/bin/adl . /usr/lib/nss:/usr/lib/nspr:/opt/netscape/plugins /opt/bin
+ use amd64 && make_wrapper adl /${sdkdir}/bin/adl . /usr/lib32:/usr/lib32/nss:/usr/lib32/nspr /opt/bin
+
+ exeinto /opt/bin
+ doexe "${FILESDIR}"/airstart || die "doexe failed"
+
+ # install the file association
+ # (we can't use make_desktop_entry because we like to have NoDisplay)
+ domenu "${FILESDIR}"/airstart.desktop || die "domenu failed"
+
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/${PN}.xml || die "doins failed"
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/vnd.adobe.air-application-installer-package+zip">
+ <comment>Adobe AIR application</comment>
+ <comment xml:lang="pl">Aplikacja Adobe AIR</comment>
+ <magic priority="50">
+ <match value="PK\003\004" type="string" offset="0">
+ <match value="mimetype" type="string" offset="30">
+ <match value="application/vnd.adobe.air-application-installer-package+zip" type="string" offset="38"/>
+ <match value="application/vnd.adobe.apollo-application-installer-package+zip" type="string" offset="38"/>
+ </match>
+ </match>
+ </magic>
+ <glob pattern="*.air"/>
+ </mime-type>
+</mime-info>
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+synopsis() {
+ echo "Synopsis: $0 appl.air" >&2
+ exit 1
+}
+
+[ -z "$1" ] && synopsis
+
+tmpdir="$(mktemp -d /tmp/adobeair.XXXXXXXXXX)"
+
+cleanup() {
+ rm -rf "${tmpdir}"
+}
+
+runair() {
+ if [ ! -f "$1" ]; then
+ echo 'Specified application file not found:' "$1" >&2
+ synopsis
+ return 1
+ fi
+
+ if ! unzip -q "$1" -d "${tmpdir}"; then
+ echo 'Unable to extract AIR application:' "$1" >&2
+ return 1
+ fi
+
+ /opt/Adobe/AirSDK/bin/adl -nodebug "${tmpdir}"/META-INF/AIR/application.xml "${tmpdir}"
+}
+
+trap cleanup HUP INT QUIT TERM
+runair "$1"
+cleanup
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Adobe AIR SDK application starter
+Comment=Start Adobe AIR applications using the SDK
+Exec=airstart %f
+NoDisplay=true
+Terminal=false
+Icon=/opt/Adobe/AirSDK/samples/icons/AIRApp_128.png
+MimeType=application/vnd.adobe.air-application-installer-package+zip;application/vnd.adobe.apollo-application-installer-package+zip;

0 comments on commit f0053ec

Please sign in to comment.