[arch-commits] Commit in lutris/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Mar 6 15:57:23 UTC 2022


    Date: Sunday, March 6, 2022 @ 15:57:22
  Author: felixonmars
Revision: 1142633

archrelease: copy trunk to community-staging-any

Added:
  lutris/repos/community-staging-any/
  lutris/repos/community-staging-any/PKGBUILD
    (from rev 1142632, lutris/trunk/PKGBUILD)
  lutris/repos/community-staging-any/sort_new_with_model_fix.patch
    (from rev 1142632, lutris/trunk/sort_new_with_model_fix.patch)

-------------------------------+
 PKGBUILD                      |   73 ++++++++++++++++++++++++++++++++++++++++
 sort_new_with_model_fix.patch |   26 ++++++++++++++
 2 files changed, 99 insertions(+)

Copied: lutris/repos/community-staging-any/PKGBUILD (from rev 1142632, lutris/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2022-03-06 15:57:22 UTC (rev 1142633)
@@ -0,0 +1,73 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Frederik “Freso” S. Olesen <freso.dk at gmail.com>
+
+pkgname=lutris
+pkgver=0.5.9.1
+pkgrel=5
+pkgdesc='Open Gaming Platform'
+arch=('any')
+url='https://lutris.net'
+license=('GPL3')
+depends=(
+  'cabextract'
+  'curl'
+  'glib2'
+  'gnome-desktop'
+  'gtk3'
+  'mesa-utils'
+  'p7zip'
+  'psmisc'
+  'python-dbus'
+  'python-distro'
+  'python-evdev'
+  'python-gobject'
+  'python-lxml'
+  'python-pillow'
+  'python-requests'
+  'python-yaml'
+  'unzip'
+  'webkit2gtk'
+  'xorg-xrandr'
+)
+makedepends=('python-setuptools')
+checkdepends=(
+  'python-nose-cover3'
+  'wine'
+  'xorg-server-xvfb'
+  'xterm'
+)
+optdepends=(
+  'gamemode: Allows games to request a temporary set of optimisations'
+  'gvfs: GVFS backend'
+  'innoextract: Extract Inno Setup installers'
+  'lib32-gamemode: Allows games to request a temporary set of optimisations'
+  'lib32-vkd3d: Vulkan 3D support'
+  'lib32-vulkan-icd-loader: Vulkan support'
+  'vkd3d: Vulkan 3D support'
+  'vulkan-icd-loader: Vulkan support'
+  'wine: Windows support'
+  'xorg-xgamma: Restore gamma on game exit'
+)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lutris/lutris/archive/v$pkgver.tar.gz")
+sha512sums=('7cfe897ea15366dda20da5f6324a422d94e064cb3794bfeda9733f3a5c3aeb71f52354e2571f365514e965e6346f0ebef8813e577b271d9ff40fe36dac212b19')
+
+build() {
+  cd $pkgname-$pkgver
+
+  python setup.py build
+}
+
+#check() {
+#  cd $pkgname-$pkgver
+#
+#  xvfb-run nosetests --cover-erase --with-xunit --xunit-file=nosetests.xml --with-coverage --cover-package=lutris --cover-xml-file=coverage.xml
+#}
+
+package() {
+  cd $pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+# vim: ts=2 sw=2 et:

Copied: lutris/repos/community-staging-any/sort_new_with_model_fix.patch (from rev 1142632, lutris/trunk/sort_new_with_model_fix.patch)
===================================================================
--- community-staging-any/sort_new_with_model_fix.patch	                        (rev 0)
+++ community-staging-any/sort_new_with_model_fix.patch	2022-03-06 15:57:22 UTC (rev 1142633)
@@ -0,0 +1,26 @@
+From 12a458db3c590c3f1972594e091a24cb4d65b610 Mon Sep 17 00:00:00 2001
+From: Mathieu Comandon <strycore at gmail.com>
+Date: Wed, 1 Jan 2020 12:47:55 -0800
+Subject: [PATCH] Support both sort_new_with_model and new_with_model
+
+---
+ lutris/gui/views/store.py | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/lutris/gui/views/store.py b/lutris/gui/views/store.py
+index 9e843e9e4..8fe5decf5 100644
+--- a/lutris/gui/views/store.py
++++ b/lutris/gui/views/store.py
+@@ -140,7 +140,11 @@ def __init__(
+         self.prevent_sort_update = False  # prevent recursion with signals
+         self.modelfilter = self.store.filter_new()
+         self.modelfilter.set_visible_func(self.filter_view)
+-        self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
++        try:
++            self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
++        except AttributeError:
++            # Apparently some API breaking changes on GTK minor versions.
++            self.modelsort = Gtk.TreeModelSort.new_with_model(self.modelfilter)
+         self.modelsort.connect("sort-column-changed", self.on_sort_column_changed)
+         self.modelsort.set_sort_func(sort_col, sort_func, sort_col)
+         self.sort_view(sort_key, sort_ascending)



More information about the arch-commits mailing list