meson: remove deprecated get_pkgconfig_variable

Since meson 0.56, the `get_pkgconfig_variable` has been deprecated.  In
meson 0.58 the `get_variable` was enhanced to no longer require the
`pkgconfig` keyword argument.  Ensure meson 0.58 is required and update
the usage of all `get_pkgconfig_variable` and `get_variable` to be the
modern variant.

Change-Id: I4bf91f3c9a61c6f0c4f14f591ed00a309b7612e6
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dist/meson.build b/dist/meson.build
index 378d4fc..67be46a 100644
--- a/dist/meson.build
+++ b/dist/meson.build
@@ -1,5 +1,5 @@
 systemd_system_unit_dir = dependency('systemd').get_variable(
-    pkgconfig: 'systemdsystemunitdir')
+    'systemdsystemunitdir')
 
 install_data(
     ['xyz.openbmc_project.Logging.service',
@@ -14,7 +14,7 @@
 )
 
 dbus_system_bus_services_dir = dependency('dbus-1').get_variable(
-    pkgconfig: 'system_bus_services_dir',
+    'system_bus_services_dir',
     pkgconfig_define: ['prefix', get_option('prefix')])
 install_data(
     'dbus/xyz.openbmc_project.Logging.service',
diff --git a/meson.build b/meson.build
index b58fc85..e183fd7 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
 project('phosphor-logging', 'cpp',
-    meson_version: '>= 0.57.0',
+    meson_version: '>= 0.58.0',
     default_options: [
       'buildtype=debugoptimized',
       'cpp_std=c++20',
@@ -29,7 +29,7 @@
 # by pulling it from the PDI dependency.
 yamldir = get_option('yamldir')
 if yamldir == ''
-    yamldir = pdi_dep.get_variable(pkgconfig: 'yamldir', internal: 'yamldir')
+    yamldir = pdi_dep.get_variable('yamldir')
 endif
 
 subdir('config')