diff options
author | nia <nia@pkgsrc.org> | 2021-01-01 15:46:56 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-01-01 15:46:56 +0000 |
commit | f7009be7303a6495ad6cea1b31dfb56dd4ef0dd7 (patch) | |
tree | 83b00bc671b7b2fd31fe8e2b4d6ba12b386791ab /x11/gtk2 | |
parent | da306b0794e4d457e3bd6758928d172473e6486d (diff) | |
download | pkgsrc-f7009be7303a6495ad6cea1b31dfb56dd4ef0dd7.tar.gz |
gtk2: Update to 2.24.33
Overview of Changes from GTK+ 2.24.32 to 2.24.33
================================================
*********************************************************
* *
* This is the final GTK 2.x release. *
* There will be no more updates to GTK 2. *
* All users are encouraged to update to GTK 3 or 4. *
* *
*********************************************************
* Make the output of gtk-query-immodules deterministic
* GtkCalendar: Use %OB if supported
* GtkIconTheme: prefer exact matches
* win32:
- Always process all available messages
- Ignore autorepeat for modifier keys
- Ensure monitor enumeration matches up
- Fix pkg-config file generation with msvc
- Fix UAC manifest rc file
- Add Visual Studio 2019 project files
* MacOS:
- Use NSGraphicsContext after Yosemite
- Force redraw on Mojave and later when processing updates
- Fix a use-after-free
* build:
- Support automake 1.16
- Fix compiler warnings with newer gcc
Diffstat (limited to 'x11/gtk2')
-rw-r--r-- | x11/gtk2/Makefile | 5 | ||||
-rw-r--r-- | x11/gtk2/distinfo | 11 | ||||
-rw-r--r-- | x11/gtk2/patches/patch-gtk_gtk-builder-convert | 123 |
3 files changed, 7 insertions, 132 deletions
diff --git a/x11/gtk2/Makefile b/x11/gtk2/Makefile index 32f04101e7f..c2192743370 100644 --- a/x11/gtk2/Makefile +++ b/x11/gtk2/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.319 2020/12/20 12:17:12 nia Exp $ +# $NetBSD: Makefile,v 1.320 2021/01/01 15:46:56 nia Exp $ -DISTNAME= gtk+-2.24.32 +DISTNAME= gtk+-2.24.33 PKGNAME= ${DISTNAME:S/gtk/gtk2/} -PKGREVISION= 19 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/2.24/} EXTRACT_SUFX= .tar.xz diff --git a/x11/gtk2/distinfo b/x11/gtk2/distinfo index fbd55d52add..6ff795cb39e 100644 --- a/x11/gtk2/distinfo +++ b/x11/gtk2/distinfo @@ -1,12 +1,11 @@ -$NetBSD: distinfo,v 1.165 2020/12/20 12:17:12 nia Exp $ +$NetBSD: distinfo,v 1.166 2021/01/01 15:46:56 nia Exp $ -SHA1 (gtk+-2.24.32.tar.xz) = c885ade62b06854590822c8eb906daf7dd15d90a -RMD160 (gtk+-2.24.32.tar.xz) = c0c83479fad040e25159bf7a8a9eb51322716a56 -SHA512 (gtk+-2.24.32.tar.xz) = 8e8fd9ae32f1d6fb544da260f00599f0f05090d910d767b06ef086ab4f1f8373a29bb0da9767761c9b5f4cfd51b5c45d0fa5d39b0428c839ddf0a579df806696 -Size (gtk+-2.24.32.tar.xz) = 12620860 bytes +SHA1 (gtk+-2.24.33.tar.xz) = 6fb0199cbb858456ba5d6fc9d7e4641f73476e76 +RMD160 (gtk+-2.24.33.tar.xz) = 85333860bdeda25f28c45177fe08d5f0914d4e52 +SHA512 (gtk+-2.24.33.tar.xz) = 71b588797c81f727dfac8dcb1be193f7436f717d30ecf18eae2d3aeb0f445b3be4743400acac16435490db8f564f01032065d3f42d27871317f80c98aef929d5 +Size (gtk+-2.24.33.tar.xz) = 12661828 bytes SHA1 (patch-ab) = 9c82cc60f3825d377a197c876fcc6faa379cbde3 SHA1 (patch-af) = d59414e24a7da7f8694dbefbd2f0c2c2b60ec5ad SHA1 (patch-aj) = 9887573ac7ade9e8f8ee2ead68e279f67836a1a3 -SHA1 (patch-gtk_gtk-builder-convert) = b6fced6b25e671a13e917967ec95d5f040578d8c SHA1 (patch-gtk_gtksearchenginesimple.c) = 3c44b84f2e0d3f7cdfb594bf56370f588d165b14 SHA1 (patch-gtk_gtktooltips.c) = 94f384b4becd74a9effcdbb72bbe3ee9a58d2bb8 diff --git a/x11/gtk2/patches/patch-gtk_gtk-builder-convert b/x11/gtk2/patches/patch-gtk_gtk-builder-convert deleted file mode 100644 index 6a806a5ab0e..00000000000 --- a/x11/gtk2/patches/patch-gtk_gtk-builder-convert +++ /dev/null @@ -1,123 +0,0 @@ -$NetBSD: patch-gtk_gtk-builder-convert,v 1.1 2020/12/20 12:17:12 nia Exp $ - -Compatibility with Python 3. From MacPorts. - ---- gtk/gtk-builder-convert.orig 2016-10-22 04:12:40.000000000 +0000 -+++ gtk/gtk-builder-convert -@@ -54,6 +54,24 @@ try: - except ImportError: - subprocess = None - -+# Sorted -+try: -+ sorted = sorted -+except NameError: -+ def sorted(iterable, cmp=None, key=None, reverse=False): -+ if key is None: -+ lst = list(iterable) -+ else: -+ lst = [(key(val), idx, val) for idx, val in enumerate(iterable)] -+ lst.sort() -+ if key is None: -+ if reverse: -+ return lst[::-1] -+ return lst -+ if reverse: -+ lst = lst[::-1] -+ return [i[-1] for i in lst] -+ - def get_child_nodes(node): - assert node.tagName == 'object' - nodes = [] -@@ -259,7 +277,7 @@ class GtkBuilderConverter(object): - for node in objects: - self._convert(node.getAttribute("class"), node) - if self._get_object(node.getAttribute('id')) is not None: -- print "WARNING: duplicate id \"" + node.getAttribute('id') + "\"" -+ print("WARNING: duplicate id \"" + node.getAttribute('id') + "\"") - self.objects[node.getAttribute('id')] = node - - # Convert Gazpachos UI tag -@@ -270,15 +288,7 @@ class GtkBuilderConverter(object): - for node in self._dom.getElementsByTagName("accessibility"): - self._convert_accessibility(node) - -- # Output the newly created root objects and sort them -- # by attribute id -- # FIXME: Use sorted(self.root_objects, -- # key=lambda n: n.getAttribute('id'), -- # reverse=True): -- # when we can depend on python 2.4 or higher -- root_objects = self.root_objects[:] -- root_objects.sort(lambda a, b: cmp(b.getAttribute('id'), -- a.getAttribute('id'))) -+ root_objects = sorted(self.root_objects, key=lambda n: n.getAttribute('id'), reverse=True) - for obj in root_objects: - self._interface.childNodes.insert(0, obj) - -@@ -461,8 +471,8 @@ class GtkBuilderConverter(object): - if signal_name in ['activate', 'toggled']: - action.appendChild(signal) - else: -- print 'Unhandled signal %s::%s' % (node.getAttribute('class'), -- signal_name) -+ print('Unhandled signal %s::%s' % (node.getAttribute('class'), -+ signal_name)) - - if not uimgr.childNodes: - child = self._dom.createElement('child') -@@ -481,8 +491,8 @@ class GtkBuilderConverter(object): - for accelerator in get_accelerator_nodes(node): - signal_name = accelerator.getAttribute('signal') - if signal_name != 'activate': -- print 'Unhandled accelerator signal for %s::%s' % ( -- node.getAttribute('class'), signal_name) -+ print('Unhandled accelerator signal for %s::%s' % ( -+ node.getAttribute('class'), signal_name)) - continue - accelerator.removeAttribute('signal') - child.appendChild(accelerator) -@@ -547,12 +557,12 @@ class GtkBuilderConverter(object): - if prop.childNodes: - data = prop.childNodes[0].data - value, lower, upper, step, page, page_size = data.split(' ') -- properties.update(value=value, -- lower=lower, -- upper=upper, -- step_increment=step, -- page_increment=page, -- page_size=page_size) -+ properties.update(dict(value=value, -+ lower=lower, -+ upper=upper, -+ step_increment=step, -+ page_increment=page, -+ page_size=page_size)) - else: - prop.appendChild(self._dom.createTextNode("")) - -@@ -747,7 +757,7 @@ def _indent(output): - return s.stdout.read() - - def usage(): -- print __doc__ -+ print(__doc__) - - def main(args): - try: -@@ -786,12 +796,12 @@ def main(args): - root=root) - conv.parse_file(input_filename) - -- xml = _indent(conv.to_xml()) -+ xml = _indent(conv.to_xml()).decode() - if output_filename == "-": -- print xml -+ print(xml) - else: - open(output_filename, 'w').write(xml) -- print "Wrote", output_filename -+ print("Wrote", output_filename) - - return 0 - |