diff --git a/recipes/gperf/all/conandata.yml b/recipes/gperf/all/conandata.yml index c656af8421915..abb928a47430d 100644 --- a/recipes/gperf/all/conandata.yml +++ b/recipes/gperf/all/conandata.yml @@ -4,5 +4,5 @@ sources: sha256: "588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2" patches: "3.1": - - patch_file: "all/0001-assert-exception-upstream-issue-2011.patch" + - patch_file: "patches/0001-remove-register-keyword.patch" base_path: "source_subfolder" diff --git a/recipes/gperf/all/conanfile.py b/recipes/gperf/all/conanfile.py index c87d492809d3e..a509569e0a497 100644 --- a/recipes/gperf/all/conanfile.py +++ b/recipes/gperf/all/conanfile.py @@ -11,7 +11,7 @@ class GperfConan(ConanFile): settings = "os", "arch", "compiler" _source_subfolder = "source_subfolder" _autotools = None - exports_sources = "patches/**" + exports_sources = "patches/*" @property def _is_msvc(self): @@ -60,6 +60,8 @@ def _build_configure(self): autotools.make() def build(self): + for patch in self.conan_data.get("patches", {}).get(self.version, []): + tools.patch(**patch) if self._is_msvc: with tools.vcvars(self.settings): self._build_configure()