commit: c9c465b58bd5df55346768df2f9719a8d973fcbd
Author: Jonas Stein <jstein <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 27 16:30:47 2017 +0000
Commit: Jonas Stein <jstein <AT> gentoo <DOT> org>
CommitDate: Sun Aug 27 16:34:20 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9c465b5
app-misc/ttyrec: Fix flags for darwin
The fix for bug 106530 was not applied properly before.
This fix will enable that ttyrec compiles on SVR4 systems like solaris.
Package-Manager: Portage-2.3.8, Repoman-2.3.3
app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
b/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
index 0d2cb545ef3..d5609a7a7f5 100644
--- a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
+++ b/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
@@ -14,6 +14,12 @@ SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux
~ppc-macos ~x86-macos"
PATCHES=( "${FILESDIR}/${P}-flags.patch" )
+src_compile() {
+ # Bug 106530
+ [[ ${CHOST} != *-darwin* ]] && append-cppflags -DSVR4
-D_XOPEN_SOURCE=500
+ default
+}
+
src_install() {
dobin ttyrec ttyplay ttytime
dodoc README