summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2012-07-02 18:43:44 +0000
committerMike Gilbert <floppym@gentoo.org>2012-07-02 18:43:44 +0000
commit9d28285a6040a611eb962fbf059838e79a255e10 (patch)
tree0acea89bdc0d6ab63030689dbed84da93bbdbc61 /www-client
parentFix Changelog. Version bump. Bug #422501 (diff)
downloadgentoo-2-9d28285a6040a611eb962fbf059838e79a255e10.tar.gz
gentoo-2-9d28285a6040a611eb962fbf059838e79a255e10.tar.bz2
gentoo-2-9d28285a6040a611eb962fbf059838e79a255e10.zip
Rename PepperFlash plugin if CPU does not support SSE2. Bug 424147.
(Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
Diffstat (limited to 'www-client')
-rw-r--r--www-client/google-chrome/ChangeLog8
-rw-r--r--www-client/google-chrome/google-chrome-20.0.1132.47_beta144678.ebuild18
-rw-r--r--www-client/google-chrome/google-chrome-20.0.1132.47_p144678.ebuild18
-rw-r--r--www-client/google-chrome/google-chrome-21.0.1180.15_alpha144745.ebuild18
4 files changed, 58 insertions, 4 deletions
diff --git a/www-client/google-chrome/ChangeLog b/www-client/google-chrome/ChangeLog
index 523c5e4b1687..8d71efe9a2e1 100644
--- a/www-client/google-chrome/ChangeLog
+++ b/www-client/google-chrome/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-client/google-chrome
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/ChangeLog,v 1.152 2012/06/29 03:32:31 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/ChangeLog,v 1.153 2012/07/02 18:43:44 floppym Exp $
+
+ 02 Jul 2012; Mike Gilbert <floppym@gentoo.org>
+ google-chrome-20.0.1132.47_beta144678.ebuild,
+ google-chrome-20.0.1132.47_p144678.ebuild,
+ google-chrome-21.0.1180.15_alpha144745.ebuild:
+ Rename PepperFlash plugin if CPU does not support SSE2. Bug 424147.
*google-chrome-21.0.1180.15_alpha144745 (29 Jun 2012)
diff --git a/www-client/google-chrome/google-chrome-20.0.1132.47_beta144678.ebuild b/www-client/google-chrome/google-chrome-20.0.1132.47_beta144678.ebuild
index 9cee9de31576..9510a51a0065 100644
--- a/www-client/google-chrome/google-chrome-20.0.1132.47_beta144678.ebuild
+++ b/www-client/google-chrome/google-chrome-20.0.1132.47_beta144678.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-20.0.1132.47_beta144678.ebuild,v 1.1 2012/06/29 00:37:48 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-20.0.1132.47_beta144678.ebuild,v 1.2 2012/07/02 18:43:44 floppym Exp $
EAPI="4"
@@ -118,6 +118,22 @@ src_install() {
done
}
+any_cpu_missing_flag() {
+ local value=$1
+ grep '^flags' /proc/cpuinfo | grep -qv "$value"
+}
+
+
+pkg_preinst() {
+ chromium_pkg_preinst
+ if any_cpu_missing_flag sse2; then
+ ewarn "The bundled PepperFlash plugin requires a CPU that supports the"
+ ewarn "SSE2 instruction set, and at least one of your CPUs does not"
+ ewarn "support this feature. Renaming PepperFlash."
+ mv -v "${D}"opt/google/chrome/PepperFlash/libpepflashplayer.so{,.bak} || die
+ fi
+}
+
pkg_postinst() {
chromium_pkg_postinst
diff --git a/www-client/google-chrome/google-chrome-20.0.1132.47_p144678.ebuild b/www-client/google-chrome/google-chrome-20.0.1132.47_p144678.ebuild
index 9b36a6d50e80..f29b5bb628f1 100644
--- a/www-client/google-chrome/google-chrome-20.0.1132.47_p144678.ebuild
+++ b/www-client/google-chrome/google-chrome-20.0.1132.47_p144678.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-20.0.1132.47_p144678.ebuild,v 1.1 2012/06/29 00:37:48 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-20.0.1132.47_p144678.ebuild,v 1.2 2012/07/02 18:43:44 floppym Exp $
EAPI="4"
@@ -118,6 +118,22 @@ src_install() {
done
}
+any_cpu_missing_flag() {
+ local value=$1
+ grep '^flags' /proc/cpuinfo | grep -qv "$value"
+}
+
+
+pkg_preinst() {
+ chromium_pkg_preinst
+ if any_cpu_missing_flag sse2; then
+ ewarn "The bundled PepperFlash plugin requires a CPU that supports the"
+ ewarn "SSE2 instruction set, and at least one of your CPUs does not"
+ ewarn "support this feature. Renaming PepperFlash."
+ mv -v "${D}"opt/google/chrome/PepperFlash/libpepflashplayer.so{,.bak} || die
+ fi
+}
+
pkg_postinst() {
chromium_pkg_postinst
diff --git a/www-client/google-chrome/google-chrome-21.0.1180.15_alpha144745.ebuild b/www-client/google-chrome/google-chrome-21.0.1180.15_alpha144745.ebuild
index 7fde840a196f..ac10f8f30697 100644
--- a/www-client/google-chrome/google-chrome-21.0.1180.15_alpha144745.ebuild
+++ b/www-client/google-chrome/google-chrome-21.0.1180.15_alpha144745.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-21.0.1180.15_alpha144745.ebuild,v 1.1 2012/06/29 03:32:31 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-21.0.1180.15_alpha144745.ebuild,v 1.2 2012/07/02 18:43:44 floppym Exp $
EAPI="4"
@@ -118,6 +118,22 @@ src_install() {
done
}
+any_cpu_missing_flag() {
+ local value=$1
+ grep '^flags' /proc/cpuinfo | grep -qv "$value"
+}
+
+
+pkg_preinst() {
+ chromium_pkg_preinst
+ if any_cpu_missing_flag sse2; then
+ ewarn "The bundled PepperFlash plugin requires a CPU that supports the"
+ ewarn "SSE2 instruction set, and at least one of your CPUs does not"
+ ewarn "support this feature. Renaming PepperFlash."
+ mv -v "${D}"opt/google/chrome/PepperFlash/libpepflashplayer.so{,.bak} || die
+ fi
+}
+
pkg_postinst() {
chromium_pkg_postinst