public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vadim A. Misbakh-Soloviov" <mva@mva.name>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-util/steam-games-meta/, dev-util/adobe-air-sdk-bin/files/, ...
Date: Sun,  5 May 2013 08:15:30 +0000 (UTC)	[thread overview]
Message-ID: <1367738459.d88765e786bddf026774f5e9bc677b8a5df622d1.mva@gentoo> (raw)

commit:     d88765e786bddf026774f5e9bc677b8a5df622d1
Author:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
AuthorDate: Sun May  5 07:20:59 2013 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Sun May  5 07:20:59 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=d88765e7

[dev-util/adobe-air-sdk-bin] Added + fixed steam dep (instead of air-runtime from steam overlay)

Signed-off-by: Vadim A. Misbakh-Soloviov <mva <AT> mva.name>

---
 .../adobe-air-sdk-bin/adobe-air-sdk-bin-2.6.ebuild |   74 ++++++++++++++++++++
 .../adobe-air-sdk-bin/files/adobe-air-sdk-bin.xml  |   17 +++++
 dev-util/adobe-air-sdk-bin/files/airstart          |   34 +++++++++
 dev-util/adobe-air-sdk-bin/files/airstart.desktop  |   10 +++
 .../steam-games-meta-0-r20130312.ebuild            |    2 +-
 5 files changed, 136 insertions(+), 1 deletions(-)

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..0295b14
--- /dev/null
+++ b/dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-2.6.ebuild
@@ -0,0 +1,74 @@
+# 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=""
+RESTRICT="strip"
+
+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"
+
+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
+}

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 @@
+<?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 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;

diff --git a/games-util/steam-games-meta/steam-games-meta-0-r20130312.ebuild b/games-util/steam-games-meta/steam-games-meta-0-r20130312.ebuild
index 8fbda14..46156e6 100644
--- a/games-util/steam-games-meta/steam-games-meta-0-r20130312.ebuild
+++ b/games-util/steam-games-meta/steam-games-meta-0-r20130312.ebuild
@@ -76,7 +76,7 @@ RDEPEND="
 				x11-apps/xwininfo
 			)
 		steamgames_defenders_quest? (
-				dev-util/adobe-air-runtime
+				dev-util/adobe-air-sdk-bin
 			)
 		steamgames_shatter? (
 				amd64? ( >=media-gfx/nvidia-cg-toolkit-3.1.0013 )


                 reply	other threads:[~2013-05-05  8:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1367738459.d88765e786bddf026774f5e9bc677b8a5df622d1.mva@gentoo \
    --to=mva@mva.name \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox