1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils fdo-mime multilib
9 DESCRIPTION="Adobe AIR SDK"
10 HOMEPAGE="http://www.adobe.com/products/air/tools/sdk/"
11 SRC_URI="http://airdownload.adobe.com/air/lin/download/${PV}/AdobeAIRSDK.tbz2 -> AdobeAIRSDK-${PV}.tbz2"
15 KEYWORDS="~amd64 ~x86"
21 RDEPEND="app-arch/unzip
22 x86? ( dev-libs/libxml2
27 www-plugins/adobe-flash
30 amd64? ( app-emulation/emul-linux-x86-baselibs
31 app-emulation/emul-linux-x86-gtklibs )"
33 QA_PRESTRIPPED=".*\.so /opt/Adobe/AirSDK/bin/adl"
34 QA_EXECSTACK="*/libCore.so */libcurl.so */libadobecertstore.so */libadobecp.so"
35 QA_TEXTRELS="*/libcurl.so */libadobecertstore.so"
36 QA_PREBUILT=".*\.so */bin/adl */bin/naip */bin/adb */Resources/rpmbuilder */Resources/appentry"
41 local sdkdir=opt/Adobe/AirSDK
42 local rtdir="runtimes/air/linux/Adobe AIR/Versions/1.0"
44 # remove the broken symlinks
45 rm -fr "${rtdir}"/Resources/nss3/{0d,1d}
46 use x86 && rm -rf "${rtdir}"/Resources/lib{curl,flashplayer}.so
52 fperms 0755 ${sdkdir}/bin/* ${sdkdir}/"${rtdir}"/{libCore.so,Resources/lib*.so*}
54 use x86 && make_wrapper adl /${sdkdir}/bin/adl . /usr/lib/nss:/usr/lib/nspr:/opt/netscape/plugins /opt/bin
55 use amd64 && make_wrapper adl /${sdkdir}/bin/adl . /usr/lib32:/usr/lib32/nss:/usr/lib32/nspr /opt/bin
58 doexe "${FILESDIR}"/airstart
60 # install the file association
61 # (we can't use make_desktop_entry because we like to have NoDisplay)
62 domenu "${FILESDIR}"/airstart.desktop
64 insinto /usr/share/mime/packages
65 doins "${FILESDIR}"/${PN}.xml
69 fdo-mime_desktop_database_update
70 fdo-mime_mime_database_update
74 fdo-mime_desktop_database_update
75 fdo-mime_mime_database_update