+++ /dev/null
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-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=""
-
-RESTRICT="strip"
-
-DEPEND=""
-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 */libcurl.so */libadobecertstore.so */libadobecp.so"
-QA_TEXTRELS="*/libcurl.so */libadobecertstore.so"
-QA_PREBUILT=".*\.so */bin/adl */bin/naip */bin/adb */Resources/rpmbuilder */Resources/appentry"
-
-S=${WORKDIR}
-
-src_install() {
- local sdkdir=opt/Adobe/AirSDK
- local rtdir="runtimes/air/linux/Adobe AIR/Versions/1.0"
-
- # remove the broken symlinks
- rm -fr "${rtdir}"/Resources/nss3/{0d,1d}
- use x86 && rm -rf "${rtdir}"/Resources/lib{curl,flashplayer}.so
-
- insinto /${sdkdir}
- doins -r *
-
- cd "${D}"
- fperms 0755 ${sdkdir}/bin/* ${sdkdir}/"${rtdir}"/{libCore.so,Resources/lib*.so*}
-
- 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
-
- # install the file association
- # (we can't use make_desktop_entry because we like to have NoDisplay)
- domenu "${FILESDIR}"/airstart.desktop
-
- insinto /usr/share/mime/packages
- doins "${FILESDIR}"/${PN}.xml
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-}
+++ /dev/null
-<?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>
+++ /dev/null
-#!/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