summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Stein <jstein@gentoo.org>2017-08-27 18:30:47 +0200
committerJonas Stein <jstein@gentoo.org>2017-08-27 18:34:20 +0200
commitc9c465b58bd5df55346768df2f9719a8d973fcbd (patch)
tree1ed524fc927d56880d994326783a3ff6db9ef663 /app-misc
parentapp-text/qpdf: add missing virtual/jpeg dependency, bug #628998 (diff)
downloadgentoo-c9c465b58bd5df55346768df2f9719a8d973fcbd.tar.gz
gentoo-c9c465b58bd5df55346768df2f9719a8d973fcbd.tar.bz2
gentoo-c9c465b58bd5df55346768df2f9719a8d973fcbd.zip
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
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild b/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
index 0d2cb545ef30..d5609a7a7f55 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