diff options
author | Fabian Groffen <grobian@gentoo.org> | 2022-11-06 20:43:47 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2022-11-06 20:46:07 +0100 |
commit | dc2cc4dce10d100fd26137232983645097008367 (patch) | |
tree | 23dcd481b9f9ac857993581e4daf6606c51aeaa1 /mail-client | |
parent | sys-libs/glibc: drop 2.36-r3, 2.36-r4 (diff) | |
download | gentoo-dc2cc4dce10d100fd26137232983645097008367.tar.gz gentoo-dc2cc4dce10d100fd26137232983645097008367.tar.bz2 gentoo-dc2cc4dce10d100fd26137232983645097008367.zip |
mail-client/mutt-2.2.8: drop userpatches, avoid command not found
- eapply_user doesn't have a return-code that indicates user patches
were applied, so don't falsely report we did
- drop usage of commands that we don't have installed to avoid
false-positives #864753
Closes: https://bugs.gentoo.org/864753
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/mutt/mutt-2.2.8.ebuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/mail-client/mutt/mutt-2.2.8.ebuild b/mail-client/mutt/mutt-2.2.8.ebuild index 06bb916b3761..2f770033de52 100644 --- a/mail-client/mutt/mutt-2.2.8.ebuild +++ b/mail-client/mutt/mutt-2.2.8.ebuild @@ -99,16 +99,27 @@ src_prepare() { main.c || die "Failed to add bug instructions" fi - local upatches= # allow user patches - eapply_user && upatches=" with user patches" + eapply_user # patch version string for bug reports local patchset= use vanilla || patchset=", ${PATCHSET}" - sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ + sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}"')"|' \ muttlib.c || die "failed patching in Gentoo version" + # bug 864753: avoid warning about missing tools, currently the order + # is lynx, w3m, elinks, so remove lynx or w3m when not installed, + # elinks should be there via dep. + if use doc ; then + if ! has_version www-client/lynx ; then + sed -i -e '/lynx/d' doc/Makefile.am || die + fi + if ! has_version www-client/w3m ; then + sed -i -e '/w3m/d' doc/Makefile.am || die + fi + fi + # many patches touch the buildsystem, we always need this AT_M4DIR="m4" eautoreconf |