From a2fca7b801325a30ead44133a854f25fec43358f Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Sun, 12 May 2024 01:59:13 +0400 Subject: [PATCH] audacity: fix menu items in wrong language --- audio/audacity/Portfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/audio/audacity/Portfile b/audio/audacity/Portfile index ae0a990c109c6..5d69d0f4db4cd 100644 --- a/audio/audacity/Portfile +++ b/audio/audacity/Portfile @@ -9,13 +9,15 @@ categories audio license GPL-3 maintainers {makr @mohd-akram} openmaintainer +set audacity_dir ${applications_dir}/Audacity.app/Contents + subport ${name} { PortGroup cmake 1.1 PortGroup wxWidgets 1.0 github.setup audacity audacity ${version} Audacity- github.tarball_from releases - revision 0 + revision 1 conflicts audacity-legacy description multi-track audio editor @@ -60,6 +62,9 @@ subport ${name} { compiler.cxx_standard 2017 + # if not present some menu items appear in another language + destroot.keepdirs ${destroot}${audacity_dir}/Resources/en.lproj + post-destroot { platform darwin { move ${destroot}${prefix}/Audacity.app ${destroot}${applications_dir}/ @@ -87,7 +92,7 @@ subport ${name}-manual { set data_dir ${prefix}/share/audacity platform darwin { - set data_dir ${applications_dir}/Audacity.app/Contents + set data_dir ${audacity_dir} } destroot {