summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2010-03-08 21:19:19 +0000
committerMichał Górny <mgorny@gentoo.org>2010-03-08 21:19:19 +0000
commit2785dd2f1fa3af07732facdcb201f0bd88343162 (patch)
tree50b26f7aacc22a7eb73e11a4a143103c655c7389 /dev-util/adobe-air-sdk-bin
parentx11-plugins/pidgin-autoanswer: New ebuild for bug 308399 (diff)
downloadsunrise-2785dd2f1fa3af07732facdcb201f0bd88343162.tar.gz
sunrise-2785dd2f1fa3af07732facdcb201f0bd88343162.tar.bz2
sunrise-2785dd2f1fa3af07732facdcb201f0bd88343162.zip
dev-util/adobe-air-sdk-bin: New ebuild for bug #267555.
svn path=/sunrise/; revision=10258
Diffstat (limited to 'dev-util/adobe-air-sdk-bin')
-rw-r--r--dev-util/adobe-air-sdk-bin/ChangeLog9
-rw-r--r--dev-util/adobe-air-sdk-bin/Manifest7
-rw-r--r--dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-1.5.3.ebuild60
-rw-r--r--dev-util/adobe-air-sdk-bin/files/adobe-air-sdk-bin.xml16
-rw-r--r--dev-util/adobe-air-sdk-bin/files/airstart34
-rw-r--r--dev-util/adobe-air-sdk-bin/files/airstart.desktop10
-rw-r--r--dev-util/adobe-air-sdk-bin/metadata.xml5
7 files changed, 141 insertions, 0 deletions
diff --git a/dev-util/adobe-air-sdk-bin/ChangeLog b/dev-util/adobe-air-sdk-bin/ChangeLog
new file mode 100644
index 000000000..494604faf
--- /dev/null
+++ b/dev-util/adobe-air-sdk-bin/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/adobe-air-sdk-bin
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 08 Mar 2010; Michał Górny (sedzimir) <gentoo@mgorny.alt.pl>
+ +adobe-air-sdk-bin-1.5.3.ebuild, +files/adobe-air-sdk-bin.xml,
+ +files/airstart, +files/airstart.desktop, +metadata.xml:
+ New ebuild for bug #267555.
+
diff --git a/dev-util/adobe-air-sdk-bin/Manifest b/dev-util/adobe-air-sdk-bin/Manifest
new file mode 100644
index 000000000..9d96ebec3
--- /dev/null
+++ b/dev-util/adobe-air-sdk-bin/Manifest
@@ -0,0 +1,7 @@
+AUX adobe-air-sdk-bin.xml 733 RMD160 6eefe40d9609e229db418652036219e0f0f5d4b1 SHA1 5b5d0c9f56ad80407da13a69c3f7d8480f0ff19d SHA256 78ed2730fdae405e619c7ff56f9cb05b2d9542f86dfa1bd90a7ef1e334034011
+AUX airstart 545 RMD160 96b54f5fdc8ac2cc0814c5691847a0685a9a6205 SHA1 46b91c7c85f53c3e8c9b54914877241539997731 SHA256 668155a4751e99686c08823cea1d4b1c640f2d5adf80ffbd886322675ec61f2c
+AUX airstart.desktop 367 RMD160 120565cdbba01cb89c6f5d1433703f04bdd1d38d SHA1 70161b83e7e2e90005fdd947f1c020c5dcaa3686 SHA256 0b1670898b8dc5c295df88e5c84b486b5ad4ca3da99d8d918b39ce3418d331ed
+DIST AdobeAIRSDK-1.5.3.tbz2 19700568 RMD160 14d5b296c3cc87c1aa1149f30a4f9df39c1f10ab SHA1 0232a4ecf327fc8bcdfdf7fa14f5d81bddc6112c SHA256 aa33f9b38b57138d28403d5abf0654071bd972999cf8308ddec45b5866a81c8b
+EBUILD adobe-air-sdk-bin-1.5.3.ebuild 1481 RMD160 92b105f6d4f34c759ca692e2b5127fe295cf5e45 SHA1 77535db77cedf0fb2b68787c55d5860bfd079e0f SHA256 5696242e571a2f48b9bce129663bb3d00fe995adc33e6c6f7c8aa556ec6dd9c0
+MISC ChangeLog 346 RMD160 278b4eb9ef179d4a78c49b1858acae07bab6440c SHA1 948584bb01651356e9db827ed85729d23370860b SHA256 a565871fa429c98c9fad523f7cb6308d2558bb3aca6a622741505a0debbb302f
+MISC metadata.xml 171 RMD160 ed284df01c230fc7990a6b5888b39166d23f29ba SHA1 f3d64a69044b710e23fb874b3ee4cd338858c8b4 SHA256 a7b30fbacd0e4c312c07a3efac112a3794c81d134442d8104325734d03425adf
diff --git a/dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-1.5.3.ebuild b/dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-1.5.3.ebuild
new file mode 100644
index 000000000..a401a0671
--- /dev/null
+++ b/dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-1.5.3.ebuild
@@ -0,0 +1,60 @@
+# 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"
+IUSE=""
+
+RDEPEND="app-arch/unzip
+ 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,None} || die
+
+ insinto /${sdkdir}
+ doins -r * || die
+
+ cd "${D}" || die
+ fperms 0755 ${sdkdir}/bin/* ${sdkdir}/"${rtdir}"/{libCore.so,Resources/lib*.so*} || die
+
+ make_wrapper adl /${sdkdir}/bin/adl . /usr/lib32:/usr/lib32/nss:/usr/lib32/nspr /opt/bin
+
+ exeinto /opt/bin
+ doexe "${FILESDIR}"/airstart || die
+
+ # install the file association
+ # (we can't use make_desktop_entry because we like to have NoDisplay)
+ domenu "${FILESDIR}"/airstart.desktop || die
+
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/${PN}.xml || die
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/dev-util/adobe-air-sdk-bin/files/adobe-air-sdk-bin.xml b/dev-util/adobe-air-sdk-bin/files/adobe-air-sdk-bin.xml
new file mode 100644
index 000000000..e82a6f269
--- /dev/null
+++ b/dev-util/adobe-air-sdk-bin/files/adobe-air-sdk-bin.xml
@@ -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>
diff --git a/dev-util/adobe-air-sdk-bin/files/airstart b/dev-util/adobe-air-sdk-bin/files/airstart
new file mode 100644
index 000000000..db76d6c02
--- /dev/null
+++ b/dev-util/adobe-air-sdk-bin/files/airstart
@@ -0,0 +1,34 @@
+#!/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
+ cleanup
+ synopsis
+ return 1
+ fi
+
+ if ! unzip -q "$1" -d "${tmpdir}"; then
+ echo 'Unable to extract AIR application:' "$1" >&2
+ return 1
+ fi
+
+ /opt/bin/adl -nodebug "${tmpdir}"/META-INF/AIR/application.xml "${tmpdir}"
+}
+
+trap cleanup HUP INT QUIT TERM
+runair "$1"
+cleanup
diff --git a/dev-util/adobe-air-sdk-bin/files/airstart.desktop b/dev-util/adobe-air-sdk-bin/files/airstart.desktop
new file mode 100644
index 000000000..c4616ff20
--- /dev/null
+++ b/dev-util/adobe-air-sdk-bin/files/airstart.desktop
@@ -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;
diff --git a/dev-util/adobe-air-sdk-bin/metadata.xml b/dev-util/adobe-air-sdk-bin/metadata.xml
new file mode 100644
index 000000000..6f1d493c5
--- /dev/null
+++ b/dev-util/adobe-air-sdk-bin/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-wanted</herd>
+</pkgmetadata>