/[gentoo-x86]/www-plugins/adobe-flash/adobe-flash-10.3.183.51.ebuild
Gentoo

Contents of /www-plugins/adobe-flash/adobe-flash-10.3.183.51.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Feb 13 14:40:38 2013 UTC (19 months, 1 week ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump (bug #457066).

(Portage version: 2.2.0_alpha162/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 jer 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jer 1.2 # $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.3.183.51.ebuild,v 1.1 2013/02/09 16:45:26 jer Exp $
4 jer 1.1
5     EAPI=4
6     inherit nsplugins multilib toolchain-funcs versionator
7    
8     MY_32B_URI="http://fpdownload.macromedia.com/get/flashplayer/pdc/${PV}/install_flash_player_$(get_major_version)_linux.tar.gz -> ${P}.i386.tar.gz"
9    
10     DESCRIPTION="Adobe Flash Player"
11     SRC_URI="${MY_32B_URI}"
12     HOMEPAGE="http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html"
13     IUSE="selinux kde vdpau"
14     SLOT="0"
15    
16     KEYWORDS="-* ~amd64 ~x86"
17     LICENSE="AdobeFlash-10.3"
18     RESTRICT="strip mirror"
19    
20     S="${WORKDIR}"
21    
22     NATIVE_DEPS="x11-libs/gtk+:2
23     media-libs/fontconfig
24     dev-libs/nss
25     net-misc/curl
26     vdpau? ( x11-libs/libvdpau )
27     kde? ( kde-base/kcmshell )
28     >=sys-libs/glibc-2.4"
29    
30     EMUL_DEPS="vdpau? ( >=app-emulation/emul-linux-x86-xlibs-20110129 )
31     >=app-emulation/emul-linux-x86-gtklibs-20100409-r1
32     app-emulation/emul-linux-x86-soundlibs"
33    
34     DEPEND="amd64? ( www-plugins/nspluginwrapper )
35     selinux? ( sec-policy/selinux-flash )"
36     RDEPEND="x86? ( $NATIVE_DEPS )
37     amd64? ( $EMUL_DEPS )
38     || ( media-fonts/liberation-fonts media-fonts/corefonts )
39     ${DEPEND}"
40    
41     # Where should this all go? (Bug #328639)
42     INSTALL_BASE="opt/Adobe/flash-player"
43     INSTALL_BASE32="${INSTALL_BASE}32"
44    
45     # Ignore QA warnings in these closed-source binaries, since we can't fix them:
46     QA_PREBUILT="opt/* usr/lib*/kde4/*"
47    
48     src_install() {
49     if use amd64; then
50     local oldabi="${ABI}"
51     ABI="x86"
52     BASE=${INSTALL_BASE32}
53     else
54     BASE=${INSTALL_BASE}
55     fi
56    
57     # The plugin itself
58     exeinto /${BASE}/plugin
59     doexe libflashplayer.so
60     inst_plugin /${BASE}/plugin/libflashplayer.so
61    
62     # The optional KDE4 KCM plugin
63     if use kde && ! use amd64; then
64     exeinto /usr/$(get_libdir)/kde4/
65     doexe usr/$(get_libdir)/kde4/kcm_adobe_flash_player.so
66     insinto /usr/share/kde4/services
67     doins usr/share/kde4/services/kcm_adobe_flash_player.desktop
68     else
69     # No KDE applet, so allow the GTK utility to show up in KDE:
70     sed -i usr/share/applications/flash-player-properties.desktop \
71     -e "/^NotShowIn=KDE;/d" || die "sed of .desktop file failed"
72     fi
73    
74     # The userland 'properties' standalone app:
75     exeinto /${BASE}/bin
76     doexe usr/bin/flash-player-properties
77     for icon in $(find usr/share/icons/ -name '*.png'); do
78     insinto /$(dirname $icon)
79     doins $icon
80     done
81     elog "Done with icons."
82     insinto usr/share/applications
83     sed -i usr/share/applications/flash-player-properties.desktop \
84     -e "s:^Exec=:Exec=/${BASE}/bin/:" || die "sed of .desktop file failed"
85     doins usr/share/applications/flash-player-properties.desktop
86    
87     if use amd64; then
88     ABI="${oldabi}"
89     fi
90    
91     # The magic config file!
92     insinto "/etc/adobe"
93     doins "${FILESDIR}/mms.cfg"
94     }
95    
96     pkg_postinst() {
97     if use amd64; then
98     elog "Adobe has no stable 64-bit native version at this time."
99     #elog "The beta"
100     #elog "64-bit native release (codenamed \"square\") is installed as part"
101     #elog "of the unstable testing version of this package:"
102     #elog " ${CATEGORY}/${P}_p...."
103     elog
104     if has_version 'www-plugins/nspluginwrapper'; then
105     elog "nspluginwrapper detected: Installing plugin wrapper"
106     local oldabi="${ABI}"
107     ABI="x86"
108     local FLASH_SOURCE="${ROOT}/${INSTALL_BASE32}/plugin/libflashplayer.so"
109     nspluginwrapper -i "${FLASH_SOURCE}"
110     ABI="${oldabi}"
111     elog
112     else
113     elog "To use the 32-bit flash player in a native 64-bit firefox,"
114     elog "you must install www-plugins/nspluginwrapper."
115     elog
116     fi
117     fi
118     }

  ViewVC Help
Powered by ViewVC 1.1.20