From 9a6b733e64a7258aa86e721457eaf0893cb6441d Mon Sep 17 00:00:00 2001 From: Yuri Konotopov Date: Sat, 10 Sep 2016 11:59:43 +0300 Subject: gnome-extra/chrome-gnome-shell: version bump, remove old. Closes: https://github.com/gentoo/gentoo/pull/2252 Signed-off-by: Patrice Clement --- gnome-extra/chrome-gnome-shell/Manifest | 2 +- .../chrome-gnome-shell-6.2.ebuild | 33 ---------------- .../chrome-gnome-shell/chrome-gnome-shell-7.ebuild | 45 ++++++++++++++++++++++ 3 files changed, 46 insertions(+), 34 deletions(-) delete mode 100644 gnome-extra/chrome-gnome-shell/chrome-gnome-shell-6.2.ebuild create mode 100644 gnome-extra/chrome-gnome-shell/chrome-gnome-shell-7.ebuild (limited to 'gnome-extra/chrome-gnome-shell') diff --git a/gnome-extra/chrome-gnome-shell/Manifest b/gnome-extra/chrome-gnome-shell/Manifest index 296c9c57d6b5..30a48101fc0e 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-6.2.ebuild deleted file mode 100644 index 0d03946d3993..000000000000 --- a/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-6.2.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -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" -HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome" -SRC_URI="mirror://gnome/sources/${PN}/${PV}/${P}.tar.xz" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -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 -} diff --git a/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-7.ebuild b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-7.ebuild new file mode 100644 index 000000000000..69e17ffb715e --- /dev/null +++ b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-7.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit cmake-utils python-single-r1 + +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" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +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() { + 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 +} -- cgit v1.2.3-65-gdbad