diff --git a/recipes/gperf/all/conandata.yml b/recipes/gperf/all/conandata.yml index 67db34810f28b..693d0d71bc110 100644 --- a/recipes/gperf/all/conandata.yml +++ b/recipes/gperf/all/conandata.yml @@ -2,3 +2,6 @@ sources: "3.1": url: "https://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz" sha256: "588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2" + "cci.20201208": + url: "https://git.savannah.gnu.org/gitweb/?p=gperf.git;a=snapshot;h=556e87b5c52b0c03a1e7418f45225a9b664f83c5;sf=tgz" + sha256: "18a72af667940f1295249bf8bb8d2752d451b059b010b4027a9db66791bc638c" diff --git a/recipes/gperf/all/conanfile.py b/recipes/gperf/all/conanfile.py index ab4caf1782858..ade240cc29572 100644 --- a/recipes/gperf/all/conanfile.py +++ b/recipes/gperf/all/conanfile.py @@ -1,4 +1,5 @@ from conans import ConanFile, tools, AutoToolsBuildEnvironment +import glob import os class GperfConan(ConanFile): @@ -26,9 +27,8 @@ def build_requirements(self): self.build_requires("msys2/20190524") def source(self): - tools.get(**self.conan_data["sources"][self.version]) - extracted_dir = self.name + "-" + self.version - os.rename(extracted_dir, self._source_subfolder) + tools.get(**self.conan_data["sources"][self.version], filename=self.name + "-" + self.version + ".tar.gz") + os.rename(glob.glob("gperf-*")[0], self._source_subfolder) def _configure_autotools(self): if not self._autotools: diff --git a/recipes/gperf/config.yml b/recipes/gperf/config.yml index 10cce9d257525..349909a25a0dc 100644 --- a/recipes/gperf/config.yml +++ b/recipes/gperf/config.yml @@ -1,3 +1,5 @@ versions: "3.1": folder: "all" + "cci.20201208": + folder: "all"