]> git.bzium.org/ - embe/overlay.git/blob - dev-util/adobe-air-sdk-bin/adobe-air-sdk-bin-2.6.ebuild
Podbicie wersji: games-roguelike/adom-1.2.0_pre15
[embe/overlay.git] / dev-util / adobe-air-sdk-bin / adobe-air-sdk-bin-2.6.ebuild
1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 inherit eutils fdo-mime multilib
8
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"
12
13 LICENSE="AdobeAIRSDK"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 RESTRICT="strip"
19
20 DEPEND=""
21 RDEPEND="app-arch/unzip
22         x86? ( dev-libs/libxml2
23                 dev-libs/nspr
24                 dev-libs/nss
25                 media-libs/libpng
26                 net-misc/curl
27                 www-plugins/adobe-flash
28                 x11-libs/cairo
29                 x11-libs/gtk+ )
30         amd64? ( app-emulation/emul-linux-x86-baselibs
31                 app-emulation/emul-linux-x86-gtklibs )"
32
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"
37
38 S=${WORKDIR}
39
40 src_install() {
41         local sdkdir=opt/Adobe/AirSDK
42         local rtdir="runtimes/air/linux/Adobe AIR/Versions/1.0"
43
44         # remove the broken symlinks
45         rm -fr "${rtdir}"/Resources/nss3/{0d,1d}
46         use x86 && rm -rf "${rtdir}"/Resources/lib{curl,flashplayer}.so
47
48         insinto /${sdkdir}
49         doins -r *
50
51         cd "${D}"
52         fperms 0755 ${sdkdir}/bin/* ${sdkdir}/"${rtdir}"/{libCore.so,Resources/lib*.so*}
53
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
56
57         exeinto /opt/bin
58         doexe "${FILESDIR}"/airstart
59
60         # install the file association
61         # (we can't use make_desktop_entry because we like to have NoDisplay)
62         domenu "${FILESDIR}"/airstart.desktop
63
64         insinto /usr/share/mime/packages
65         doins "${FILESDIR}"/${PN}.xml
66 }
67
68 pkg_postinst() {
69         fdo-mime_desktop_database_update
70         fdo-mime_mime_database_update
71 }
72
73 pkg_postrm() {
74         fdo-mime_desktop_database_update
75         fdo-mime_mime_database_update
76 }