birdfont: update to v2.33.4

This commit is contained in:
Dan R. K. Ports
2026-05-14 01:39:39 -07:00
committed by Dan Ports
parent f80400af78
commit 2581e02cf7
2 changed files with 30 additions and 25 deletions
+30 -10
View File
@@ -3,11 +3,10 @@
PortSystem 1.0
name birdfont
version 2.29.6
revision 0
checksums rmd160 50aafc6a993ad3a22aeb9c4d154c20f6274455dc \
sha256 20d1cb1f7c2fd51af744b10200dd8242f72d22359d92cc5d7d57c19169f1f88b \
size 2591440
version 2.33.4
checksums rmd160 efad98015eb66542eff8c5df959c26b9c3666cb2 \
sha256 0f688dc24b65bb71a55ba7e36389f847359fabd753bb868f77a6ec4b9c50400e \
size 2542704
maintainers openmaintainer {gmail.com:johan.mattsson.m @johanmattssonm}
categories graphics
@@ -17,10 +16,10 @@ homepage http://birdfont.org
license GPL-3
depends_build port:pkgconfig \
port:python38 \
port:python314 \
path:bin/vala:vala
depends_lib path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk \
depends_lib path:lib/pkgconfig/webkit2gtk-4.1.pc:webkit2-gtk \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
path:lib/pkgconfig/cairo.pc:cairo \
path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
@@ -33,10 +32,8 @@ depends_lib path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk \
master_sites http://birdfont.org/releases/
use_xz yes
patchfiles fix-install-name.patch
post-patch {
reinplace "s|/usr/bin/python3|${prefix}/bin/python3.8|" \
reinplace "s|/usr/bin/python3|${prefix}/bin/python3.14|" \
configure \
build.py \
install.py
@@ -61,4 +58,27 @@ destroot.target
destroot.args --dest="${destroot}" \
--manpages-directory=/share/man/man1
post-destroot {
# Fix install names: the build system doesn't set -install_name on macOS,
# so dylibs have a relative build-directory path as their id.
foreach dylib [glob ${destroot}${prefix}/lib/libbirdfont*.dylib \
${destroot}${prefix}/lib/libbirdgems*.dylib] {
if {![catch {file type $dylib} ftype] && $ftype ne "link"} {
system "install_name_tool -id ${prefix}/lib/[file tail ${dylib}] ${dylib}"
}
}
foreach bin [glob ${destroot}${prefix}/bin/birdfont*] {
foreach dylib {libbirdfont libbirdgems} {
catch {system "install_name_tool -change ./build/bin/${dylib}.36.0.dylib ${prefix}/lib/${dylib}.36.0.dylib ${bin}"}
catch {system "install_name_tool -change ./build/bin/${dylib}.0.0.dylib ${prefix}/lib/${dylib}.0.0.dylib ${bin}"}
}
}
# Also fix libbirdfont's reference to libbirdgems
foreach dylib [glob ${destroot}${prefix}/lib/libbirdfont*.dylib] {
if {![catch {file type $dylib} ftype] && $ftype ne "link"} {
catch {system "install_name_tool -change ./build/bin/libbirdgems.0.0.dylib ${prefix}/lib/libbirdgems.0.0.dylib ${dylib}"}
}
}
}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
@@ -1,15 +0,0 @@
--- dodo.py.orig 2018-12-17 05:09:24.000000000 -0800
+++ dodo.py 2019-02-17 18:55:24.000000000 -0800
@@ -55,8 +55,11 @@
SO_VERSION=version.SO_VERSION
def soname(target_binary):
- if "darwin" in sys.platform or "msys" in sys.platform:
+ if "msys" in sys.platform:
return ''
+
+ if "darwin" in sys.platform:
+ return '-Wl,-install_name,' + config.PREFIX + '/lib/' + target_binary
return '-Wl,-soname,' + target_binary