app-misc/ttyrec: Bump to EAPI=6, cleaned ebuild
authorJonas Stein <jstein@gentoo.org>
Sun, 27 Aug 2017 13:18:19 +0000 (15:18 +0200)
committerJonas Stein <jstein@gentoo.org>
Sun, 27 Aug 2017 13:18:19 +0000 (15:18 +0200)
The Makefile was patched not ideally and was never used
* repaired Makefile
* bumped to EAPI=6
* cleaned ebuild

Package-Manager: Portage-2.3.8, Repoman-2.3.3

app-misc/ttyrec/files/ttyrec-1.0.8-flags.patch [new file with mode: 0644]
app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild [new file with mode: 0644]

diff --git a/app-misc/ttyrec/files/ttyrec-1.0.8-flags.patch b/app-misc/ttyrec/files/ttyrec-1.0.8-flags.patch
new file mode 100644 (file)
index 0000000..34687d9
--- /dev/null
@@ -0,0 +1,19 @@
+--- a/Makefile 2017-08-26 11:47:02.981266309 +0200
++++ b/Makefile 2017-08-26 14:33:47.161600445 +0200
+@@ -10,13 +10,13 @@
+ all: $(TARGET)
+ 
+ ttyrec: ttyrec.o io.o
+-      $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
++      $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttyrec ttyrec.o io.o
+ 
+ ttyplay: ttyplay.o io.o
+-      $(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
++      $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttyplay ttyplay.o io.o
+ 
+ ttytime: ttytime.o io.o
+-      $(CC) $(CFLAGS) -o ttytime ttytime.o io.o
++      $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttytime ttytime.o io.o
+ 
+ clean:
+       rm -f *.o $(TARGET) ttyrecord *~
diff --git a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild b/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
new file mode 100644 (file)
index 0000000..0d2cb54
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="The tty recorder provides tools to record and replay a terminal session."
+HOMEPAGE="http://0xcc.net/ttyrec/"
+SRC_URI="http://0xcc.net/ttyrec/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+PATCHES=( "${FILESDIR}/${P}-flags.patch" )
+
+src_install() {
+       dobin ttyrec ttyplay ttytime
+       dodoc README
+       doman *.1
+}