diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:01:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:01:36 +0000 |
commit | 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 (patch) | |
tree | adbbaf3acf88ea08f6eeec4b75ee98ad3b07fbdc /conanfile.py | |
parent | Initial commit. (diff) | |
download | lnav-62e4c68907d8d33709c2c1f92a161dff00b3d5f2.tar.xz lnav-62e4c68907d8d33709c2c1f92a161dff00b3d5f2.zip |
Adding upstream version 0.11.2.upstream/0.11.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | conanfile.py | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py new file mode 100644 index 0000000..b9fa5c4 --- /dev/null +++ b/conanfile.py @@ -0,0 +1,58 @@ +from conans import ConanFile +from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps + + +class LnavConan(ConanFile): + name = "lnav" + version = "0.11.2" + homepage = "https://lnav.org" + url = "https://github.com/tstack/lnav.git" + license = "BSD-2-Clause" + description = ( + "The Log File Navigator, lnav for short, is an advanced " + "log file viewer for the small-scale" + ) + settings = "os", "compiler", "build_type", "arch" + exports_sources = "*" + no_copy_source = True + requires = ( + "bzip2/1.0.8", + "libarchive/3.6.0", + "libcurl/7.85.0", + "ncurses/6.3", + "pcre2/10.40", + "readline/8.1.2", + "sqlite3/3.38.0", + "zlib/1.2.12", + ) + generators = ("virtualrunenv",) + default_options = { + "libarchive:with_bzip2": True, + "libarchive:with_lz4": True, + "libarchive:with_lzo": True, + "libarchive:with_lzma": True, + "libarchive:with_zstd": True, + "pcre2:support_jit": True, + "pcre2:build_pcre2_8": True, + "sqlite3:enable_json1": True, + "sqlite3:enable_soundex": True, + "readline:with_library": "curses", + } + + def generate(self): + CMakeToolchain(self).generate() + CMakeDeps(self).generate() + + def build(self): + cmake = CMake(self) + cmake.configure() + if self.settings.os == "Macos" and self.settings.arch == "armv8": + cmake.definitions["CMAKE_SYSTEM_PROCESSOR"] = "arm64" + cmake.build() + + def package(self): + cmake = CMake(self) + cmake.install() + + def deploy(self): + self.copy("*", dst="bin", src="bin") |