[arch-commits] Commit in telepathy-idle/repos/extra-x86_64 (4 files)

Antonio Rojas arojas at archlinux.org
Sun Nov 1 09:44:32 UTC 2020


    Date: Sunday, November 1, 2020 @ 09:44:31
  Author: arojas
Revision: 399101

archrelease: copy trunk to extra-x86_64

Added:
  telepathy-idle/repos/extra-x86_64/PKGBUILD
    (from rev 399100, telepathy-idle/trunk/PKGBUILD)
Deleted:
  telepathy-idle/repos/extra-x86_64/0001-tools-Fix-errors-running-glib-ginterface-gen-under-P.patch
  telepathy-idle/repos/extra-x86_64/0002-tools-Remove-outdated-is-unicode-checks.patch
  telepathy-idle/repos/extra-x86_64/PKGBUILD

-----------------------------------------------------------------+
 0001-tools-Fix-errors-running-glib-ginterface-gen-under-P.patch |  108 ----------
 0002-tools-Remove-outdated-is-unicode-checks.patch              |   45 ----
 PKGBUILD                                                        |   73 ++----
 3 files changed, 31 insertions(+), 195 deletions(-)

Deleted: 0001-tools-Fix-errors-running-glib-ginterface-gen-under-P.patch
===================================================================
--- 0001-tools-Fix-errors-running-glib-ginterface-gen-under-P.patch	2020-11-01 09:44:20 UTC (rev 399100)
+++ 0001-tools-Fix-errors-running-glib-ginterface-gen-under-P.patch	2020-11-01 09:44:31 UTC (rev 399101)
@@ -1,108 +0,0 @@
-From e8d12395db956727b037cefdf0e60ed409f0b33a Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess at hadess.net>
-Date: Tue, 17 Mar 2020 09:15:02 +0100
-Subject: [PATCH 1/2] tools: Fix errors running glib-ginterface-gen under
- Python3
-
-1)
-    print """\
-<snip>
-            dbus_g_method_return_error (context, ...)
-"""
-          ^
-SyntaxError: invalid syntax
-
-2)
-
-Traceback (most recent call last):
-  File "./tools/glib-ginterface-gen.py", line 30, in <module>
-    from libglibcodegen import Signature, type_to_gtype, cmp_by_name, \
-  File "/home/hadess/Projects/Fedora/merged/telepathy-idle/master/telepathy-idle-0.2.0/tools/libglibcodegen.py", line 157
-    raise Exception, "can't index a hashtable off non-basic type " + s
-                   ^
-SyntaxError: invalid syntax
-
-3)
-
-Traceback (most recent call last):
-  File "./tools/glib-ginterface-gen.py", line 30, in <module>
-    from libglibcodegen import Signature, type_to_gtype, cmp_by_name, \
-  File "/home/hadess/Projects/Fedora/merged/telepathy-idle/master/telepathy-idle-0.2.0/tools/libglibcodegen.py", line 172
-    raise Exception, "don't know the GType for " + s
-                   ^
-SyntaxError: invalid syntax
-
-4)
-
-Traceback (most recent call last):
-  File "../tools/glib-ginterface-gen.py", line 839, in <module>
-    Generator(dom, prefix, basename, signal_marshal_prefix, headers,
-  File "../tools/glib-ginterface-gen.py", line 736, in __call__
-    nodes.sort(cmp_by_name)
-TypeError: sort() takes no positional arguments
----
- tools/glib-ginterface-gen.py | 7 ++++---
- tools/libglibcodegen.py      | 4 ++--
- 2 files changed, 6 insertions(+), 5 deletions(-)
-
-diff --git a/tools/glib-ginterface-gen.py b/tools/glib-ginterface-gen.py
-index 8fea5df..e32d7b8 100644
---- a/tools/glib-ginterface-gen.py
-+++ b/tools/glib-ginterface-gen.py
-@@ -22,6 +22,7 @@
- # License along with this library; if not, write to the Free Software
- # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- 
-+import functools
- import sys
- import os.path
- import xml.dom.minidom
-@@ -733,7 +734,7 @@ class Generator(object):
- 
-     def __call__(self):
-         nodes = self.dom.getElementsByTagName('node')
--        nodes.sort(cmp_by_name)
-+        nodes.sort(key=functools.cmp_to_key(cmp_by_name))
- 
-         self.h('#include <glib-object.h>')
-         self.h('#include <dbus/dbus-glib.h>')
-@@ -768,7 +769,7 @@ class Generator(object):
-         file_set_contents(self.basename + '-gtk-doc.h', '\n'.join(self.__docs))
- 
- def cmdline_error():
--    print """\
-+    print ("""\
- usage:
-     gen-ginterface [OPTIONS] xmlfile Prefix_
- options:
-@@ -788,7 +789,7 @@ options:
-             void symbol (DBusGMethodInvocation *context)
-         and return some sort of "not implemented" error via
-             dbus_g_method_return_error (context, ...)
--"""
-+""")
-     sys.exit(1)
- 
- 
-diff --git a/tools/libglibcodegen.py b/tools/libglibcodegen.py
-index 6a9d214..2c9f164 100644
---- a/tools/libglibcodegen.py
-+++ b/tools/libglibcodegen.py
-@@ -154,7 +154,7 @@ def type_to_gtype(s):
-         return ("GHashTable *", "DBUS_TYPE_G_STRING_STRING_HASHTABLE", "BOXED", False)
-     elif s[:2] == 'a{':  #some arbitrary hash tables
-         if s[2] not in ('y', 'b', 'n', 'q', 'i', 'u', 's', 'o', 'g'):
--            raise Exception, "can't index a hashtable off non-basic type " + s
-+            raise Exception("can't index a hashtable off non-basic type " + s)
-         first = type_to_gtype(s[2])
-         second = type_to_gtype(s[3:-1])
-         return ("GHashTable *", "(dbus_g_type_get_map (\"GHashTable\", " + first[1] + ", " + second[1] + "))", "BOXED", False)
-@@ -169,4 +169,4 @@ def type_to_gtype(s):
-         return ("GValueArray *", gtype, "BOXED", True)
- 
-     # we just don't know ..
--    raise Exception, "don't know the GType for " + s
-+    raise(Exception, "don't know the GType for " + s)
--- 
-2.25.1
-

Deleted: 0002-tools-Remove-outdated-is-unicode-checks.patch
===================================================================
--- 0002-tools-Remove-outdated-is-unicode-checks.patch	2020-11-01 09:44:20 UTC (rev 399100)
+++ 0002-tools-Remove-outdated-is-unicode-checks.patch	2020-11-01 09:44:31 UTC (rev 399101)
@@ -1,45 +0,0 @@
-From 8cdedc1d6716b2bb8ac7a95a00cf696f82ebbc38 Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess at hadess.net>
-Date: Tue, 17 Mar 2020 09:37:04 +0100
-Subject: [PATCH 2/2] tools: Remove outdated "is unicode" checks
-
-Those aren't needed in Python3, the strings should already be UTF-8.
-
-Traceback (most recent call last):
-  File "../tools/glib-ginterface-gen.py", line 840, in <module>
-    Generator(dom, prefix, basename, signal_marshal_prefix, headers,
-  File "../tools/glib-ginterface-gen.py", line 739, in __call__
-    self.h('#include <glib-object.h>')
-  File "../tools/glib-ginterface-gen.py", line 89, in h
-    if isinstance(s, unicode):
-NameError: name 'unicode' is not defined
----
- tools/glib-ginterface-gen.py | 6 ------
- 1 file changed, 6 deletions(-)
-
-diff --git a/tools/glib-ginterface-gen.py b/tools/glib-ginterface-gen.py
-index e32d7b8..995d874 100644
---- a/tools/glib-ginterface-gen.py
-+++ b/tools/glib-ginterface-gen.py
-@@ -86,18 +86,12 @@ class Generator(object):
-         self.allow_havoc = allow_havoc
- 
-     def h(self, s):
--        if isinstance(s, unicode):
--            s = s.encode('utf-8')
-         self.__header.append(s)
- 
-     def b(self, s):
--        if isinstance(s, unicode):
--            s = s.encode('utf-8')
-         self.__body.append(s)
- 
-     def d(self, s):
--        if isinstance(s, unicode):
--            s = s.encode('utf-8')
-         self.__docs.append(s)
- 
-     def do_node(self, node):
--- 
-2.25.1
-

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-01 09:44:20 UTC (rev 399100)
+++ PKGBUILD	2020-11-01 09:44:31 UTC (rev 399101)
@@ -1,42 +0,0 @@
-# Maintainer:
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-# Contributor: Bjorn Lindeijer <bjorn lindeijer nl>
-# Contributor: Samuel Mendes <heka.lok at gmail.com>
-
-pkgname=telepathy-idle
-pkgver=0.2.0
-pkgrel=4
-pkgdesc="An IRC connection manager for Telepathy"
-arch=('x86_64')
-url="https://telepathy.freedesktop.org"
-groups=('telepathy')
-license=('LGPL')
-depends=('telepathy-glib')
-makedepends=('libxslt' 'python')
-source=(https://telepathy.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz{,.asc}
-        0001-tools-Fix-errors-running-glib-ginterface-gen-under-P.patch
-        0002-tools-Remove-outdated-is-unicode-checks.patch)
-sha256sums=('3013ad4b38d14ee630b8cc8ada5e95ccaa849b9a6fe15d2eaf6d0717d76f2fab'
-            'SKIP'
-            '619395db2e0757040f5c067487e748d07b427e67b95a9a8f554255425a631af3'
-            '6f3aeded2ec498afd3ced99c242297f3fb0e6e268faf03e3b362a90bf899f20d')
-validpgpkeys=('1B5A1BA811AAF0F12169E28AAC558671711E31B1') # Guillaume Desmottes <gdesmott at gnome.org>
-
-prepare() {
-    cd $pkgname-$pkgver
-    # python3 fixes taken from Fedora
-    patch -Np1 -i ../0001-tools-Fix-errors-running-glib-ginterface-gen-under-P.patch
-    patch -Np1 -i ../0002-tools-Remove-outdated-is-unicode-checks.patch
-}
-
-build() {
-    cd $pkgname-$pkgver
-    ./configure --prefix=/usr \
-    	--libexecdir=/usr/lib/telepathy
-    make
-}
-
-package() {
-    cd $pkgname-$pkgver
-    make DESTDIR="$pkgdir" install
-}

Copied: telepathy-idle/repos/extra-x86_64/PKGBUILD (from rev 399100, telepathy-idle/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-01 09:44:31 UTC (rev 399101)
@@ -0,0 +1,31 @@
+# Maintainer:
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Bjorn Lindeijer <bjorn lindeijer nl>
+# Contributor: Samuel Mendes <heka.lok at gmail.com>
+
+pkgname=telepathy-idle
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="An IRC connection manager for Telepathy"
+arch=(x86_64)
+url="https://telepathy.freedesktop.org"
+groups=(telepathy)
+license=(LGPL)
+depends=(telepathy-glib)
+makedepends=(libxslt python)
+source=(https://telepathy.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz{,.asc})
+sha256sums=('ac885cd43d999c1bb689e7042f923f3ff6a5ad8bb7071b915310236ad47bdf0a'
+            'SKIP')
+validpgpkeys=('AA33B0D27868E36C151780F0FE0B6D736B1195ED') # # Alexandr Akulich
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr \
+    --libexecdir=/usr/lib/telepathy
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list