def METHOD_NAME(self, PVR, dist_version="", eclasses=("perl-module",), **kwargs):
    lines = ["inherit perl-module\n"]
    if dist_version:
        lines.append(f"DIST_VERSION={dist_version}\n")
    kwargs.setdefault("EAPI", "7")
    kwargs.setdefault("_eclasses_", list(eclasses))
    return misc.FakePkg(f"app-foo/bar-{PVR}", lines=lines, data=kwargs)