<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b69b06edf3b8aac5b73d10cb99dc2ae2ee303db4">https://github.com/macports/macports-ports/commit/b69b06edf3b8aac5b73d10cb99dc2ae2ee303db4</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b69b06edf3b8aac5b73d10cb99dc2ae2ee303db4
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Sun Apr 30 20:57:00 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> pangomm-1.4: new port, for legacy bindings
</span>---
x11/pangomm-1.4/Portfile | 88 ++++++++++++++++++++++++++
x11/pangomm-1.4/files/patch-pango-include.diff | 12 ++++
2 files changed, 100 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/x11/pangomm-1.4/Portfile b/x11/pangomm-1.4/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..83c962ea5da
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/x11/pangomm-1.4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,88 @@
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name pangomm-1.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set my_name pangomm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.42.1
</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;'>+# some build files are GPL-2+ but they are not installed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories x11 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 {devans @dbevans} {mascguy @mascguy} 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 Pango.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description pangomm is the official \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ C++ interface for the Pango text layout library.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://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/${my_name}/${branch}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${my_name}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+dist_subdir ${my_name}
</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 f6a26cc1bbdfc388e9df5dad12f75e9c4ec5f24d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 14bf04939930870d5cfa96860ed953ad2ce07c3fd8713add4a1bfe585589f40f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 882508
</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-pango-include.diff
</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:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:mm-common
</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/pango.pc:pango \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/cairomm-1.0.pc:cairomm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:glibmm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsigcxx2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_autoreconf yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+autoreconf.args -fvi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# pangomm > 2.36.0 requires C++11 or better
</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.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-silent-rules
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This port provides legacy bindings, previously provided by 'pangomm'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# So the latter must be deactivated first, if an older version is installed.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This logic added 2023-04-30; keep in place for at least 12 months.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set port_conflict_name pangomm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set port_conflict_ver_max "2.42.1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ![catch {set port_conflict_ver_info [lindex [registry_active ${port_conflict_name}] 0]}] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set port_conflict_ver [lindex ${port_conflict_ver_info} 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_info "${port_conflict_name} active version: ${port_conflict_ver}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [vercmp ${port_conflict_ver} ${port_conflict_ver_max}] <= 0 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_info "Deactivating conflicting port: ${port_conflict_name}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ registry_deactivate_composite ${port_conflict_name} "" [list ports_nodepcheck 1]
</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;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# dummy variants to ensure that this port gets rebuilt if
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# the corresponding variants for pango change
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant x11 {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant quartz {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants +x11 +quartz
</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;'>+ require_active_variants path:lib/pkgconfig/cairomm-1.0.pc:cairomm x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/pango.pc:pango 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;'>+ require_active_variants path:lib/pkgconfig/cairomm-1.0.pc:cairomm quartz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants ath:lib/pkgconfig/pango.pc:pango 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;'>+livecheck.type none
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/x11/pangomm-1.4/files/patch-pango-include.diff b/x11/pangomm-1.4/files/patch-pango-include.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c777013a540
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/x11/pangomm-1.4/files/patch-pango-include.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://gitlab.gnome.org/GNOME/pangomm/-/commit/f065a2967e22658565f4228b73b1511d291e343f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- pango/pangomm/attributes.h.orig 2022-01-25 14:42:31.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ pango/pangomm/attributes.h 2022-01-25 14:40:44.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -21,7 +21,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pangomm/rectangle.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pangomm/color.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pangomm/fontdescription.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <pango/pango-attributes.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <pango/pango.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <glibmm/slisthandle.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _DEFS(pangomm,pango)
</span></pre><pre style='margin:0'>
</pre>