commit:     9a6b733e64a7258aa86e721457eaf0893cb6441d
Author:     Yuri Konotopov <ykonotopov <AT> gmail <DOT> com>
AuthorDate: Sat Sep 10 08:59:43 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sat Sep 17 14:44:31 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a6b733e

gnome-extra/chrome-gnome-shell: version bump, remove old.

Closes: https://github.com/gentoo/gentoo/pull/2252

Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 gnome-extra/chrome-gnome-shell/Manifest              |  2 +-
 ...-shell-6.2.ebuild => chrome-gnome-shell-7.ebuild} | 20 ++++++++++++++++----
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/gnome-extra/chrome-gnome-shell/Manifest 
b/gnome-extra/chrome-gnome-shell/Manifest
index 296c9c5..30a4810 100644
--- a/gnome-extra/chrome-gnome-shell/Manifest
+++ b/gnome-extra/chrome-gnome-shell/Manifest
@@ -1 +1 @@
-DIST chrome-gnome-shell-6.2.tar.xz 74668 SHA256 
8686e464b1eb85e8f917607b0cd764e92a06bc9c6108e17dba6b71f058a41fe5 SHA512 
8a4cf249bab8bea4551771c60f8afd16bb7ef2947f49f7abcdeb09d19305ce9d94da2b239ed38ae07da6e3a6b52c50c5562365df0573b6c7641980a2a24da9c9
 WHIRLPOOL 
3bf4240383dba35f6695c7e6744aaf5d98749e6d53f34ad9c0de7790c105978d96e58c7818c1a43597b63036cdae7a25842bf20b2b565af9f101d444eeb88682
+DIST chrome-gnome-shell-7.tar.xz 95952 SHA256 
c91ff43ed959ed07dc0cc29b20ab21d7f0f2c3b7a49e32d2d45f361357d748f3 SHA512 
cc57b9398d612a153dbc67eeb48ed3ef943985e4376b59bf683b20d230d4dd28394c2ae3b587ce3b39b9fcfeb56779473f23f27a06f7d8523f732b1e88cc6701
 WHIRLPOOL 
5181adf2d9e86fb314fa8bf184badc59823e66494ef0005aec7e6d4573f17eac8980c4fc4f4ad79796b36a8a7e3f08eb6d6aaec2bafdac85ed49cc09f5d65c52

diff --git a/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-6.2.ebuild 
b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-7.ebuild
similarity index 54%
rename from gnome-extra/chrome-gnome-shell/chrome-gnome-shell-6.2.ebuild
rename to gnome-extra/chrome-gnome-shell/chrome-gnome-shell-7.ebuild
index 0d03946..69e17ff 100644
--- a/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-6.2.ebuild
+++ b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-7.ebuild
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
 
 inherit cmake-utils python-single-r1
 
-DESCRIPTION="Provides integration with GNOME Shell extensions repository for 
Chrome browser"
+DESCRIPTION="GNOME Shell integration for Chrome/Chromium, Vivaldi, Opera 
browsers"
 HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome";
 SRC_URI="mirror://gnome/sources/${PN}/${PV}/${P}.tar.xz"
 
@@ -19,15 +19,27 @@ IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
+DEPEND="${PYTHON_DEPS}
+       sys-apps/coreutils
+"
 RDEPEND="${PYTHON_DEPS}
        dev-python/pygobject:3[${PYTHON_USEDEP}]
        gnome-base/gnome-shell
 "
 
 src_configure() {
-       python_setup
-       python_fix_shebang ./connector
-
        local mycmakeargs=( -DBUILD_EXTENSION=OFF )
        cmake-utils_src_configure
 }
+
+src_install() {
+       # Chrome policy files should be removed with package.
+       # Otherwise it will not be possible to uninstall web extension
+       # from browser.
+       echo -n "CONFIG_PROTECT_MASK=\"" > 50"${PN}" || die
+       echo -n "/etc/chromium/policies/managed/${PN}.json " >> 50"${PN}" || die
+       echo "/etc/opt/chrome/policies/managed/${PN}.json\"" >> 50"${PN}" || die
+       doenvd 50"${PN}"
+
+       cmake-utils_src_install
+}

Reply via email to