diff options
Diffstat (limited to 'x11/xdg-desktop-portal-gnome/files/patch-meson.build')
-rw-r--r-- | x11/xdg-desktop-portal-gnome/files/patch-meson.build | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/x11/xdg-desktop-portal-gnome/files/patch-meson.build b/x11/xdg-desktop-portal-gnome/files/patch-meson.build index f786d81b2a02..1d2818d837bc 100644 --- a/x11/xdg-desktop-portal-gnome/files/patch-meson.build +++ b/x11/xdg-desktop-portal-gnome/files/patch-meson.build @@ -1,24 +1,11 @@ ---- meson.build.orig 2022-10-18 02:27:08 UTC +--- meson.build.orig 2024-05-25 18:46:09 UTC +++ meson.build -@@ -11,15 +11,6 @@ datadir = get_option('datadir') - libdir = get_option('libdir') - libexecdir = get_option('libexecdir') +@@ -13,7 +13,7 @@ systemduserunitdir = get_option('systemduserunitdir') --systemduserunitdir = get_option('systemduserunitdir') + build_systemd_service = get_option('systemd') + systemduserunitdir = get_option('systemduserunitdir') -if systemduserunitdir == '' -- systemd = dependency('systemd', version: '>= 242') -- systemduserunitdir = systemd.get_pkgconfig_variable( -- 'systemduserunitdir', -- define_variable: ['prefix', get_option('prefix')] -- ) --endif -- - dbus_service_dir = get_option('dbus_service_dir') - if dbus_service_dir == '' - dbus_service_dir = datadir / 'dbus-1' / 'services' -@@ -35,5 +26,4 @@ summary({ - 'libdir': libdir, - 'libexecdir': libexecdir, - 'dbus_service_dir': dbus_service_dir, -- 'systemduserunitdir': systemduserunitdir, - }) ++if systemduserunitdir != 'no' + systemd = dependency('systemd', version: '>= 242', required: build_systemd_service) + if build_systemd_service.allowed() and systemd.found() + systemduserunitdir = systemd.get_variable( |