2022-03-14 05:44:12 +00:00
|
|
|
from conans import ConanFile
|
|
|
|
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps
|
|
|
|
|
|
|
|
|
|
|
|
class LnavConan(ConanFile):
|
|
|
|
name = "lnav"
|
2022-07-16 05:31:43 +00:00
|
|
|
version = "0.11.0"
|
2022-03-14 05:44:12 +00:00
|
|
|
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",
|
2022-09-18 13:51:04 +00:00
|
|
|
"libcurl/7.85.0",
|
2022-03-14 05:44:12 +00:00
|
|
|
"ncurses/6.3",
|
2022-09-10 16:28:07 +00:00
|
|
|
"pcre2/10.40",
|
2022-03-14 05:44:12 +00:00
|
|
|
"readline/8.1.2",
|
|
|
|
"sqlite3/3.38.0",
|
2022-07-29 03:24:32 +00:00
|
|
|
"zlib/1.2.12",
|
2022-03-14 05:44:12 +00:00
|
|
|
)
|
|
|
|
generators = ("virtualrunenv",)
|
|
|
|
default_options = {
|
|
|
|
"libarchive:with_bzip2": True,
|
|
|
|
"libarchive:with_lz4": True,
|
|
|
|
"libarchive:with_lzo": True,
|
|
|
|
"libarchive:with_lzma": True,
|
|
|
|
"libarchive:with_zstd": True,
|
2022-09-10 16:28:07 +00:00
|
|
|
"pcre2:support_jit": True,
|
|
|
|
"pcre2:build_pcre2_8": True,
|
2022-03-14 05:44:12 +00:00
|
|
|
"sqlite3:enable_json1": True,
|
|
|
|
"sqlite3:enable_soundex": True,
|
2022-03-16 22:38:08 +00:00
|
|
|
"readline:with_library": "curses",
|
2022-03-14 05:44:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
def generate(self):
|
|
|
|
CMakeToolchain(self).generate()
|
|
|
|
CMakeDeps(self).generate()
|
|
|
|
|
|
|
|
def build(self):
|
|
|
|
cmake = CMake(self)
|
|
|
|
cmake.configure()
|
2022-07-29 03:24:32 +00:00
|
|
|
if self.settings.os == "Macos" and self.settings.arch == "armv8":
|
|
|
|
cmake.definitions["CMAKE_SYSTEM_PROCESSOR"] = "arm64"
|
2022-03-14 05:44:12 +00:00
|
|
|
cmake.build()
|
|
|
|
|
|
|
|
def package(self):
|
|
|
|
cmake = CMake(self)
|
|
|
|
cmake.install()
|
|
|
|
|
|
|
|
def deploy(self):
|
|
|
|
self.copy("*", dst="bin", src="bin")
|