app-text/aspell: unbreak compilation on Darwin
authorFabian Groffen <grobian@gentoo.org>
Tue, 3 Oct 2017 09:26:50 +0000 (11:26 +0200)
committerFabian Groffen <grobian@gentoo.org>
Tue, 3 Oct 2017 09:26:50 +0000 (11:26 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.1

app-text/aspell/aspell-0.60.7_rc1.ebuild

index 5bbd533caac73fae582bc73d0c4beabbc5486b77..574323a3d2db11d50dc7bb124d841fbf490d8a30 100644 (file)
@@ -71,6 +71,11 @@ src_prepare() {
        # This has to be after automake has run so that we don't clobber
        # the default target that automake creates for us.
        echo 'install-filterLTLIBRARIES: install-libLTLIBRARIES' >> Makefile.in || die
+
+       # unicode patch breaks on Darwin, NCURSES_WIDECHAR won't get set
+       # any more.  Fix this.
+       [[ ${CHOST} == *-darwin* ]] && use unicode && \
+               append-cppflags -DNCURSES_WIDECHAR=1
 }
 
 src_configure() {