commit b09eec357efe9f5f6ff87ec294a9eaab8c1f0034
Author: Mihai Moldovan <ionic@ionic.de>
Date: Sat Jul 29 09:46:04 2017 +0200
devel/glib2-devel: fix linking errors for projects using C++ and glib-genmarshal.
Fixes: https://trac.macports.org/ticket/54543.
diff --git a/devel/glib2-devel/Portfile b/devel/glib2-devel/Portfile
index c904ad4..7160a70 100644
a
|
b
|
name glib2-devel |
9 | 9 | conflicts glib2 |
10 | 10 | set my_name glib |
11 | 11 | version 2.53.4 |
| 12 | revision 1 |
12 | 13 | set branch [join [lrange [split ${version} .] 0 1] .] |
13 | 14 | categories devel |
14 | 15 | maintainers {ryandesign @ryandesign} openmaintainer |
… |
… |
checksums rmd160 e5fbb4461eddd12a4bdf6f660d5b68c6e15cd9e7 \ |
36 | 37 | # patch-configure-switch-for-gappinfo-impl-mp.diff: understand comments inline! |
37 | 38 | # => https://trac.macports.org/ticket/53911 |
38 | 39 | # => https://bugzilla.gnome.org/show_bug.cgi?id=781548 |
| 40 | # patch-gobject_glib-genmarshal.in-fix-CXX-projects.diff: |
| 41 | # => https://trac.macports.org/ticket/54543 |
| 42 | # => https://bugzilla.gnome.org/show_bug.cgi?id=785554 |
39 | 43 | patchfiles patch-configure.diff \ |
40 | 44 | patch-glib-2.0.pc.in.diff \ |
41 | 45 | patch-glib-gmain.c.diff \ |
… |
… |
patchfiles patch-configure.diff \ |
45 | 49 | patch-gio_gdbusprivate.c.diff \ |
46 | 50 | patch-get-launchd-dbus-session-address.diff \ |
47 | 51 | patch-gmodule-gmodule-dl.c.diff \ |
48 | | patch-configure-switch-for-gappinfo-impl-mp.diff |
| 52 | patch-configure-switch-for-gappinfo-impl-mp.diff \ |
| 53 | patch-gobject_glib-genmarshal.in-fix-CXX-projects.diff |
49 | 54 | |
50 | 55 | depends_build bin:xmllint:libxml2 |
51 | 56 | |
diff --git a/devel/glib2-devel/files/patch-gobject_glib-genmarshal.in-fix-CXX-projects.diff b/devel/glib2-devel/files/patch-gobject_glib-genmarshal.in-fix-CXX-projects.diff
new file mode 100644
index 0000000..a3037a0
-
|
+
|
|
| 1 | --- gobject/glib-genmarshal.in.old 2017-07-17 16:21:48.000000000 +0200 |
| 2 | +++ gobject/glib-genmarshal.in 2017-07-29 09:22:31.000000000 +0200 |
| 3 | @@ -556,7 +556,7 @@ def generate_prototype(retval, params, |
| 4 | va_marshal=False): |
| 5 | '''Generate a marshaller declaration with the given @visibility. If @va_marshal |
| 6 | is True, the marshaller will use variadic arguments in place of a GValue array.''' |
| 7 | - signature = [] |
| 8 | + signature = ['G_BEGIN_DECLS'] |
| 9 | |
| 10 | if visibility == Visibility.INTERNAL: |
| 11 | signature += ['G_GNUC_INTERNAL'] |
| 12 | @@ -585,6 +585,8 @@ def generate_prototype(retval, params, |
| 13 | signature += [indent('int n_params,', level=width, fill=' ')] |
| 14 | signature += [indent('GType *param_types);', level=width, fill=' ')] |
| 15 | |
| 16 | + signature += ['G_END_DECLS'] |
| 17 | + |
| 18 | return signature |
| 19 | |
| 20 | |