diff options
Diffstat (limited to 'www-plugins')
-rw-r--r-- | www-plugins/adobe-flash/ChangeLog | 9 | ||||
-rw-r--r-- | www-plugins/adobe-flash/Manifest | 13 | ||||
-rw-r--r-- | www-plugins/adobe-flash/adobe-flash-10.3.183.75.ebuild | 118 | ||||
-rw-r--r-- | www-plugins/adobe-flash/adobe-flash-11.2.202.280.ebuild | 261 |
4 files changed, 396 insertions, 5 deletions
diff --git a/www-plugins/adobe-flash/ChangeLog b/www-plugins/adobe-flash/ChangeLog index 9076d2b49749..bb35a64b6d3e 100644 --- a/www-plugins/adobe-flash/ChangeLog +++ b/www-plugins/adobe-flash/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for www-plugins/adobe-flash # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.180 2013/03/15 14:24:14 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.181 2013/04/11 14:33:16 jer Exp $ + +*adobe-flash-11.2.202.280 (11 Apr 2013) +*adobe-flash-10.3.183.75 (11 Apr 2013) + + 11 Apr 2013; Jeroen Roovers <jer@gentoo.org> +adobe-flash-10.3.183.75.ebuild, + +adobe-flash-11.2.202.280.ebuild: + Version bump (bug #465534). 15 Mar 2013; Jeroen Roovers <jer@gentoo.org> -adobe-flash-11.2.202.273.ebuild: Old. diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest index ea4c49fb188b..97f5c5f93867 100644 --- a/www-plugins/adobe-flash/Manifest +++ b/www-plugins/adobe-flash/Manifest @@ -5,16 +5,21 @@ AUX flashplugin-lahf-fix.c 1038 SHA256 52acc6658eb7d49fb167c848345f7dcb49e4057e2 AUX memcpy-to-memmove.sh 1418 SHA256 08a7203d19ca0d1ecbfaf6c46d915a28e2de81da97e42ef3c56e3d370c380096 SHA512 1686108fc6a1f5438e0d054de55e95829f53e551bb11efbc2632e62cd4432edf93a26dced2409512bbc641d61c840e0d5f241c6716811dbff00f32586f4aaeac WHIRLPOOL 28c8d1cc1f557a812c1bfd078068d7e8fb40604e7060705446d6317dc6e76375cec81190ec42e979f2e6a43516466d0454f45152de31d43f7dd5fc9854db9296 AUX mms.cfg 4420 SHA256 0dd2a9f9aab559243c4d282b5c143ed8876b8d6f8be519bfa8ca6e8fc0c55d9a SHA512 597380071a06176f09df1a56cba24e83a74990c175fe9f167f026eacbf01e66a083d2389ff399ead0a39654a40ae636f8459feed2d6012e51e65c5407fe7fdbd WHIRLPOOL 915b86d717db181a776eb9392aaae2becac4747bc0e551900bfecdeda17f9d0495f54c7173e47adf2ea92567c193c466e302cac78bd2126f10fd9956c204596a DIST adobe-flash-10.3.183.68.i386.tar.gz 5466787 SHA256 8286af48046d566180b2dc79361e529ddfdd73d8634404337455138fbcbb651c SHA512 d8047f5ad78e5dbae6f5a9cf58be60526a56f461c9a7eeffba963b9c3e7b4753bca831cd6b59af80aec06525cef1ed44605e2143efc1a3928680bf1ce3fcea34 WHIRLPOOL 2f89df392fedf570d66ec337f8d42816840781f054b765a720784afdca2d511e677908c631ef387ea3d88176d3f19550708b77d7cb118c3d2ec2b192005d0687 +DIST adobe-flash-10.3.183.75.i386.tar.gz 5466873 SHA256 80391038d5060f376b16a6058d102188c44e985c583f29386ffceaf6ce24476b SHA512 010ac31c4718e8663a17f887324c1a04dff0eedf37f1a40391652a6af6f6ff38f17a9edb749470b6beac3504e63ec781062cbbf682f6dbcd7cb5099dffa29744 WHIRLPOOL 428da1a29c6cca953796933e98385e096ce571a6ef4600d16491999843e83175acdbc135e7118128313cce2b22a04c5113f2f6609ccb955859fce1d02f5c5c59 DIST adobe-flash-11.2.202.275.i386.tar.gz 6924007 SHA256 d58b597d69dcf1b61c062624f982cdb035631ed37d0bbda4f8fe8bdd6712b1ef SHA512 aa92f8b9ec9164e82ca30e23035109bc8b5231d771ce12b49266d26e3cc2152132dfbddfebd6a78a06be70f8cde972c6528a55ff4a1f27b6752d9637a20be901 WHIRLPOOL 19684d7a3edcaf7c507cc709cfc03f315c26a2af7e9b6ecfb0d351a1318f107a178b4a62fd4bdd50fd393779b77997ba136b9834597105fded378f02e6b543fc DIST adobe-flash-11.2.202.275.x86_64.tar.gz 7234388 SHA256 13ba2dba78027ad73c9ab300afff3e47ce8ceb0e9a1541f5b2d7517e57a77c5c SHA512 afca7cde79bada81c9c3dbc24f0c4b03773a3549e349af7d01854190b729f45400ec78bc56d50f6b36c86a2336a7d6ccf39779b687b5e83245b3cfe00164b24a WHIRLPOOL b53ee914e434ace878313c2a4d7cdb5ca1fa9235f6ae8c9c6760becf13ea996614fd709c51a2b9dd00c6e16c8eedf780067eb4bfd0721fd34f3135df8c89c9ec +DIST adobe-flash-11.2.202.280.i386.tar.gz 6923631 SHA256 b4b3e709fa758637c6e6d8ea711a62ca2c8105ff89b233da7cb1bc0087404d06 SHA512 dcbb586c004b6636796a0838e75e4c0d472c69c3c8b913d4ded527af2a4ef0f258c70fd0b0baf7542d5ba03ee45e0a46d67c5a856e9f157b5f6a1a0a1cf4ffc5 WHIRLPOOL 4bb8b0a1a3d50f41483d90e96706499f39f14ee07c6853c053c79b2af2aad6efb0ae9032b49be7e2f6cae9ac8a4f0e9eaef5c8d441c098750399399a935434cf +DIST adobe-flash-11.2.202.280.x86_64.tar.gz 7235302 SHA256 b8466163663cd781377abdcb8d2cfe43c6100551ed1c331f3d1aa7ad93bdb6dd SHA512 1d3cf55951f231d9283daad1592cf0be592b50fba58f1734d0de5c77a694db24f5445326aba0a260fb71e0f8fdd9e1bbd997733a5ae33fa19c622f8fdd88bb2b WHIRLPOOL fb7686194babb9f6c836dae09eba21671ad9ab6ffb7c56e55ddfde6e55b2b640dcc22e3de0d918192e012a63b94267008919eef24102f5b0880638e8f84fe1a5 EBUILD adobe-flash-10.3.183.68.ebuild 3530 SHA256 1ad8a3bd481b45f6f4cb4e5de76308fb6fff5f44c2db135c1bc2d6dc75008195 SHA512 f96285703579eec0cfa9c4eee2a72501067deb55df88d8f867555e128cad230267af4741fbff7b4cdaef9b64a441859699aebeac05cb3b67132ce0c09dc91fa9 WHIRLPOOL 06e10b3269b2ad3aeaa52d2ec8c924eed912a7d1c6fbc4e9cf857e2e4ec4a5229200d4e29fe1dc967a22ef866f9d40579b5acca76729627b2f010238ac580b1e +EBUILD adobe-flash-10.3.183.75.ebuild 3530 SHA256 8dc131e368c453b1e7fe8ab4c46f0d5ebd7117c16ba8e7dd5dcbf83c18568e5e SHA512 20e7a1690721b22cd54dbb493a8616266cc218ed89c967915e3e5dadda67bbe66ebb6f19f325ca3fb6dc0d8b35135687f847c26877b3cc6c9d3a2a40ad4bed8d WHIRLPOOL a556e80d2284b513a2a06d318050f4d0aca942968ce760ffc24d26ff1a3ed32bfd4a3647f58eed330230e88b156258904aa605f18b10e90b36ef25e8b33316d1 EBUILD adobe-flash-11.2.202.275.ebuild 8039 SHA256 d282fa119867554ad5c01c55219e2de8b6043d5340cbb0ace47e89e2e3f4f4a4 SHA512 f127929cceeaf17677efbb007fdb65673bbff8441d9a035b19382fbc3ca91c34a10dfe08fbad0211d63cda9471ebc2dba9bdb97589a5040dbdc4ccffdc3ec45b WHIRLPOOL d736917bb745cbd35fa41ac28c68422a941d6af24e0f7af8e4107a85f1cc30ac7c1e19bbe5cb9e5ecb83c502d3841ea40240abf05ef7743d68c0804cc5834220 -MISC ChangeLog 49036 SHA256 2b8b7cdf01be866d2193d81420f6a05255db5cadbc5a04a4f657d62e975119e5 SHA512 4273ca0e8ea57d5f76fdb9efa05684818e25d2cee268b08efe08f904a2b38d533e8cbe31015effdf058631a14d4554db9db19a9fae2302476032c8775908f0d5 WHIRLPOOL 082b18ab8b69761ef22236d1f04d0368de00d4d5261eb96e00f11954a69098226550ed6a560abb240882aae7a0ff97bb70e2603f9480bb2bccfd6e0c51e70bce +EBUILD adobe-flash-11.2.202.280.ebuild 8041 SHA256 62f4c3a7f330d9cc7b713cf13d3ee1add87b1596351561e5b3b09c178b89c2b2 SHA512 ac5e3a45b7a58f4e3f4e0575006c8e5f7893562c0b8db0cfebf7d62803add3b27e25ba275d65f552153b14385f653ba49b5e2fa2cbf3d5602af5c36b387ea71c WHIRLPOOL 23c50abec584a341a0d971fedf191ac1d724c28fec04d40d18fa72e4a704372b5077ab7f5a1f0df38f77c9761188e6925df9daf05ce68077f627263ce3467df5 +MISC ChangeLog 49263 SHA256 62c4a1bd798bdffde5c61bc207ff8d1dca6434f35cf2ca0b7c6e0975124447bd SHA512 b85ca137cbcc672e53e3eca801923d58ff986b4fe56be3d22fe9dad02e9902184c16e8156bc08f5ce29e09f8fa3ed8ccdb3ba11e99ef9d074584c94c931ea241 WHIRLPOOL 4c12d51455e0c869aab6d7db6fa7a18c0fc88828b871275383c9ce02db8c8b7672a411a9d78489aea6164c566373bcf4f17723d6e72c241b18a9807909f3e8da MISC metadata.xml 975 SHA256 c7f61bcfba67a817e96f88f722c6f27c9e651425741b1059c6669b9cfb36fa56 SHA512 243421601866d9eeb5017f22b1c15b4f8834fa8ad9561953f1e05f6c3b02e18b28b9a62dcb4d85f43f38c1fc021221004123cd1930225acaac5b491c2333fc5c WHIRLPOOL 99781ee2984d90ce8fe0c0f37fa91948fe6a843dc9e74ae4a92e645ab5345fc4835b220d4c8156d752787cba8b50a720409a670af7ad2c5c99968934119dd4d2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlFDLw8ACgkQVWmRsqeSphMjcgCfWE8GnvcNDRjIH1oYnI446bXG -2qwAnA5eXchWoKIAb+SWbRcd3Awr/tXd -=GqG6 +iEYEAREIAAYFAlFmya0ACgkQVWmRsqeSphNxAQCcD1GqYRgJZVKf+asalCjjm6+g +9CAAnid85yY4546zTADgr2TB7IrVdyoX +=wc3z -----END PGP SIGNATURE----- diff --git a/www-plugins/adobe-flash/adobe-flash-10.3.183.75.ebuild b/www-plugins/adobe-flash/adobe-flash-10.3.183.75.ebuild new file mode 100644 index 000000000000..46562e9ee676 --- /dev/null +++ b/www-plugins/adobe-flash/adobe-flash-10.3.183.75.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.3.183.75.ebuild,v 1.1 2013/04/11 14:33:16 jer Exp $ + +EAPI=4 +inherit nsplugins multilib toolchain-funcs versionator + +MY_32B_URI="http://fpdownload.macromedia.com/get/flashplayer/pdc/${PV}/install_flash_player_$(get_major_version)_linux.tar.gz -> ${P}.i386.tar.gz" + +DESCRIPTION="Adobe Flash Player" +SRC_URI="${MY_32B_URI}" +HOMEPAGE="http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html" +IUSE="selinux kde vdpau" +SLOT="0" + +KEYWORDS="-* ~amd64 ~x86" +LICENSE="AdobeFlash-10.3" +RESTRICT="strip mirror" + +S="${WORKDIR}" + +NATIVE_DEPS="x11-libs/gtk+:2 + media-libs/fontconfig + dev-libs/nss + net-misc/curl + vdpau? ( x11-libs/libvdpau ) + kde? ( kde-base/kcmshell ) + >=sys-libs/glibc-2.4" + +EMUL_DEPS="vdpau? ( >=app-emulation/emul-linux-x86-xlibs-20110129 ) + >=app-emulation/emul-linux-x86-gtklibs-20100409-r1 + app-emulation/emul-linux-x86-soundlibs" + +DEPEND="amd64? ( www-plugins/nspluginwrapper ) + selinux? ( sec-policy/selinux-flash )" +RDEPEND="x86? ( $NATIVE_DEPS ) + amd64? ( $EMUL_DEPS ) + || ( media-fonts/liberation-fonts media-fonts/corefonts ) + ${DEPEND}" + +# Where should this all go? (Bug #328639) +INSTALL_BASE="opt/Adobe/flash-player" +INSTALL_BASE32="${INSTALL_BASE}32" + +# Ignore QA warnings in these closed-source binaries, since we can't fix them: +QA_PREBUILT="opt/* usr/lib*/kde4/*" + +src_install() { + if use amd64; then + local oldabi="${ABI}" + ABI="x86" + BASE=${INSTALL_BASE32} + else + BASE=${INSTALL_BASE} + fi + + # The plugin itself + exeinto /${BASE}/plugin + doexe libflashplayer.so + inst_plugin /${BASE}/plugin/libflashplayer.so + + # The optional KDE4 KCM plugin + if use kde && ! use amd64; then + exeinto /usr/$(get_libdir)/kde4/ + doexe usr/$(get_libdir)/kde4/kcm_adobe_flash_player.so + insinto /usr/share/kde4/services + doins usr/share/kde4/services/kcm_adobe_flash_player.desktop + else + # No KDE applet, so allow the GTK utility to show up in KDE: + sed -i usr/share/applications/flash-player-properties.desktop \ + -e "/^NotShowIn=KDE;/d" || die "sed of .desktop file failed" + fi + + # The userland 'properties' standalone app: + exeinto /${BASE}/bin + doexe usr/bin/flash-player-properties + for icon in $(find usr/share/icons/ -name '*.png'); do + insinto /$(dirname $icon) + doins $icon + done + elog "Done with icons." + insinto usr/share/applications + sed -i usr/share/applications/flash-player-properties.desktop \ + -e "s:^Exec=:Exec=/${BASE}/bin/:" || die "sed of .desktop file failed" + doins usr/share/applications/flash-player-properties.desktop + + if use amd64; then + ABI="${oldabi}" + fi + + # The magic config file! + insinto "/etc/adobe" + doins "${FILESDIR}/mms.cfg" +} + +pkg_postinst() { + if use amd64; then + elog "Adobe has no stable 64-bit native version at this time." + #elog "The beta" + #elog "64-bit native release (codenamed \"square\") is installed as part" + #elog "of the unstable testing version of this package:" + #elog " ${CATEGORY}/${P}_p...." + elog + if has_version 'www-plugins/nspluginwrapper'; then + elog "nspluginwrapper detected: Installing plugin wrapper" + local oldabi="${ABI}" + ABI="x86" + local FLASH_SOURCE="${ROOT}/${INSTALL_BASE32}/plugin/libflashplayer.so" + nspluginwrapper -i "${FLASH_SOURCE}" + ABI="${oldabi}" + elog + else + elog "To use the 32-bit flash player in a native 64-bit firefox," + elog "you must install www-plugins/nspluginwrapper." + elog + fi + fi +} diff --git a/www-plugins/adobe-flash/adobe-flash-11.2.202.280.ebuild b/www-plugins/adobe-flash/adobe-flash-11.2.202.280.ebuild new file mode 100644 index 000000000000..abc70f807163 --- /dev/null +++ b/www-plugins/adobe-flash/adobe-flash-11.2.202.280.ebuild @@ -0,0 +1,261 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-11.2.202.280.ebuild,v 1.1 2013/04/11 14:33:16 jer Exp $ + +EAPI=4 +inherit nsplugins multilib toolchain-funcs versionator + +AF_URI="http://fpdownload.macromedia.com/get/flashplayer/pdc" +MY_32B_URI="${AF_URI}/${PV}/install_flash_player_$(get_major_version)_linux.i386.tar.gz -> ${P}.i386.tar.gz" +MY_64B_URI="${AF_URI}/${PV}/install_flash_player_$(get_major_version)_linux.x86_64.tar.gz -> ${P}.x86_64.tar.gz" + +DESCRIPTION="Adobe Flash Player" +SRC_URI="x86? ( ${MY_32B_URI} ) +amd64? ( + multilib? ( + 32bit? ( ${MY_32B_URI} ) + 64bit? ( ${MY_64B_URI} ) + ) + !multilib? ( ${MY_64B_URI} ) +)" +HOMEPAGE="http://www.adobe.com/products/flashplayer.html" +IUSE="multilib -32bit +64bit selinux vdpau kde +sse2check" +SLOT="0" + +KEYWORDS="-* ~amd64 ~x86" +LICENSE="AdobeFlash-11.x" +RESTRICT="strip mirror" + +S="${WORKDIR}" + +NATIVE_DEPS="x11-libs/gtk+:2 + media-libs/fontconfig + dev-libs/nss + net-misc/curl + vdpau? ( x11-libs/libvdpau ) + kde? ( kde-base/kcmshell ) + >=sys-libs/glibc-2.4" + +EMUL_DEPS="vdpau? ( >=app-emulation/emul-linux-x86-xlibs-20110129 ) + >=app-emulation/emul-linux-x86-gtklibs-20100409-r1 + app-emulation/emul-linux-x86-soundlibs" + +DEPEND="amd64? ( multilib? ( !64bit? ( www-plugins/nspluginwrapper ) ) ) + selinux? ( sec-policy/selinux-flash )" +RDEPEND="x86? ( $NATIVE_DEPS ) + amd64? ( + multilib? ( + 64bit? ( $NATIVE_DEPS ) + 32bit? ( $EMUL_DEPS ) + ) + !multilib? ( $NATIVE_DEPS ) + ) + || ( media-fonts/liberation-fonts media-fonts/corefonts ) + ${DEPEND}" + +# Where should this all go? (Bug #328639) +INSTALL_BASE="opt/Adobe/flash-player" + +# Ignore QA warnings in these closed-source binaries, since we can't fix them: +QA_PREBUILT="opt/*" + +any_cpu_missing_flag() { + local value=$1 + grep '^flags' /proc/cpuinfo | grep -qv "$value" +} + +pkg_pretend() { + if any_cpu_missing_flag 'sse2'; then + eerror "This version of adobe-flash requires a CPU that supports the" + eerror "SSE2 instruction set, and at least one of your CPUs does not" + eerror "support this feature." + eerror "" + if use sse2check; then + eerror "You should mask this version and use adobe-flash-10.3.* instead." + eerror "To do so, add the following line to your package.mask file:" + eerror " =${CATEGORY}/${P}" + eerror "" + eerror "Or if you are trying to build a binary package for another host" + eerror "that does support SSE2 instructions, you may override this" + eerror "check by setting USE=\"-sse2check\"" + eerror "" + die "${P} requires CPU with SSE2" + else + eerror "Continuing anyway due to USE=\"-sse2check\", but be aware that flash" + eerror "will not function unless all of the CPUs on the system where it" + eerror "is installed support the SSE2 instruction set." + fi + fi +} + +pkg_setup() { + if use x86; then + export native_install=1 + elif use amd64; then + # amd64 users may unselect the native 64bit binary, if they choose + # TODO: In future revisions, remove this ability now that 64-bit + # binaries are officially released and working. + if ! use multilib || use 64bit; then + export native_install=1 + else + unset native_install + fi + + if use multilib && use 32bit; then + export amd64_32bit=1 + else + unset amd64_32bit + fi + + if use multilib && ! use 32bit && ! use 64bit; then + eerror "You must select at least one architecture USE flag (32bit or 64bit)" + die "No library version selected [-32bit -64bit]" + fi + + unset need_lahf_wrapper + if [[ $native_install ]]; then + # 64bit flash requires the 'lahf' instruction (bug #268336) + if any_cpu_missing_flag 'lahf_lm'; then + export need_lahf_wrapper=1 + fi + fi + fi +} + +src_unpack() { + if [[ $amd64_32bit ]]; then + # Since the 32-bit and 64-bit packages collide, put the 32-bit one + # elsewhere: + local my_32b_src=${MY_32B_URI##*>} + local my_64b_src=${MY_64B_URI##*>} + if [[ $native_install ]]; then + unpack $my_64b_src + fi + mkdir 32bit + pushd 32bit >/dev/null + unpack $my_32b_src + popd >/dev/null + else + default_src_unpack + fi +} + +src_compile() { + if [[ $need_lahf_wrapper ]]; then + # This experimental wrapper, from Maks Verver via bug #268336 should + # emulate the missing lahf instruction affected platforms. + $(tc-getCC) -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so \ + "${FILESDIR}/flashplugin-lahf-fix.c" \ + || die "Compile of flashplugin-lahf-fix.so failed" + fi +} + +src_install() { + if [[ $native_install ]]; then + if use x86; then + local PKGLIB=lib + else + local PKGLIB=lib64 + fi + local BASE=${INSTALL_BASE} + + # The plugin itself + exeinto /${BASE}/flash-plugin + doexe libflashplayer.so + inst_plugin /${BASE}/flash-plugin/libflashplayer.so + + # The optional KDE4 KCM plugin + if use kde; then + exeinto /${BASE}/kde4 + doexe usr/${PKGLIB}/kde4/kcm_adobe_flash_player.so + dosym /${BASE}/kde4/kcm_adobe_flash_player.so \ + /usr/$(get_libdir)/kde4/kcm_adobe_flash_player.so + insinto /usr/share/kde4/services + doins usr/share/kde4/services/kcm_adobe_flash_player.desktop + else + # No KDE applet, so allow the GTK utility to show up in KDE: + sed -i usr/share/applications/flash-player-properties.desktop \ + -e "/^NotShowIn=KDE;/d" || die "sed of .desktop file failed" + fi + + # The userland 'flash-player-properties' standalone app: + exeinto /${BASE}/bin + doexe usr/bin/flash-player-properties + dosym /${BASE}/bin/flash-player-properties \ + usr/bin/flash-player-properties + + # Icon and .desktop for 'flash-player-properties' + for icon in $(find usr/share/icons/ -name '*.png'); do + insinto /$(dirname $icon) + doins $icon + done + dosym ../icons/hicolor/48x48/apps/flash-player-properties.png \ + usr/share/pixmaps/flash-player-properties.png + insinto usr/share/applications + sed -i usr/share/applications/flash-player-properties.desktop \ + -e "s:^Exec=:Exec=/${BASE}/bin/:" || die "sed of .desktop file failed" + doins usr/share/applications/flash-player-properties.desktop + fi + + if [[ $need_lahf_wrapper ]]; then + # This experimental wrapper, from Maks Verver via bug #268336 should + # emulate the missing lahf instruction affected platforms. + exeinto /${INSTALL_BASE} + doexe flashplugin-lahf-fix.so + inst_plugin /${INSTALL_BASE}/flashplugin-lahf-fix.so + fi + + if [[ $amd64_32bit ]]; then + # Only install the plugin, nothing else for 32-bit. + local oldabi="${ABI}" + ABI="x86" + + # 32b plugin + pushd "${S}/32bit" + exeinto /${INSTALL_BASE}32 + doexe libflashplayer.so + inst_plugin /${INSTALL_BASE}32/libflashplayer.so + popd + + ABI="${oldabi}" + fi + + # The magic config file! + insinto "/etc/adobe" + doins "${FILESDIR}/mms.cfg" +} + +pkg_postinst() { + if use amd64; then + if [[ $need_lahf_wrapper ]]; then + ewarn "Your processor does not support the 'lahf' instruction which is used" + ewarn "by Adobe's 64-bit flash binary. We have installed a wrapper which" + ewarn "should allow this plugin to run. If you encounter problems, please" + ewarn "adjust your USE flags to install only the 32-bit version and reinstall:" + ewarn " ${CATEGORY}/$PN[+32bit -64bit]" + elog + fi + if has_version 'www-plugins/nspluginwrapper'; then + if [[ $native_install ]]; then + # TODO: Perhaps parse the output of 'nspluginwrapper -l' + # However, the 64b flash plugin makes + # 'nspluginwrapper -l' segfault. + local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so" + if [[ -f ${FLASH_WRAPPER} ]]; then + einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed" + nspluginwrapper -r "${FLASH_WRAPPER}" + fi + else + einfo "nspluginwrapper detected: Installing plugin wrapper" + local oldabi="${ABI}" + ABI="x86" + local FLASH_SOURCE="${ROOT}/${INSTALL_BASE}32/libflashplayer.so" + nspluginwrapper -i "${FLASH_SOURCE}" + ABI="${oldabi}" + fi + elif [[ ! $native_install ]]; then + elog "To use the 32-bit flash player in a native 64-bit browser," + elog "you must install www-plugins/nspluginwrapper" + fi + fi +} |