public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Pacho Ramos" <pacho@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-tweak-tool/, gnome-extra/gnome-tweak-tool/files/
Date: Sat,  2 Apr 2016 13:15:44 +0000 (UTC)	[thread overview]
Message-ID: <1459602937.33f06a2f55dd58ae723164e8bdb2362250e3972d.pacho@gentoo> (raw)

commit:     33f06a2f55dd58ae723164e8bdb2362250e3972d
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  2 13:14:35 2016 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Apr  2 13:15:37 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33f06a2f

gnome-extra/gnome-tweak-tool: Stop relying on libsoup-gnome

Package-Manager: portage-2.2.28

 .../files/gnome-tweak-tool-3.18.1-libsoup.patch    | 41 ++++++++++++
 .../gnome-tweak-tool-3.18.1-r2.ebuild              | 78 ++++++++++++++++++++++
 2 files changed, 119 insertions(+)

diff --git a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.18.1-libsoup.patch b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.18.1-libsoup.patch
new file mode 100644
index 0000000..16aac12
--- /dev/null
+++ b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.18.1-libsoup.patch
@@ -0,0 +1,41 @@
+From 0335e0edd652542ab6b995dc3e4334251b582b5d Mon Sep 17 00:00:00 2001
+From: Rui Matos <tiagomatos@gmail.com>
+Date: Sun, 17 Jan 2016 19:48:51 +0100
+Subject: egowrapper: Port to new Soup.Session API
+
+This also allows us to stop using SoupGNOME since Soup.Session now
+uses the system's default proxy by default.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=759951
+---
+ gtweak/egowrapper.py | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/gtweak/egowrapper.py b/gtweak/egowrapper.py
+index 738172a..9657c9b 100644
+--- a/gtweak/egowrapper.py
++++ b/gtweak/egowrapper.py
+@@ -20,9 +20,8 @@ import logging
+ 
+ import gi
+ gi.require_version("Soup", "2.4")
+-gi.require_version("SoupGNOME", "2.4")
+ from gi.repository import GObject
+-from gi.repository import Soup, SoupGNOME
++from gi.repository import Soup
+ 
+ class ExtensionsDotGnomeDotOrg(GObject.GObject):
+ 
+@@ -35,8 +34,7 @@ class ExtensionsDotGnomeDotOrg(GObject.GObject):
+ 
+     def __init__(self, shell_version_tuple):
+         GObject.GObject.__init__(self)
+-        self._session = Soup.SessionAsync.new()
+-        self._session.add_feature_by_type(SoupGNOME.ProxyResolverGNOME)
++        self._session = Soup.Session.new()
+ 
+         self._shell_version_tuple = shell_version_tuple
+         self._extensions = {}
+-- 
+cgit v0.12
+

diff --git a/gnome-extra/gnome-tweak-tool/gnome-tweak-tool-3.18.1-r2.ebuild b/gnome-extra/gnome-tweak-tool/gnome-tweak-tool-3.18.1-r2.ebuild
new file mode 100644
index 0000000..46f7e03
--- /dev/null
+++ b/gnome-extra/gnome-tweak-tool/gnome-tweak-tool-3.18.1-r2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils gnome2 python-r1
+
+DESCRIPTION="Tool to customize GNOME 3 options"
+HOMEPAGE="https://wiki.gnome.org/action/show/Apps/GnomeTweakTool"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+# Newer pygobject needed due upstream bug #723951
+COMMON_DEPEND="
+	${PYTHON_DEPS}
+	dev-libs/glib:2[dbus]
+	>=dev-python/pygobject-3.10.2:3[${PYTHON_USEDEP}]
+	>=gnome-base/gsettings-desktop-schemas-3.4
+"
+# g-s-d, gnome-desktop, gnome-shell etc. needed at runtime for the gsettings schemas
+RDEPEND="${COMMON_DEPEND}
+	>=gnome-base/gnome-desktop-3.6.0.1:3=[introspection]
+	>=x11-libs/gtk+-3.12:3[introspection]
+
+	net-libs/libsoup[introspection]
+	x11-libs/libnotify[introspection]
+
+	>=gnome-base/gnome-settings-daemon-3
+	gnome-base/gnome-shell
+	>=gnome-base/nautilus-3
+"
+DEPEND="${COMMON_DEPEND}
+	>=dev-util/intltool-0.40.0
+	virtual/pkgconfig
+"
+
+src_prepare() {
+	# Add contents of Gentoo's cursor theme directory to cursor theme list
+	epatch "${FILESDIR}/${PN}-3.10.1-gentoo-cursor-themes.patch"
+
+	# Prevent problems setting WM preferences, upstream bug #706834
+	epatch "${FILESDIR}/${PN}-3.8.1-wm-preferences.patch"
+
+	# Stop relying on libsoup-gnome (from 'master')
+	epatch "${FILESDIR}/${PN}-3.18.1-libsoup.patch"
+
+	gnome2_src_prepare
+	python_copy_sources
+}
+
+src_configure() {
+	python_foreach_impl run_in_build_dir gnome2_src_configure
+}
+
+src_compile() {
+	python_foreach_impl run_in_build_dir gnome2_src_compile
+}
+
+src_test() {
+	python_foreach_impl run_in_build_dir default
+}
+
+src_install() {
+	install_python() {
+		gnome2_src_install
+		python_doscript gnome-tweak-tool || die
+	}
+	python_foreach_impl run_in_build_dir install_python
+}


             reply	other threads:[~2016-04-02 13:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-02 13:15 Pacho Ramos [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-01-16  2:40 [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-tweak-tool/, gnome-extra/gnome-tweak-tool/files/ Mart Raudsepp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459602937.33f06a2f55dd58ae723164e8bdb2362250e3972d.pacho@gentoo \
    --to=pacho@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox