Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: gweled-0.9.1
@ 2020-07-09  0:44 tibequadorian
  2020-07-09  8:08 ` [PR PATCH] [Updated] " tibequadorian
  2020-07-11 21:22 ` [PR PATCH] [Closed]: " tibequadorian
  0 siblings, 2 replies; 3+ messages in thread
From: tibequadorian @ 2020-07-09  0:44 UTC (permalink / raw)
  To: ml

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] New package: gweled-0.9.1
  2020-07-09  0:44 [PR PATCH] New package: gweled-0.9.1 tibequadorian
@ 2020-07-09  8:08 ` tibequadorian
  2020-07-11 21:22 ` [PR PATCH] [Closed]: " tibequadorian
  1 sibling, 0 replies; 3+ messages in thread
From: tibequadorian @ 2020-07-09  8:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

There is an updated 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: 2806 bytes --]

From c1466eee64b679abf9c5860f956c66e029f3f443 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..fd0e9bcc31d
--- /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="Bejeweled clone, 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: New package: gweled-0.9.1
  2020-07-09  0:44 [PR PATCH] New package: gweled-0.9.1 tibequadorian
  2020-07-09  8:08 ` [PR PATCH] [Updated] " tibequadorian
@ 2020-07-11 21:22 ` tibequadorian
  1 sibling, 0 replies; 3+ messages in thread
From: tibequadorian @ 2020-07-11 21:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 159 bytes --]

There's a closed pull request on the void-packages repository

New package: gweled-0.9.1
https://github.com/void-linux/void-packages/pull/23484

Description:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-11 21:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09  0:44 [PR PATCH] New package: gweled-0.9.1 tibequadorian
2020-07-09  8:08 ` [PR PATCH] [Updated] " tibequadorian
2020-07-11 21:22 ` [PR PATCH] [Closed]: " tibequadorian

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).