diff --git a/sysutils/font-manager/Portfile b/sysutils/font-manager/Portfile index e7183b6fd3e83..136fac95e3192 100644 --- a/sysutils/font-manager/Portfile +++ b/sysutils/font-manager/Portfile @@ -44,13 +44,8 @@ depends_lib-append port:dbus \ path:lib/pkgconfig/pango.pc:pango \ port:sqlite3 -patchfiles-append patch-use-right-python.diff - -configure.python ${prefix}/bin/python${py_ver} - -post-patch { - reinplace "s|@PYTHON_BIN@|${configure.python}|" ${worksrcpath}/meson.build -} +meson.native.binaries \ + python=${prefix}/bin/python${py_ver} configure.args-append \ -Dadwaita=true \ diff --git a/sysutils/font-manager/files/patch-use-right-python.diff b/sysutils/font-manager/files/patch-use-right-python.diff deleted file mode 100644 index 69ca14cbc9aa6..0000000000000 --- a/sysutils/font-manager/files/patch-use-right-python.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- meson.build 2024-07-02 08:04:06.000000000 +0800 -+++ meson.build 2024-07-03 06:12:38.000000000 +0800 -@@ -28,7 +28,7 @@ - harfbuzz = dependency('harfbuzz', version: '>= 2.5') - json = dependency('json-glib-1.0', version: '>= 1.5') - pangoft2 = dependency('pangoft2', version: '>= 1.45') --python = import('python').find_installation('python3') -+python = import('python').find_installation('@PYTHON_BIN@') - sqlite = dependency('sqlite3', version: '>= 3.35') - xml = dependency('libxml-2.0', version: '>= 2.9.10') -