meta-phosphor: mrw-api-native: fix 'native-last' warning

Recipes are suppose to `inherit native` last or else bitbake
raises a warning.  mrw-api-native was not doing this due to
an issue discussed in aae820c542c0bbf907fff93e3b0fc865465fad60.

The underlying issue is, in my opinion, a bug in perl-version.bbclass
where it forces an immediate evaluation of certain variables which
are only present in the `native.bbclass`.  I attempted to submit a
fix[1] upstream and was suggested that we simply move to a direct
call to the bitbake function `get_perl_version` instead.  Doing so
here allows us to move native last and remove the warning.

1. https://lore.kernel.org/openembedded-core/20230405003850.384813-1-patrick@stwcx.xyz/T/#u

Fixes: openbmc/openbmc#3770
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I272cd894fd3cb38fe5aa0b857931dd90afe779e6
diff --git a/meta-phosphor/recipes-phosphor/mrw/mrw-api-native.bb b/meta-phosphor/recipes-phosphor/mrw/mrw-api-native.bb
index 92979b9..d1d4615 100644
--- a/meta-phosphor/recipes-phosphor/mrw/mrw-api-native.bb
+++ b/meta-phosphor/recipes-phosphor/mrw/mrw-api-native.bb
@@ -10,12 +10,13 @@
 
 S = "${WORKDIR}/git"
 
-inherit native
-inherit perlnative
 inherit cpan-base
 inherit mrw-rev
+inherit perlnative
+inherit native
 
 do_install() {
-    install -d ${D}${PERLLIBDIRS:class-native}/site_perl/${PERLVERSION}/mrw
-    install -m 0755 scripts/Targets.pm ${D}${PERLLIBDIRS:class-native}/site_perl/${PERLVERSION}/mrw/Targets.pm
+    perl_version="${@get_perl_version(d)}"
+    install -d ${D}${PERLLIBDIRS:class-native}/site_perl/${perl_version}/mrw
+    install -m 0755 scripts/Targets.pm ${D}${PERLLIBDIRS:class-native}/site_perl/${perl_version}/mrw/Targets.pm
 }