diff options
author | Nicolas Bock <nicolasbock@gentoo.org> | 2018-06-06 13:45:07 +0200 |
---|---|---|
committer | Nicolas Bock <nicolasbock@gentoo.org> | 2018-06-06 13:46:43 +0200 |
commit | d87c0fb84fc0671cba4d1495c5ecb236099aecb3 (patch) | |
tree | 93b78975934d9a4eb5929929e3d2cdfa050b1219 /mail-client | |
parent | mail-client/neomutt: Fix build with '-doc' (diff) | |
download | gentoo-d87c0fb84fc0671cba4d1495c5ecb236099aecb3.tar.gz gentoo-d87c0fb84fc0671cba4d1495c5ecb236099aecb3.tar.bz2 gentoo-d87c0fb84fc0671cba4d1495c5ecb236099aecb3.zip |
mail-client/neomutt: Fix build with '-doc'
Closes-Bug: https://bugs.gentoo.org/657282
Closes-Bug: https://bugs.gentoo.org/657384
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/neomutt/neomutt-20180512.ebuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mail-client/neomutt/neomutt-20180512.ebuild b/mail-client/neomutt/neomutt-20180512.ebuild index 9fd8d9c635b2..45c87850f70c 100644 --- a/mail-client/neomutt/neomutt-20180512.ebuild +++ b/mail-client/neomutt/neomutt-20180512.ebuild @@ -109,12 +109,17 @@ src_install() { # A man-page is always handy, so fake one – here neomuttrc.5 # (neomutt.1 already exists) if use !doc; then - sed -n '/^\(SRCDIR\|EXEEXT\|CC_FOR_BUILD\)\s*=/p;$a\\n' \ + sed -n \ + -e '/^\(CC_FOR_BUILD\|CFLAGS_FOR_BUILD\)\s*=/p' \ + -e '/^\(EXTRA_CFLAGS_FOR_BUILD\|LDFLAGS_FOR_BUILD\)\s*=/p' \ + -e '/^\(EXEEXT\|SRCDIR\)\s*=/p' \ Makefile > doc/Makefile.fakedoc || die - sed -n '/^\(MAKEDOC_CPP\s*=\|doc\/\(makedoc$(EXEEXT)\|neomuttrc.man\):\)/,/^[[:blank:]]*$/p' \ + sed -n \ + -e '/^MAKEDOC_CPP\s*=/,/^\s*$/p' \ + -e '/^doc\/\(makedoc$(EXEEXT)\|neomutt\.1\|neomuttrc\.5\)\s*:/,/^\s*$/p' \ doc/Makefile.autosetup >> doc/Makefile.fakedoc || die - emake -f doc/Makefile.fakedoc doc/neomuttrc.man - cp doc/neomuttrc.man doc/neomuttrc.5 || die + emake -f doc/Makefile.fakedoc doc/neomutt.1 + emake -f doc/Makefile.fakedoc doc/neomuttrc.5 doman doc/neomutt.1 doc/neomuttrc.5 fi |