From 56eca0f99771bdae53367267d8bbc37186475330 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Bartoszkiewicz?= Date: Sat, 25 Aug 2012 22:53:17 +0200 Subject: [PATCH 1/1] Nowy pakiet: dev-util/adobe-air-sdk-bin-2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Ebuild pożyczony z overlaya xarthisius. --- dev-util/adobe-air-sdk-bin/Manifest | 5 ++ .../adobe-air-sdk-bin-2.6.ebuild | 76 +++++++++++++++++++ .../files/adobe-air-sdk-bin.xml | 17 +++++ dev-util/adobe-air-sdk-bin/files/airstart | 34 +++++++++ .../adobe-air-sdk-bin/files/airstart.desktop | 10 +++ 5 files changed, 142 insertions(+) create mode 100644 dev-util/adobe-air-sdk-bin/Manifest create mode 100644 dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-2.6.ebuild create mode 100644 dev-util/adobe-air-sdk-bin/files/adobe-air-sdk-bin.xml create mode 100644 dev-util/adobe-air-sdk-bin/files/airstart create mode 100644 dev-util/adobe-air-sdk-bin/files/airstart.desktop diff --git a/dev-util/adobe-air-sdk-bin/Manifest b/dev-util/adobe-air-sdk-bin/Manifest new file mode 100644 index 0000000..6ae628c --- /dev/null +++ b/dev-util/adobe-air-sdk-bin/Manifest @@ -0,0 +1,5 @@ +AUX adobe-air-sdk-bin.xml 734 SHA256 0b216727ea20a60fe9680b1d8b0f6ff90587ca6a1172c20248417ade1117aa2d SHA512 5c5b4a0c21cad0afc9e23e78713e491084c8c0d82585f218a419351f927a7e7f499e4e63333d51cb508c5e46dbb9c9c703e7e01327a4a23a672aa0bf2434d2f1 WHIRLPOOL 08b59e5128121d0604dea76638d8fb1647e7e67fda012e31a5cad645695c8193e53b8567280172a983e2bbaab47fdb7f7dbf38250f705450ceb46dc3bd5e9758 +AUX airstart 545 SHA256 668155a4751e99686c08823cea1d4b1c640f2d5adf80ffbd886322675ec61f2c SHA512 00967600bc8dfc08e0c6296ea1d72ceb2d52ef5742402b0eef81fc80193322d559613d257e74cfd5873b4fb299e39729095e79d6e0f024dce2ce5cf6e245b56f WHIRLPOOL 73ae595062bced5a001ac943a9ba8e2a318bb64cf207bbe7c1162919d877e7be2f3a57e234a6848990f8f6dc624d98857ae9bcc0c2e9487c77b61e2187571c0d +AUX airstart.desktop 367 SHA256 0b1670898b8dc5c295df88e5c84b486b5ad4ca3da99d8d918b39ce3418d331ed SHA512 0deed38679fd358c34326815e84e2648477c1508193103469e7afaf0be80e133f3a93e306ae87c8be8d507c91fe64d5e663ab7084de54f6459ee573ad9be2b52 WHIRLPOOL 67befaea45e80b7607c9e3aee51aba29f5e2a3dcd6550eb5f6f3c5bef6ec4ccfb2b90dd269290d2056cb7a0bd56940398ddb81cdc34e6c5bfaca4e72e36dcc09 +DIST AdobeAIRSDK-2.6.tbz2 37489410 SHA256 58912fc6797bcbab49de1f4accb4743a72e7b20384bae1babf9242ac88007501 SHA512 8185db9749f05bd60f3e52bf12de779c9f22da73142aca41326f57e24ef9b62c8f4bd9b7ba28cd110c7c4288d61870a8a9b8806bd51ae5cfd860aa57745d4527 WHIRLPOOL 38ae4dc5c74352224f8f20d6bf1f1c741e648cb6c3f66849487fd1f392bbad8bfdacb9765761db40e1ad0da6ff1bbc6e8103c3a5ba2eb7594e5bf5ca6c1d884d +EBUILD adobe-air-sdk-bin-2.6.ebuild 2012 SHA256 f069def68cefa58a91ddb469aa1f8e9d9a9f683b12e9f91d1216bedce31c5a6e SHA512 02567dcfe484568f07e6b4e834ff8944ea0a987a1e10296ead65902127079433cfa64ce03fda9af8ff5d2a46e1c900bb28bf9fa8a4e7dbaef2d080567ce680eb WHIRLPOOL 258fca2e9651fc0112b30a7ede4beac184c08a9d6933c2ddfa7ce914a53b411b7991fe0d3999cd59319619ce0e051ffe36302ad379f71cb313692a0fd5bb16ce diff --git a/dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-2.6.ebuild b/dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-2.6.ebuild new file mode 100644 index 0000000..a3c4de1 --- /dev/null +++ b/dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-2.6.ebuild @@ -0,0 +1,76 @@ +# 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 +} 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 0000000..14e4e6b --- /dev/null +++ b/dev-util/adobe-air-sdk-bin/files/adobe-air-sdk-bin.xml @@ -0,0 +1,17 @@ + + + + Adobe AIR application + Aplikacja Adobe AIR + + + + + + + + + + + + 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 0000000..db76d6c --- /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 0000000..c4616ff --- /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; -- 2.45.2