mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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@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@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
3775a49810
commit
320ad1589e
@@ -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
|
||||
|
||||
41
app-misc/ttyrec/files/ttyrec-1.1.7.1-flags.patch
Normal file
41
app-misc/ttyrec/files/ttyrec-1.1.7.1-flags.patch
Normal file
@@ -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
|
||||
@@ -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>
|
||||
|
||||
28
app-misc/ttyrec/ttyrec-1.1.7.1.ebuild
Normal file
28
app-misc/ttyrec/ttyrec-1.1.7.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user