Skip to content

Commit

Permalink
xkbcommon: Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Sep 9, 2022
1 parent 2324634 commit 57db148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions recipes/xkbcommon/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class XkbcommonConan(ConanFile):
"xkbregistry": True,
}

generators = "PkgConfigDeps", "VirtualBuildEnv", "VirtualRunEnv"
generators = "PkgConfigDeps", "VirtualBuildEnv"

@property
def _has_xkbregistry_option(self):
Expand Down Expand Up @@ -68,7 +68,7 @@ def build_requirements(self):
self.tool_requires("meson/0.63.1")
self.tool_requires("bison/3.7.6")
self.tool_requires("pkgconf/1.7.4")
if self.options.get_safe("with_wayland"):
if hasattr(self, "settings_build") and self.options.get_safe("with_wayland"):
self.tool_requires("wayland/1.21.0")

def layout(self):
Expand Down Expand Up @@ -153,7 +153,6 @@ def package_info(self):
if Version(self.version) >= "1.0.0":
bindir = os.path.join(self.package_folder, "bin")
self.buildenv_info.prepend_path("PATH", bindir)
self.runenv_info.prepend_path("PATH", bindir)
self.output.info(f"Appending PATH environment variable: {bindir}")
self.env_info.PATH.append(bindir)

Expand Down
2 changes: 1 addition & 1 deletion recipes/xkbcommon/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "CMakeToolchain", "CMakeDeps", "VirtualBuildEnv", "VirtualRunEnv"
generators = "CMakeToolchain", "CMakeDeps", "VirtualRunEnv"

def requirements(self):
self.requires(self.tested_reference_str)
Expand Down

0 comments on commit 57db148

Please sign in to comment.