gnome-extra/chrome-gnome-shell: version bump, remove old.
authorYuri Konotopov <ykonotopov@gmail.com>
Sat, 10 Sep 2016 08:59:43 +0000 (11:59 +0300)
committerPatrice Clement <monsieurp@gentoo.org>
Sat, 17 Sep 2016 14:44:31 +0000 (16:44 +0200)
Closes: https://github.com/gentoo/gentoo/pull/2252

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
gnome-extra/chrome-gnome-shell/Manifest
gnome-extra/chrome-gnome-shell/chrome-gnome-shell-7.ebuild [moved from gnome-extra/chrome-gnome-shell/chrome-gnome-shell-6.2.ebuild with 54% similarity]

index 296c9c57d6b548846e14a3c8ab7015633a2e4fd6..30a48101fc0ebf0adfd228d84659eae772f4ec95 100644 (file)
@@ -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
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 0d03946d39933269922dfb0d2013af822d445e63..69e17ffb715e90de142db2e08c8bb99fcb7016ae 100644 (file)
@@ -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
+}