commit: 320ad1589ec09bc94e305d557047751cab8f80d6 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Mon Sep 8 11:37:37 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Sep 11 03:28:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320ad158
app-misc/ttyrec: add 1.1.7.1, new fork upstream is abandonned (last release in 2006) use the fork ovh-ttyrec, as debian already does. support for compression (zstd) Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/43711 Closes: https://github.com/gentoo/gentoo/pull/43711 Signed-off-by: Sam James <sam <AT> gentoo.org> app-misc/ttyrec/Manifest | 1 + app-misc/ttyrec/files/ttyrec-1.1.7.1-flags.patch | 41 ++++++++++++++++++++++++ app-misc/ttyrec/metadata.xml | 3 ++ app-misc/ttyrec/ttyrec-1.1.7.1.ebuild | 28 ++++++++++++++++ 4 files changed, 73 insertions(+) diff --git a/app-misc/ttyrec/Manifest b/app-misc/ttyrec/Manifest index d08e07111111..2494ac26e40d 100644 --- a/app-misc/ttyrec/Manifest +++ b/app-misc/ttyrec/Manifest @@ -1 +1,2 @@ DIST ttyrec-1.0.8.tar.gz 8528 BLAKE2B 8b0218cb7fecdbcbaeee9da2b7982b880bb6f0092f65f2c730c5942eb3ab6dd9978b7168ff537b81503c697c5b948e7a0e2a267c35de1c0038d85277c6610a74 SHA512 b7f6f4c78c5148dacc7058534d89f13fcf333ee9e099d4475135e9c15a99a8aed72bf4bd5954652a6bb044d11ad35b4cb8d07208a5349c79c811f68fde7e8611 +DIST ttyrec-1.1.7.1.tar.gz 53976 BLAKE2B 5d8bcfd110ac205ed9b3f4dbd2e85c21da7c6f9c1eefda9f217e930782fc3b7e63812679fd68ca64de0244cd96bb8ad6020cc1957aa715fd01e7f7ad645e80ab SHA512 f49ab59780330cb2532d84a1852c0fdc6cc94016274553371084fe5eee4f0c758b12d16279fa31eaee3366dc386d21dd3aa2d04bbf1f19a8fedc0ff750f45a6c diff --git a/app-misc/ttyrec/files/ttyrec-1.1.7.1-flags.patch b/app-misc/ttyrec/files/ttyrec-1.1.7.1-flags.patch new file mode 100644 index 000000000000..45a02331e7ae --- /dev/null +++ b/app-misc/ttyrec/files/ttyrec-1.1.7.1-flags.patch @@ -0,0 +1,41 @@ +remove filtering cflags in configure and respect userflags +--- a/Makefile.in ++++ b/Makefile.in +@@ -1,6 +1,4 @@ + CC ?= %CC% +-CFLAGS += -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I/usr/local/include %CFLAGS% $(RPM_OPT_FLAGS) +-LDFLAGS += -L/usr/local/lib + LDLIBS += %LDLIBS% %PTHREAD% + + BINARIES = ttyrec ttyplay ttytime +--- a/configure ++++ b/configure +@@ -237,27 +237,8 @@ EOF + fi + fi + +-echo "Checking for supported compiler options..." +-for w in -Wall -Wextra -pedantic -Wno-unused-result -Wbad-function-cast -Wmissing-declarations \ +- -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes \ +- -Wpointer-sign -Wmissing-parameter-type -Wold-style-declaration -Wl,--as-needed \ +- -Wno-unused-command-line-argument +-do +- echo 'int main(void) { return 0; }' >"$srcfile.c" +- if [ "$($CC "$srcfile.c" $w -o /dev/null 2>&1 | wc -l)" = 0 ]; then +- echo "... OK $w" +- if echo "$w" | grep -q -- '-Wl,'; then +- LDFLAGS="$LDFLAGS $w" +- else +- CFLAGS="$CFLAGS $w" +- fi +- else +- echo "... unsupported $w" +- fi +-done +- + cat "$(dirname "$0")"/Makefile.in > "$(dirname "$0")"/Makefile.tmp +-for i in CC LDLIBS CFLAGS COMPRESS_ZSTD PTHREAD ++for i in CC LDLIBS COMPRESS_ZSTD PTHREAD + do + replace=$(eval printf "%b" "\"\$$i\"") + sed "s:%$i%:$replace:g" "$(dirname "$0")"/Makefile.tmp > "$(dirname "$0")"/Makefile diff --git a/app-misc/ttyrec/metadata.xml b/app-misc/ttyrec/metadata.xml index 6630eb3bd7a0..1de170a3a93c 100644 --- a/app-misc/ttyrec/metadata.xml +++ b/app-misc/ttyrec/metadata.xml @@ -9,4 +9,7 @@ well. It can record emacs -nw, vi, lynx, or any programs running on tty. </longdescription> + <upstream> + <remote-id type="github">ovh/ovh-ttyrec</remote-id> + </upstream> </pkgmetadata> diff --git a/app-misc/ttyrec/ttyrec-1.1.7.1.ebuild b/app-misc/ttyrec/ttyrec-1.1.7.1.ebuild new file mode 100644 index 000000000000..f281019de326 --- /dev/null +++ b/app-misc/ttyrec/ttyrec-1.1.7.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2025 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 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="+zstd" + +RDEPEND="zstd? ( app-arch/zstd:= )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.1.7.1-flags.patch +) + +src_configure() { + tc-export CC + NO_STATIC_ZSTD=1 NO_ZSTD=$(usev !zstd 1) econf +}
