summaryrefslogtreecommitdiff
blob: efa86cff1cf654174b3a145986978b0ea7c43d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="A curses-based tool for viewing and analyzing log files"
HOMEPAGE="https://lnav.org"
SRC_URI="https://github.com/tstack/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="unicode test"
RESTRICT="!test? ( test )"

RDEPEND="
	app-arch/bzip2:0=
	app-arch/libarchive:=
	>=dev-db/sqlite-3.9.0
	dev-libs/libpcre[cxx]
	>=net-misc/curl-7.23.0
	sys-libs/ncurses:=[unicode(+)?]
	sys-libs/readline:0=
	sys-libs/zlib:0="
DEPEND="${RDEPEND}
	test? ( dev-cpp/doctest )"

DOCS=( AUTHORS NEWS README )

PATCHES=(
	"${FILESDIR}"/${PN}-0.10.0-disable-tests.patch
	"${FILESDIR}"/${PN}-0.10.1-gcc12.patch
)

src_prepare() {
	default

	eautoreconf

	# These tests use network and expect a running sshd, so we'll just delete them.
	echo "#! /bin/bash" > test/test_remote.sh || die
}

src_configure() {
	econf \
		--disable-static \
		$(use_with test system-doctest) \
		$(use_with unicode ncursesw)
}