<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/6f8fec8bddccbc669c72fb404d12fcbc71513f9e">https://github.com/macports/macports-ports/commit/6f8fec8bddccbc669c72fb404d12fcbc71513f9e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6f8fec8bddccbc669c72fb404d12fcbc71513f9e
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Sun Apr 30 20:55:52 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> cairomm-1.0: new port, for legacy bindings
</span>---
graphics/cairomm-1.0/Portfile | 77 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/cairomm-1.0/Portfile b/graphics/cairomm-1.0/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cb7a074c317
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/cairomm-1.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,77 @@
</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 cairomm-1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set my_name cairomm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.12.2
</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 graphics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-2+
</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 Cairo is a vector graphics library with cross-device output support.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Cairo is designed to produce identical \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ output on all output media while taking advantage of \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ display hardware acceleration when available \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (e.g. through the X Render Extension).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.cairographics.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ${homepage}/releases/
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 112e58d903f168232b6a2673802b83ce687eb46c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 45c47fd4d0aa77464a75cdca011143fea3ef795c4753f6e860057da5fb8bd599 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1325223
</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/cairo.pc:cairo \
</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;'>+# cairomm > 1.10.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;'>+# This port provides legacy bindings, previously provided by 'cairomm'.
</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 cairomm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set port_conflict_ver_max "1.12.2"
</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 cairo 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 quartz]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/cairo.pc:cairo 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 x11]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/cairo.pc:cairo 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;'>+livecheck.type none
</span></pre><pre style='margin:0'>
</pre>