diff --git a/recipes/libedit/all/conandata.yml b/recipes/editline/all/conandata.yml similarity index 100% rename from recipes/libedit/all/conandata.yml rename to recipes/editline/all/conandata.yml diff --git a/recipes/libedit/all/conanfile.py b/recipes/editline/all/conanfile.py similarity index 93% rename from recipes/libedit/all/conanfile.py rename to recipes/editline/all/conanfile.py index 3381ccf353e9f..662be782e2858 100644 --- a/recipes/libedit/all/conanfile.py +++ b/recipes/editline/all/conanfile.py @@ -4,12 +4,12 @@ import os -class LibeditConan(ConanFile): - name = "libedit" +class EditlineConan(ConanFile): + name = "editline" description = "Autotool- and libtoolized port of the NetBSD Editline library (libedit)." url = "https://github.com/conan-io/conan-center-index" homepage = "http://thrysoee.dk/editline/" - topics = ("conan", "libedit", "line", "editing", "history", "tokenization") + topics = ("conan", "editline", "libedit", "line", "editing", "history", "tokenization") license = "BSD-3-Clause" settings = "os", "compiler", "build_type", "arch" options = { @@ -52,7 +52,7 @@ def configure(self): def source(self): tools.get(**self.conan_data["sources"][self.version]) - archive_name = glob.glob("{}-*-{}".format(self.name, self.version))[0] + archive_name = glob.glob("{}-*-{}".format("libedit", self.version))[0] os.rename(archive_name, self._source_subfolder) def _configure_autotools(self): diff --git a/recipes/libedit/all/test_package/CMakeLists.txt b/recipes/editline/all/test_package/CMakeLists.txt similarity index 100% rename from recipes/libedit/all/test_package/CMakeLists.txt rename to recipes/editline/all/test_package/CMakeLists.txt diff --git a/recipes/libedit/all/test_package/conanfile.py b/recipes/editline/all/test_package/conanfile.py similarity index 69% rename from recipes/libedit/all/test_package/conanfile.py rename to recipes/editline/all/test_package/conanfile.py index b63178709d69f..efa177fece16d 100644 --- a/recipes/libedit/all/test_package/conanfile.py +++ b/recipes/editline/all/test_package/conanfile.py @@ -13,4 +13,5 @@ def build(self): def test(self): if not tools.cross_building(self.settings): - self.run(os.path.join("bin", "test_package"), run_environment=True) + with tools.environment_append({"TERM": "xtermc"}): + self.run(os.path.join("bin", "test_package"), run_environment=True) diff --git a/recipes/libedit/all/test_package/test_package.c b/recipes/editline/all/test_package/test_package.c similarity index 100% rename from recipes/libedit/all/test_package/test_package.c rename to recipes/editline/all/test_package/test_package.c diff --git a/recipes/libedit/config.yml b/recipes/editline/config.yml similarity index 100% rename from recipes/libedit/config.yml rename to recipes/editline/config.yml