<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5825d7ced1a248103d81b807c4ffb8111a73fabe">https://github.com/macports/macports-ports/commit/5825d7ced1a248103d81b807c4ffb8111a73fabe</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5825d7ced1a248103d81b807c4ffb8111a73fabe
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Oct 12 09:11:04 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> py-gobject: build when glib2 has +quartz variant
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://trac.macports.org/ticket/54981
</span>---
python/py-gobject/Portfile | 24 +++++++++++++++++++++++-
python/py-gobject/files/patch-quartz.diff | 24 ++++++++++++++++++++++++
2 files changed, 47 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-gobject/Portfile b/python/py-gobject/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 702e549..303f102 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-gobject/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-gobject/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,11 +2,12 @@
</span>
PortSystem 1.0
PortGroup python 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup active_variants 1.1
</span>
name py-gobject
set my_name pygobject
version 2.28.6
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span> epoch 20110613
set branch [join [lrange [split ${version} .] 0 1] .]
categories-append gnome
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -68,6 +69,27 @@ if {$subport ne $name} {
</span> xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
${destroot}${docdir}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant quartz {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 quartz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-quartz.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant x11 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset quartz]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset x11]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +quartz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset quartz] && ![variant_isset x11]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "Either +x11 or +quartz is required"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
livecheck.type none
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-gobject/files/patch-quartz.diff b/python/py-gobject/files/patch-quartz.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..cff3149
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-gobject/files/patch-quartz.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,24 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gio/unix.override.orig 2011-06-13 09:33:49.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gio/unix.override 2018-10-12 08:45:33.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -24,7 +24,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define NO_IMPORT_PYGOBJECT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pygobject.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <gio/gio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <gio/gdesktopappinfo.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <gio/gosxappinfo.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <gio/gunixinputstream.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <gio/gunixmounts.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <gio/gunixoutputstream.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gio/unix-types.defs.orig 2011-06-13 09:33:49.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gio/unix-types.defs 2018-10-12 09:00:28.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -15,8 +15,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (in-module "giounix")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (parent "GObject")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- (c-name "GDesktopAppInfo")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- (gtype-id "G_TYPE_DESKTOP_APP_INFO")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (c-name "GOsxAppInfo")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (gtype-id "G_TYPE_OSX_APP_INFO")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (define-object FDMessage
</span></pre><pre style='margin:0'>
</pre>