use fs.copyfile instead of deprecated copy

copy arg in configure_file API is deprecated since meson
version 0.64.0. As we moved to meson version 1.1.1 we can
leverage the filesystem module copyfile() to achieve the
same result.

Tested by: Built the repo without any warning.

Change-Id: Ib4f44b535f8912ba53dcb5911a43569f2edbb8ef
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/host_condition_gpio/meson.build b/host_condition_gpio/meson.build
index 8de832a..24d03e3 100644
--- a/host_condition_gpio/meson.build
+++ b/host_condition_gpio/meson.build
@@ -1,5 +1,6 @@
 inc_dirs = [ include_directories('../') ]
 
+filesystem = import('fs')
 gpioplus = dependency('gpioplus')
 gpiodcxx = dependency(
     'libgpiodcxx',
@@ -19,10 +20,8 @@
     install: true
 )
 
-configure_file(
-    input: 'phosphor-host-condition-gpio@.service',
-    output: 'phosphor-host-condition-gpio@.service',
-    copy: true,
-    install_dir: systemd_system_unit_dir,
-    install: true,
+filesystem.copyfile(
+  'phosphor-host-condition-gpio@.service',
+  install_dir: systemd_system_unit_dir,
+  install: true
 )