def METHOD_NAME(self):
    apply_conandata_patches(self)
    replace_in_file(self, os.path.join(self.source_folder, "bus", "meson.build"),
                            "if x11_dep.found()",
                            "if get_option('x11').enabled()" if Version(self.version) >= "2.47.1"
                            else "if x11_option == 'yes'")
    replace_in_file(self, os.path.join(self.source_folder, 'meson.build'),
        "subdir('tests')",
        "#subdir('tests')")
    replace_in_file(self, os.path.join(self.source_folder, 'meson.build'),
        "libxml_dep = dependency('libxml-2.0', version: libxml_req_version)",
        "#libxml_dep = dependency('libxml-2.0', version: libxml_req_version)")
    meson = Meson(self)
    meson.configure()
    meson.METHOD_NAME()