summaryrefslogtreecommitdiff
path: root/app-misc/ttyrec/ttyrec-1.2.0.0.ebuild
blob: 714cb2de1c0272e86a21e6ce97ce1a13ea5846af (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
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="ttyrec provides tools to record and replay a terminal session"
HOMEPAGE="https://github.com/ovh/ovh-ttyrec"
SRC_URI="https://github.com/ovh/ovh-ttyrec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/ovh-${P}"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ppc ppc64 ~sparc x86"
IUSE="+zstd"

RDEPEND="zstd? ( app-arch/zstd:= )"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}"/${PN}-1.2.0.0-flags.patch
)

src_configure() {
	tc-export CC
	NO_STATIC_ZSTD=1 NO_ZSTD=$(usev !zstd 1) econf
}

src_test() {
	./ttyrec -f "${T}"/test.ttyrec -- "${SHELL}" -c \
		'echo basic; sleep .5; echo test' || die "ttyrec failed!"
	./ttyplay "${T}"/test.ttyrec || die "ttyplay failed"
}