<pre style='margin:0'>
Mohamed Akram (mohd-akram) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/99482f44a10d8472906acd1d6ecc82ac4bbc270f">https://github.com/macports/macports-ports/commit/99482f44a10d8472906acd1d6ecc82ac4bbc270f</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 99482f44a10 gtkmm4: new port
</span>99482f44a10 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 99482f44a10d8472906acd1d6ecc82ac4bbc270f
</span>Author: Mohamed Akram <makr@macports.org>
AuthorDate: Sun Jun 2 00:46:04 2024 +0400
<span style='display:block; white-space:pre;color:#404040;'> gtkmm4: new port
</span>---
gnome/gtkmm4/Portfile | 102 +++++++++++++++++++++
gnome/gtkmm4/files/patch-aboutdialog.diff | 11 +++
.../files/patch-meson-build-python-path.diff | 11 +++
3 files changed, 124 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtkmm4/Portfile b/gnome/gtkmm4/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d51833353c3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtkmm4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,102 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup active_variants 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup meson 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name gtkmm4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set gname gtkmm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 4.14.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories gnome devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-2.1+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {makr @mohd-akram} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description C++ interface to GTK+ version 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description gtkmm4 is the official C++ interface \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for the popular GUI library GTK+ version 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.gtkmm.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set branch [join [lrange [split ${version} .] 0 1] .]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites gnome:sources/${gname}/${branch}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+dist_subdir ${gname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${gname}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xz yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 88254ec90b23de9db6bb4440d2367b6d4379fd75 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 9350a0444b744ca3dc69586ebd1b6707520922b6d9f4f232103ce603a271ecda \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 16713784
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver 3.12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver_nodot [string map {. {}} ${py_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set port_ver_major [lindex [split ${version} .] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gtk-doc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:json-glib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:mm-common \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/cairomm.pc:cairomm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/glib-2.0.pc:glib2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/glibmm.pc:glibmm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/gtk+-4.0.pc:gtk4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/pangomm.pc:pangomm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python${py_ver_nodot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Python only needed for scripts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_skip_archcheck-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ python${py_ver_nodot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.perl /usr/bin/perl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.python ${prefix}/bin/python${py_ver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PERL_PATH=${configure.perl}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbuild-demos=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbuild-documentation=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbuild-tests=false
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-meson-build-python-path.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-aboutdialog.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -W ${worksrcpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|@@PYTHON@@|${configure.python}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ meson.build
</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 conflicts quartz {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/cairomm.pc:cairomm x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/pangomm.pc:pangomm x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/gtk+-4.0.pc:gtk4 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;'>+variant quartz conflicts x11 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/cairomm.pc:cairomm quartz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/pangomm.pc:pangomm quartz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/gtk+-4.0.pc:gtk4 quartz
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant tests description {Enable test support} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbuild-tests=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbuild-tests=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</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;'>+livecheck.type gnome
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.name ${gname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex "LATEST-IS-(${port_ver_major}\\.\\d*\[02468\](?:.\\d+)*)"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtkmm4/files/patch-aboutdialog.diff b/gnome/gtkmm4/files/patch-aboutdialog.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1f45873e878
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtkmm4/files/patch-aboutdialog.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://gitlab.gnome.org/GNOME/gtkmm/-/issues/157
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- untracked/gtk/gtkmm/aboutdialog.h.orig 2024-03-17 14:38:29
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ untracked/gtk/gtkmm/aboutdialog.h 2024-06-02 00:27:40
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -124,6 +124,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GPL_3_0,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LGPL_2_1,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LGPL_3_0,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#undef BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BSD,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MIT_X11,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ARTISTIC,
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtkmm4/files/patch-meson-build-python-path.diff b/gnome/gtkmm4/files/patch-meson-build-python-path.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b0341a0f86f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtkmm4/files/patch-meson-build-python-path.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- meson.build.orig 2023-08-08 07:40:41.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ meson.build 2023-08-10 07:31:27.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -47,7 +47,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cpp_compiler = meson.get_compiler('cpp')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ is_msvc = cpp_compiler.get_id() == 'msvc'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ is_host_windows = host_machine.system() == 'windows'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-python3 = find_program('python3', version: '>=3.5')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++python3 = find_program('@@PYTHON@@', version: '>=3.5')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Do we build from a git repository?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Suppose we do if and only if the meson.build file is tracked by git.
</span></pre><pre style='margin:0'>
</pre>