app-misc/ttyrec: Fix flags for darwin
authorJonas Stein <jstein@gentoo.org>
Sun, 27 Aug 2017 16:30:47 +0000 (18:30 +0200)
committerJonas Stein <jstein@gentoo.org>
Sun, 27 Aug 2017 16:34:20 +0000 (18:34 +0200)
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

index 0d2cb545ef30399cfcda82005978d39d724e8884..d5609a7a7f552a035977c96e43c090bbd368ff65 100644 (file)
@@ -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