From: tibequadorian <tibequadorian@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: gweled-0.9.1
Date: Thu, 09 Jul 2020 02:44:52 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23484@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 321 bytes --]
There is a new pull request by tibequadorian against master on the void-packages repository
https://github.com/tibequadorian/void-packages gweled
https://github.com/void-linux/void-packages/pull/23484
New package: gweled-0.9.1
A patch file from https://github.com/void-linux/void-packages/pull/23484.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gweled-23484.patch --]
[-- Type: text/x-diff, Size: 2791 bytes --]
From e718c02334f2cf81ecbaa7a5d900960aa5a70ad7 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Thu, 9 Jul 2020 02:43:24 +0200
Subject: [PATCH] New package: gweled-0.9.1
---
.../gweled/patches/gweled-librsvg-crash.patch | 50 +++++++++++++++++++
srcpkgs/gweled/template | 13 +++++
2 files changed, 63 insertions(+)
create mode 100644 srcpkgs/gweled/patches/gweled-librsvg-crash.patch
create mode 100644 srcpkgs/gweled/template
diff --git a/srcpkgs/gweled/patches/gweled-librsvg-crash.patch b/srcpkgs/gweled/patches/gweled-librsvg-crash.patch
new file mode 100644
index 00000000000..fafd0749feb
--- /dev/null
+++ b/srcpkgs/gweled/patches/gweled-librsvg-crash.patch
@@ -0,0 +1,50 @@
+=== modified file 'src/sge_utils.c'
+--- src/sge_utils.c 2011-08-01 21:29:27 +0000
++++ src/sge_utils.c 2018-02-15 23:10:09 +0000
+@@ -18,6 +18,7 @@
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
++#include <gio/gio.h>
+ #include <gtk/gtk.h>
+ #include <librsvg/rsvg.h>
+
+@@ -30,7 +31,8 @@
+ {
+ gchar *full_pathname;
+ GdkPixbuf *pixbuf = NULL;
+- GError *error;
++ GError *error = NULL;
++ GFile *file;
+
+ full_pathname = g_strconcat(DATADIR "/pixmaps/",
+ filename,
+@@ -38,13 +40,25 @@
+ if (g_file_test(full_pathname, G_FILE_TEST_IS_REGULAR)) {
+ pixbuf = rsvg_pixbuf_from_file_at_size (full_pathname, width,
+ height, &error);
+- g_free (full_pathname);
++ if (pixbuf == NULL) {
++ // Some versions of librsvg need URI instead of path.
++ // https://gitlab.gnome.org/GNOME/librsvg/issues/198
++ g_clear_error (&error);
++ file = g_file_new_for_path (full_pathname);
++ g_free (full_pathname);
++ full_pathname = g_file_get_uri (file);
++ g_object_unref (file);
++ pixbuf = rsvg_pixbuf_from_file_at_size (full_pathname, width,
++ height, &error);
++ }
+ if (pixbuf == NULL)
+- g_free (error);
++ g_error_free (error);
+
+ } else
+ g_warning ("%s not found", filename);
+
++ g_free (full_pathname);
++
+ return pixbuf;
+ }
+
+
diff --git a/srcpkgs/gweled/template b/srcpkgs/gweled/template
new file mode 100644
index 00000000000..c3f382643ad
--- /dev/null
+++ b/srcpkgs/gweled/template
@@ -0,0 +1,13 @@
+# Template file for 'gweled'
+pkgname=gweled
+version=0.9.1
+revision=1
+build_style=gnu-configure
+hostmakedepends="intltool pkg-config"
+makedepends="gtk+-devel librsvg-devel libmikmod-devel"
+short_desc="A puzzle game with gems"
+maintainer="tibequadorian <tibequadorian@posteo.de>"
+license="GPL-2.0-or-later"
+homepage="https://gweled.org/"
+distfiles="http://launchpad.net/gweled/trunk/$version/+download/gweled-$version.tar.gz"
+checksum=f6064989040949659f5a970cf3a9dd280615df7ad67c014ac37e1466ce91055d
next reply other threads:[~2020-07-09 0:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-09 0:44 tibequadorian [this message]
2020-07-09 8:08 ` [PR PATCH] [Updated] " tibequadorian
2020-07-11 21:22 ` [PR PATCH] [Closed]: " tibequadorian
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23484@inbox.vuxu.org \
--to=tibequadorian@users.noreply.github.com \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).