pangomm-1.4: update to 2.46.4; migrate to meson

This commit is contained in:
Christopher Nielsen
2024-12-08 18:28:24 -05:00
parent c7c344c392
commit d83b07c69c
+28 -30
View File
@@ -2,11 +2,12 @@
PortSystem 1.0
PortGroup active_variants 1.1
PortGroup meson 1.0
name pangomm-1.4
conflicts pangomm-1.4-devel
set my_name pangomm
version 2.42.1
version 2.46.4
revision 0
# some build files are GPL-2+ but they are not installed
@@ -25,49 +26,46 @@ distname ${my_name}-${version}
dist_subdir ${my_name}
use_xz yes
checksums rmd160 f6a26cc1bbdfc388e9df5dad12f75e9c4ec5f24d \
sha256 14bf04939930870d5cfa96860ed953ad2ce07c3fd8713add4a1bfe585589f40f \
size 882508
checksums rmd160 bb3ad778efe08053f29b522fc327184f4e083459 \
sha256 b92016661526424de4b9377f1512f59781f41fb16c9c0267d6133ba1cd68db22 \
size 695088
patchfiles-append \
patch-pango-include.diff
# Disable unexpected download of subprojects
meson.wrap_mode nodownload
set py_ver 3.12
set py_ver_nodot [string map {. {}} ${py_ver}]
depends_build-append \
port:mm-common \
path:bin/pkg-config:pkgconfig \
port:mm-common
port:python${py_ver_nodot}
depends_lib-append \
path:lib/pkgconfig/pango.pc:pango \
path:lib/pkgconfig/cairomm-1.0.pc:cairomm \
path:lib/pkgconfig/glibmm-2.68.pc:glibmm \
port:libsigcxx2
port:libsigcxx2 \
path:lib/pkgconfig/pango.pc:pango
use_autoreconf yes
autoreconf.args -fvi
configure.python ${prefix}/bin/python${py_ver}
meson.native.binaries-append \
python3=${configure.python}
post-patch {
fs-traverse f ${worksrcpath} {
if {[string match *.py ${f}]} {
ui_info "patching python: ${f}"
reinplace -q "s|/usr/bin/env python3$|${configure.python}|" ${f}
}
}
}
# pangomm > 2.36.0 requires C++11 or better
compiler.cxx_standard 2011
configure.args-append \
--disable-silent-rules
# This port provides legacy bindings, previously provided by 'pangomm'.
# So the latter must be deactivated first, if an older version is installed.
# This logic added 2023-04-30; keep in place for at least 12 months.
pre-activate {
set port_conflict_name pangomm
set port_conflict_ver_max "2.42.1"
if { ![catch {set port_conflict_ver_info [lindex [registry_active ${port_conflict_name}] 0]}] } {
set port_conflict_ver [lindex ${port_conflict_ver_info} 1]
ui_info "${port_conflict_name} active version: ${port_conflict_ver}"
if { [vercmp ${port_conflict_ver} ${port_conflict_ver_max}] <= 0 } {
ui_info "Deactivating conflicting port: ${port_conflict_name}"
registry_deactivate_composite ${port_conflict_name} "" [list ports_nodepcheck 1]
}
}
}
-Dbuild-deprecated-api=true \
-Dbuild-documentation=false
# dummy variants to ensure that this port gets rebuilt if
# the corresponding variants for pango change