summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2018-06-06 13:43:15 +0200
committerNicolas Bock <nicolasbock@gentoo.org>2018-06-06 13:46:40 +0200
commit2680e651188945c163c83d51a139dce5ead24479 (patch)
treeede2105872f64e677cbd02ff49014b0a938a221f /mail-client/neomutt
parentmail-client/neomutt: Fix live ebuild version (diff)
downloadgentoo-2680e651188945c163c83d51a139dce5ead24479.tar.gz
gentoo-2680e651188945c163c83d51a139dce5ead24479.tar.bz2
gentoo-2680e651188945c163c83d51a139dce5ead24479.zip
mail-client/neomutt: Fix build with '-doc'
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'mail-client/neomutt')
-rw-r--r--mail-client/neomutt/neomutt-99999999.ebuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/mail-client/neomutt/neomutt-99999999.ebuild b/mail-client/neomutt/neomutt-99999999.ebuild
index bc3743bad24..6d374739048 100644
--- a/mail-client/neomutt/neomutt-99999999.ebuild
+++ b/mail-client/neomutt/neomutt-99999999.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