diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-client/neomutt |
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-client/neomutt')
-rw-r--r-- | mail-client/neomutt/Manifest | 13 | ||||
-rw-r--r-- | mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20170714.patch | 436 | ||||
-rw-r--r-- | mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20170912.patch | 293 | ||||
-rw-r--r-- | mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20171006.patch | 25 | ||||
-rw-r--r-- | mail-client/neomutt/files/Muttrc | 19 | ||||
-rw-r--r-- | mail-client/neomutt/files/Muttrc.mbox | 9 | ||||
-rw-r--r-- | mail-client/neomutt/metadata.xml | 18 | ||||
-rw-r--r-- | mail-client/neomutt/neomutt-20170714.ebuild | 115 | ||||
-rw-r--r-- | mail-client/neomutt/neomutt-20170912.ebuild | 115 | ||||
-rw-r--r-- | mail-client/neomutt/neomutt-20171006.ebuild | 113 | ||||
-rw-r--r-- | mail-client/neomutt/neomutt-9999.ebuild | 115 |
11 files changed, 1271 insertions, 0 deletions
diff --git a/mail-client/neomutt/Manifest b/mail-client/neomutt/Manifest new file mode 100644 index 000000000000..6115e555496d --- /dev/null +++ b/mail-client/neomutt/Manifest @@ -0,0 +1,13 @@ +AUX 0001-Rename-mutt-to-neomutt-20170714.patch 17943 SHA256 2b93b080faf8e646ce3bf377ea76551bdd557160e3bebf752336781d79e94901 SHA512 c9fa44781fab530a906707b2cd261720635c076ac67346dd40b8135f691690c540e31391e22b3f29c9a863731a4e2e1a47cdccc8f5625654113168dc3cdd2cfc WHIRLPOOL c360343b345911670c0642505be0c9dfe5f8c79222e9b4666e8703a4cbf9d666559106d955f130bc04bf5bdf0ce878cb6361b7a8361dcb429f73f5f5acae71c1 +AUX 0001-Rename-mutt-to-neomutt-20170912.patch 12034 SHA256 a8d5545c8d032253583d5dab2ac9fbb2a95f614b2c5366a2639c7407176b8f98 SHA512 2c1773b9123041e1eef634c0b479e984f8b4eee615b6f2aff841044a094f785bb6506eb026bb26dd910fa2e89e035b29d9030fb7911d1aa61be4ab6eed4077b4 WHIRLPOOL b91d3102ec71f58fdf487b3f0f78884fd15098587597a844604f354765f20b7b20a60228a5d0f215f54e12aacce9b651036c048775a3b82c359a62480dc74620 +AUX 0001-Rename-mutt-to-neomutt-20171006.patch 752 SHA256 d94edd1e1a3d302e0175f64532f90d033e15a67e0020942819bbbe9923b9b170 SHA512 d6975449dc8405a1dde84665d94b3c5668a979de6082e1ffac539de755a9337a6f9e772d811ab2861b0f6675b27ae1e10aedde512e6a7a234a3af440d0384e4c WHIRLPOOL d7c55f1d9eae5b51f48a049a06bc3610a12f4c6c93a51e568d5a742bf84ade065ee094350f9539f583f48450b5a8f6db8db04fd078cb4016d02f1d73ceab3f05 +AUX Muttrc 667 SHA256 932940db69c951caaa87a17ee98a8e2262aeadf1e978f6d671b642184c5d545f SHA512 b64d6e857f0c7de2e2e5b23cecd869f8a9807aa827ad6221e3c5864b2a31fb0136aeaf09ffdb2549645507fe92f724774a80395b6ab2345068903f5ee1269f29 WHIRLPOOL 91275eb31729bf72bcc29eaa61f72c88f8a75bc5e8bf2220b7d9aaf1eb9211335b1cbc481f906325dc36d30853c94330a8b59b3d4707d269f2c075c2332166bb +AUX Muttrc.mbox 486 SHA256 10b251f88ccc5d4c95c96ab17b6ab6a30a16d6590ab896a60037f869fc4d44a0 SHA512 aece9a734d292b6f638d2a0dd39f20d9894b4bb6e6888da606a49274faef9c1864e98eec907ffa7742af58d46456e46b8945d2d47c8b89fc95daa2a8833d3e90 WHIRLPOOL 0bb72d4f1c6d33ececd928dcbbc517be048414beabf2bc488dd3b534633c5b8e30cf3ebe6bc86d76abd84f63657c4fbae05ea61680c4d1b9323ccefaa8b74b89 +DIST neomutt-20170714.tar.gz 2509160 SHA256 40d48920f95ca49ab96eb109b658f5cf6e1c222320c58bdd03769c1355d7a383 SHA512 eb31d2f23b7211904cd66ba293c008f953778b37f13fd09d4db571d013f1c8e6449fccd827872f3ad0a2c8e62555f92b3f9591a1f0f4ac37ab362a4681abaaa0 WHIRLPOOL 455495501a2ab1989d5f3bfa75aa2370896956cdfd7d2e852e225c96aa23a1abdaf2dbb9d886d1d96486d19b2b38c225e8263f268ebafcef8cbd0024885189f3 +DIST neomutt-20170912.tar.gz 2533245 SHA256 9f0d128fe8dbbbddb67e2b629f8b5e52a9d892f82c735845c1708c14e3046657 SHA512 7551da47029667443257d9d370af7217846abf988d1469c4e08f367ef0bce2dfb658321df27176622bbd07e6d46c320380749d4ce05ee39cb1e8d9b6c3e1d7e6 WHIRLPOOL 0dad6380acf5b6f891bcb77388023de27d23e4ea8ad0eb3563c1704de555a2fc54604d47b9b67557c6ab0310e1c365c786a1952f6794b2012594f1c19033ad3c +DIST neomutt-20171006.tar.gz 2706019 SHA256 86e9d945919438a377828b15f03c8690f639062e44151e219e2f8443ae27147c SHA512 adfa702ee642ce58b11dab1d2b805626d8f90e8cc88731cb7e051df5b785010ac43d90eb14d2a5ace02d3abaf921c9f36f86f627063036bcb7f5724912ca134d WHIRLPOOL 75f2a0c8881b769f1a7acd8c0e7724baf0a2943a68a4029d74d32a5a5ed3203c32ce3704b3271a8e05f02c233273319437a593ffad9df5e1b988f8725f0f2433 +EBUILD neomutt-20170714.ebuild 2886 SHA256 9c5ff863ac720202d144e49b4d56d279c1156f330c13b3cb4e42dc053fc708ef SHA512 3c39242e27f38cfa7f3a491ea168b23512aa10a01d95c1d84bdb2034e5096d5e8cca5db13c8bf338e2bf39df4e953bd7ddf512d22954c2206186ab0bee3b0b8e WHIRLPOOL 511a7be9e55fde867abe4c294e861f1569d4e13267cceb712b3d3bcaf164a7d9a8d351cc4cc38f49f11439ad7047b5b45eeead3d620b477f73d4d6e4b37cf689 +EBUILD neomutt-20170912.ebuild 2883 SHA256 62f2e3c7bc4adcfe4c1f48b3b1968def7985ede762c30f2b8170df51831cdcc1 SHA512 aabd31f6bb102f174a1f076dae060decc8f01c11afce8d732ff0666d77a746d78ef96480a0f5c42eb0be73e194e07087d23e8bc418d625dad0a6d98627cff1c5 WHIRLPOOL 908a8c3c732c3ccf499e9868b183514443d9a52db2659ae7b520ca945aa5b0fb2a3dec584a69514c1f9d062d68c7bba7d856288e6bd217df5530274093640147 +EBUILD neomutt-20171006.ebuild 2795 SHA256 50e22a6219807aed7c5cc9824bc51e1c39fc8b83d84df42221bd97574f4aee29 SHA512 8d3919c88ff971891c1c49c8a56bea2a802ba07dc556d85779e13f8a6b67bc4788fbcfbcc0fd287c04e952a110ecee9b0d2420fccf79f1735e98834b037fe9e1 WHIRLPOOL a5094c1458ae6f025f0ad8b5798ca35d45a4ca39cb5f2aec00327cb2f6e2ffb335b20f915f8ea71d098f1c7eee1c2fea38f61b1b885d2da785a39b18ba0d6193 +EBUILD neomutt-9999.ebuild 2852 SHA256 4cbafe4b788a717c3ccb9dd80967b15ea5aac05c90d1d50bf55f943285e2c2d7 SHA512 c3266f72a083abed04c9abd05794c9d8c89c1422fdfa51352d8da09657142fa2901d75800157560c217042a408578437b627689711e5310c8084153cb6e34251 WHIRLPOOL 7ae660414d6e5d9736dcd94558c5161a116313ba0ed008d76559cd986bcc031b71ac88b1f2fbd99b39e79d47ac5500a7a067736b87f537385e709046ebcc2235 +MISC metadata.xml 721 SHA256 5122d3087be519e71debbfb6c796335ad7e40bf099b0058379bc63dbfc28ea72 SHA512 2fbf2b5d1b13b0845b2545ba99c0bbc15faa0f000f69dba3c307244c1a6aeb74e2d34ee7052527856335e5d8bf665738d4d8bd0e7e9ca53c28b1d92a851e8747 WHIRLPOOL c6c717387be4bef13c38fd86594966e33c2f10fdbfe899335ecc36f01c7d42fdfc991465da1c6a4ec2de1dd68ad7048e8bf11012d26241c724fd189d3a38ffbc diff --git a/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20170714.patch b/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20170714.patch new file mode 100644 index 000000000000..bb01dbf98013 --- /dev/null +++ b/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20170714.patch @@ -0,0 +1,436 @@ +From bb4a3d41530619970d5c3c30be7e9424dd169de5 Mon Sep 17 00:00:00 2001 +From: Nicolas Bock <nicolasbock@gmail.com> +Date: Tue, 8 Aug 2017 13:36:20 +0200 +Subject: [PATCH] Rename mutt to neomutt + +--- + Makefile.am | 30 ++++++++++++++++-------------- + configure.ac | 8 ++++---- + contrib/gpg.rc | 8 ++++---- + contrib/pgp2.rc | 4 ++-- + contrib/pgp5.rc | 8 ++++---- + contrib/pgp6.rc | 4 ++-- + doc/Makefile.am | 24 +++++++++++------------- + doc/PGP-Notes.txt | 8 ++++---- + doc/mutt.man | 2 +- + doc/pgpewrap.1 | 12 ++++++------ + doc/pgpring.1 | 10 +++++----- + hcache/hcachever.sh | 2 +- + 12 files changed, 60 insertions(+), 60 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 5b6494e8..d34d3e4c 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -3,7 +3,7 @@ + include $(top_srcdir)/flymake.am + + AUTOMAKE_OPTIONS = 1.6 foreign +-EXTRA_PROGRAMS = mutt_md5 pgpewrap pgpring ++EXTRA_PROGRAMS = neomutt_md5 neomutt_pgpewrap neomutt_pgpring + + # Test the .tar file by building everything + AM_DISTCHECK_CONFIGURE_FLAGS = \ +@@ -42,9 +42,9 @@ distdir = neo$(PACKAGE)-$(VERSION) + + BUILT_SOURCES = conststrings.c git_ver.h keymap_alldefs.h keymap_defs.h + +-bin_PROGRAMS = mutt $(PGPAUX_TARGET) ++bin_PROGRAMS = neomutt $(PGPAUX_TARGET) + +-mutt_SOURCES = account.c addrbook.c address.h alias.c alias.h ascii.c attach.c \ ++neomutt_SOURCES = account.c addrbook.c address.h alias.c alias.h ascii.c attach.c \ + base64.c bcache.c body.h browser.c buffer.c buffy.c charset.c color.c \ + commands.c complete.c compose.c compress.c content.h context.h copy.c \ + curs_lib.c curs_main.c date.c edit.c editmsg.c enter.c enter_state.h \ +@@ -59,15 +59,15 @@ mutt_SOURCES = account.c addrbook.c address.h alias.c alias.h ascii.c attach.c \ + smtp.c sort.c state.h status.c system.c thread.c thread.h url.c \ + version.c where.h + +-nodist_mutt_SOURCES = $(BUILT_SOURCES) ++nodist_neomutt_SOURCES = $(BUILT_SOURCES) + + LIBIMAP = -Limap -limap + LIBIMAPDEPS = $(top_srcdir)/imap/imap.h imap/libimap.a + +-mutt_LDADD = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(HCACHE_LIBS) $(NCRYPT_LIBS) \ ++neomutt_LDADD = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(HCACHE_LIBS) $(NCRYPT_LIBS) \ + $(LIBIMAP) $(LIBICONV) $(GPGME_LIBS) $(INTLLIBS) + +-mutt_DEPENDENCIES = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(LIBIMAPDEPS) \ ++neomutt_DEPENDENCIES = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(LIBIMAPDEPS) \ + $(HCACHE_DEPS) $(NCRYPT_DEPS) $(INTLDEPS) + + DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \ +@@ -75,7 +75,7 @@ DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \ + + AM_CPPFLAGS=-I. -I$(top_srcdir) $(GPGME_CFLAGS) + +-EXTRA_mutt_SOURCES = browser.h mbyte.h mutt_idna.c mutt_idna.h \ ++EXTRA_neomutt_SOURCES = browser.h mbyte.h mutt_idna.c mutt_idna.h \ + mutt_lua.c mutt_sasl.c mutt_notmuch.c mutt_ssl.c mutt_ssl_gnutls.c \ + remailer.c remailer.h resize.c sha1.c url.h utf8.c wcwidth.c + +@@ -95,13 +95,15 @@ EXTRA_DIST = account.h ascii.h attach.h bcache.h browser.h buffer.h buffy.h \ + + EXTRA_SCRIPTS = + +-pgpring_SOURCES = ascii.c extlib.c lib.c md5.c pgppubring.c sha1.c +-pgpring_LDADD = $(LIBOBJS) $(NCRYPT_LIBS) $(INTLLIBS) +-pgpring_DEPENDENCIES = $(LIBOBJS) $(NCRYPT_DEPS) $(INTLDEPS) ++neomutt_pgpewrap_SOURCES = pgpewrap.c + +-mutt_md5_SOURCES = md5.c +-mutt_md5_CFLAGS = -DMD5UTIL +-mutt_md5_LDADD = ++neomutt_pgpring_SOURCES = ascii.c extlib.c lib.c md5.c pgppubring.c sha1.c ++neomutt_pgpring_LDADD = $(LIBOBJS) $(NCRYPT_LIBS) $(INTLLIBS) ++neomutt_pgpring_DEPENDENCIES = $(LIBOBJS) $(NCRYPT_DEPS) $(INTLDEPS) ++ ++neomutt_md5_SOURCES = md5.c ++neomutt_md5_CFLAGS = -DMD5UTIL ++neomutt_md5_LDADD = + + txt2c_SOURCES = txt2c.c + txt2c_LDADD = +@@ -141,7 +143,7 @@ keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.SIDEBAR $(srcdir)/OPS.NOTMUCH $(sr + $(srcdir)/OPS.MIX $(srcdir)/OPS.PGP $(srcdir)/OPS.SMIME $(srcdir)/OPS.CRYPT \ + > $@ + +-git_ver.h: $(mutt_SOURCES) $(SUBDIRS) ++git_ver.h: $(neomutt_SOURCES) $(SUBDIRS) + version=`git describe --dirty --abbrev=6 --match "neomutt-*" 2> /dev/null | sed -e 's/^neomutt-[0-9]\{8\}//' -e 's/g//'`; \ + echo 'const char *GitVer = "'$$version'";' > git_ver.h.tmp; \ + cmp -s git_ver.h.tmp git_ver.h || mv git_ver.h.tmp git_ver.h; \ +diff --git a/configure.ac b/configure.ac +index bc88adc7..17796620 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -4,7 +4,7 @@ dnl autoreconf -i + CFLAGS=$CFLAGS + LDFLAGS=$LDFLAGS + +-AC_INIT([NeoMutt], [20170714], [neomutt-devel@neomutt.org], [mutt], [https://www.neomutt.org]) ++AC_INIT([NeoMutt], [20170714], [neomutt-devel@neomutt.org], [neomutt], [https://www.neomutt.org]) + AC_CONFIG_SRCDIR(mutt.h) + AC_CONFIG_AUX_DIR([.build-aux]) + AM_INIT_AUTOMAKE +@@ -192,7 +192,7 @@ AS_IF([test x$use_gpgme = xyes && test x$gpgme_found = xno], [ + dnl --enable-pgp + AS_IF([test x$use_pgp != "xno"], [ + AC_DEFINE(CRYPT_BACKEND_CLASSIC_PGP, 1, [Define if you want classic PGP Support.]) +- PGPAUX_TARGET="pgpring\$(EXEEXT) pgpewrap\$(EXEEXT)" ++ PGPAUX_TARGET="neomutt_pgpring\$(EXEEXT) neomutt_pgpewrap\$(EXEEXT)" + build_ncrypt_pgp="yes" + ]) + +@@ -449,7 +449,7 @@ AC_SUBST([datarootdir]) + AC_MSG_CHECKING(where to put the documentation) + AC_ARG_WITH(docdir, AS_HELP_STRING([--with-docdir=PATH],[Specify where to put the documentation]), + [mutt_cv_docdir=$withval], +- [mutt_cv_docdir='${datarootdir}/doc/mutt']) ++ [mutt_cv_docdir='${datarootdir}/doc/neomutt']) + AC_MSG_RESULT($mutt_cv_docdir) + if test -z "$docdir" -o -n "$with_docdir"; then + docdir=$mutt_cv_docdir +@@ -825,7 +825,7 @@ AM_CONDITIONAL(BUILD_HC_QDBM, test "x$build_hc_qdbm" = "xyes") + AM_CONDITIONAL(BUILD_HC_TC, test "x$build_hc_tc" = "xyes") + dnl -- end cache -- + +-MUTT_MD5="mutt_md5$EXEEXT" ++MUTT_MD5="neomutt_md5$EXEEXT" + + AC_SUBST(MUTT_MD5) + AC_SUBST(MUTT_LIB_OBJECTS) +diff --git a/contrib/gpg.rc b/contrib/gpg.rc +index 3392038b..86dc23c7 100644 +--- a/contrib/gpg.rc ++++ b/contrib/gpg.rc +@@ -46,12 +46,12 @@ set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphra + set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" + + # create a pgp/mime encrypted attachment +-# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" +-set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" ++# set pgp_encrypt_only_command="neomutt_pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" ++set pgp_encrypt_only_command="neomutt_pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" + + # create a pgp/mime encrypted and signed attachment +-# set pgp_encrypt_sign_command="pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" +-set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" ++# set pgp_encrypt_sign_command="neomutt_pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" ++set pgp_encrypt_sign_command="neomutt_pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" + + # import a key into the public key ring + set pgp_import_command="gpg --no-verbose --import %f" +diff --git a/contrib/pgp2.rc b/contrib/pgp2.rc +index bd01e2d2..08b592dd 100644 +--- a/contrib/pgp2.rc ++++ b/contrib/pgp2.rc +@@ -37,10 +37,10 @@ set pgp_export_command="pgp -kxaf +language=mutt %r" + set pgp_verify_key_command="pgp -kcc +language=mutt %r" + + # read in the public key ring +-set pgp_list_pubring_command="pgpring -2 %r" ++set pgp_list_pubring_command="neomutt_pgpring -2 %r" + + # read in the secret key ring +-set pgp_list_secring_command="pgpring -s -2 %r" ++set pgp_list_secring_command="neomutt_pgpring -s -2 %r" + + # pattern for good signature + set pgp_good_sign="Good signature" +diff --git a/contrib/pgp5.rc b/contrib/pgp5.rc +index 4440d6b7..aea3ae54 100644 +--- a/contrib/pgp5.rc ++++ b/contrib/pgp5.rc +@@ -19,10 +19,10 @@ set pgp_decrypt_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgpv +languag + set pgp_sign_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgps +language=mutt +verbose=0 +batchmode -abft %?a? -u %a?" + + # create a pgp/mime encrypted attachment +-set pgp_encrypt_only_command="pgpewrap pgpe +language=mutt +verbose=0 +batchmode +nobatchinvalidkeys=off -aft -- -r %r < %f" ++set pgp_encrypt_only_command="neomutt_pgpewrap pgpe +language=mutt +verbose=0 +batchmode +nobatchinvalidkeys=off -aft -- -r %r < %f" + + # create a pgp/mime encrypted and signed attachment +-set pgp_encrypt_sign_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgpewrap pgpe +language=mutt +verbose=0 +batchmode +nobatchinvalidkeys=off -afts %?a? -u %a? -- -r %r" ++set pgp_encrypt_sign_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | neomutt_pgpewrap pgpe +language=mutt +verbose=0 +batchmode +nobatchinvalidkeys=off -afts %?a? -u %a? -- -r %r" + + # import a key into the public key ring + set pgp_import_command="pgpk -a +language=mutt --OutputInformationFD=1 %f" +@@ -34,9 +34,9 @@ set pgp_export_command="pgpk -xa +language=mutt --OutputInformationFD=1 %r" + set pgp_verify_key_command="pgpk -c +batchmode +language=mutt --OutputInformationFD=1 %r" + + # read in the public key ring +-set pgp_list_pubring_command="pgpring -5 %r" ++set pgp_list_pubring_command="neomutt_pgpring -5 %r" + + # read in the secret key ring +-set pgp_list_secring_command="pgpring -5 -s %r" ++set pgp_list_secring_command="neomutt_pgpring -5 -s %r" + + +diff --git a/contrib/pgp6.rc b/contrib/pgp6.rc +index a8708042..6b1ef985 100644 +--- a/contrib/pgp6.rc ++++ b/contrib/pgp6.rc +@@ -31,10 +31,10 @@ set pgp_export_command="pgp6 +compatible -kxaf %r" + set pgp_verify_key_command="pgp6 +compatible -kcc %r" + + # read in the public key ring +-set pgp_list_pubring_command="pgpring -5 %r" ++set pgp_list_pubring_command="neomutt_pgpring -5 %r" + + # read in the secret key ring +-set pgp_list_secring_command="pgpring -s -5 %r" ++set pgp_list_secring_command="neomutt_pgpring -s -5 %r" + + # create a clearsigned message + set pgp_clearsign_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgp6 +compatible +verbose=0 +batchmode +clearsig -afst %?a? -u %a?" +diff --git a/doc/Makefile.am b/doc/Makefile.am +index 6a6c711b..770dc16c 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -33,20 +33,18 @@ topsrcdir_DOCFILES = ChangeLog.md CODE_OF_CONDUCT.md COPYRIGHT INSTALL \ + + all: makedoc-all + +-makedoc-all: $(CHUNKED_DOCFILES) index.html manual.html manual.txt mutt.1 \ +- Muttrc muttrc.man neomutt-syntax.vim ++makedoc-all: $(CHUNKED_DOCFILES) index.html manual.html manual.txt neomutt.1 \ ++ Muttrc neomuttrc.man neomutt-syntax.vim + + install-data-local: makedoc-all + $(MKDIR_P) $(DESTDIR)$(mandir)/man1 + $(MKDIR_P) $(DESTDIR)$(mandir)/man5 + $(MKDIR_P) $(DESTDIR)$(sysconfdir) +- $(INSTALL) -m 644 mutt.1 $(DESTDIR)$(mandir)/man1/mutt.1 +- $(INSTALL) -m 644 muttrc.man $(DESTDIR)$(mandir)/man5/muttrc.5 ++ $(INSTALL) -m 644 neomutt.1 $(DESTDIR)$(mandir)/man1/neomutt.1 ++ $(INSTALL) -m 644 neomuttrc.man $(DESTDIR)$(mandir)/man5/neomuttrc.5 + $(INSTALL) -m 644 $(srcdir)/smime_keys.1 $(DESTDIR)$(mandir)/man1/smime_keys.1 +- $(INSTALL) -m 644 $(srcdir)/pgpewrap.1 $(DESTDIR)$(mandir)/man1/pgpewrap.1 +- $(INSTALL) -m 644 $(srcdir)/pgpring.1 $(DESTDIR)$(mandir)/man1/pgpring.1 +- $(INSTALL) -m 644 $(srcdir)/mbox.5 $(DESTDIR)$(mandir)/man5/mbox.5 +- $(INSTALL) -m 644 $(srcdir)/mmdf.5 $(DESTDIR)$(mandir)/man5/mmdf.5 ++ $(INSTALL) -m 644 $(srcdir)/pgpewrap.1 $(DESTDIR)$(mandir)/man1/neomutt_pgpewrap.1 ++ $(INSTALL) -m 644 $(srcdir)/pgpring.1 $(DESTDIR)$(mandir)/man1/neomutt_pgpring.1 + $(MKDIR_P) $(DESTDIR)$(docdir) + for f in $(topsrcdir_DOCFILES); do \ + $(INSTALL) -m 644 $(top_srcdir)/$$f $(DESTDIR)$(docdir); \ +@@ -69,10 +67,10 @@ install-data-local: makedoc-all + -$(INSTALL) -m 644 $(srcdir)/neomutt-syntax.vim $(DESTDIR)$(docdir) + + uninstall-local: +- for f in mutt.1 smime_keys.1 pgpewrap.1 pgpring.1; do \ ++ for f in neomutt.1 smime_keys.1 neomutt_pgpewrap.1 neomutt_pgpring.1; do \ + rm -f $(DESTDIR)$(mandir)/man1/$$f; \ + done +- for f in muttrc.5 mbox.5 mmdf.5; do \ ++ for f in neomuttrc.5; do \ + rm -f $(DESTDIR)$(mandir)/man5/$$f; \ + done + for f in $(srcdir_DOCFILES) $(topsrcdir_DOCFILES) $(HTML_DOCFILES); do \ +@@ -120,11 +118,11 @@ sortcheck: manual.xml + rm -rf vars.tmp.1 vars.tmp.2 + + clean-local: +- rm -f *.html mutt.1 muttrc.man ++ rm -f *.html neomutt.1 neomuttrc.man + + DISTCLEANFILES = manual.txt manual.html manual.xml Muttrc + +-muttrc.man: makedoc$(EXEEXT) $(top_srcdir)/init.h muttrc.man.head muttrc.man.tail ++neomuttrc.man: makedoc$(EXEEXT) $(top_srcdir)/init.h muttrc.man.head muttrc.man.tail + $(MAKEDOC_CPP) $(top_srcdir)/init.h | \ + ./makedoc$(EXEEXT) -m | \ + cat $(srcdir)/muttrc.man.head - $(srcdir)/muttrc.man.tail > $@ +@@ -133,7 +131,7 @@ EDIT = sed -e 's,@sysconfdir\@,$(sysconfdir),g' \ + -e 's,@bindir\@,$(bindir),g' \ + -e 's,@docdir\@,$(docdir),g' + +-mutt.1: $(srcdir)/mutt.man ++neomutt.1: $(srcdir)/mutt.man + $(EDIT) $(srcdir)/mutt.man > $@ + + manual.xml: makedoc$(EXEEXT) ../config.h $(top_srcdir)/init.h \ +diff --git a/doc/PGP-Notes.txt b/doc/PGP-Notes.txt +index 2215c410..a358f818 100644 +--- a/doc/PGP-Notes.txt ++++ b/doc/PGP-Notes.txt +@@ -157,7 +157,7 @@ or exim. + Auxiliary Programs + ------------------ + +-Mutt needs two auxiliary programs for its PGP support: pgpewrap and ++Mutt needs two auxiliary programs for its PGP support: neomutt_pgpewrap and + pgpring. + + +@@ -186,17 +186,17 @@ Command line options: + + + +-2. pgpewrap ++2. neomutt_pgpewrap + + This is a little C program which does some command line munging: The +-first argument is a command to be executed. When pgpewrap ++first argument is a command to be executed. When neomutt_pgpewrap + encounters a "--" (dash-dash) argument, it will interpret the next + argument as a prefix which is put in front of all following + arguments. + + Example: + +- pgpewrap pgpe file -- -r a b c ++ neomutt_pgpewrap pgpe file -- -r a b c + + will execute: + +diff --git a/doc/mutt.man b/doc/mutt.man +index 8edee96e..9bc49a90 100644 +--- a/doc/mutt.man ++++ b/doc/mutt.man +@@ -171,7 +171,7 @@ If this variable is set, mailcap are always used without prompting first. + .IP "PGPPATH" + Directory in which the user's PGP public keyring can be found. When used with + the original PGP program, mutt and +-.B pgpring (1) ++.B neomutt_pgpring (1) + rely on this being set. + .IP "TMPDIR" + Directory in which temporary files are created. +diff --git a/doc/pgpewrap.1 b/doc/pgpewrap.1 +index 20327349..9ad7bff7 100644 +--- a/doc/pgpewrap.1 ++++ b/doc/pgpewrap.1 +@@ -1,6 +1,6 @@ + .\" -*-nroff-*- + .\" +-.\" pgpewrap, a command line munging tool ++.\" neomutt_pgpewrap, a command line munging tool + .\" Manpage Copyright (c) 2013 Honza Horak + .\" + .\" This program is free software; you can redistribute it and/or modify +@@ -17,25 +17,25 @@ + .\" along with this program; if not, write to the Free Software + .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + .\" +-.TH pgpewrap 1 "May 2013" Unix "User Manuals" ++.TH neomutt_pgpewrap 1 "May 2013" Unix "User Manuals" + .SH NAME +-pgpewrap \- Mutt command line munging tool ++neomutt_pgpewrap \- Mutt command line munging tool + + .SH SYNTAX + .PP +-\fBpgpewrap\fP [ \fBflags\fP ] \-\- \fBprefix\fP [ \fBrecipients\fP ] ++\fBneomutt_pgpewrap\fP [ \fBflags\fP ] \-\- \fBprefix\fP [ \fBrecipients\fP ] + + .SH DESCRIPTION + .PP + This is a little C program which does some command line munging: The +-first argument is a command to be executed. When \fBpgpewrap\fP ++first argument is a command to be executed. When \fBneomutt_pgpewrap\fP + encounters a "\-\-" (dash\-dash) argument, it will interpret the next + argument as a prefix which is put in front of all following + arguments. + + .SH EXAMPLE + +- pgpewrap pgpe file \-\- \-r a b c ++ neomutt_pgpewrap pgpe file \-\- \-r a b c + + will execute: + +diff --git a/doc/pgpring.1 b/doc/pgpring.1 +index 0009ad92..d23ebf55 100644 +--- a/doc/pgpring.1 ++++ b/doc/pgpring.1 +@@ -1,6 +1,6 @@ + .\" -*-nroff-*- + .\" +-.\" pgpring, a key ring dumper ++.\" neomutt_pgpring, a key ring dumper + .\" Manpage Copyright (c) 2004-2013 Matthew Wilcox, Honza Horak + .\" + .\" This program is free software; you can redistribute it and/or modify +@@ -17,18 +17,18 @@ + .\" along with this program; if not, write to the Free Software + .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + .\" +-.TH pgpring 1 "May 2013" Unix "User Manuals" ++.TH neomutt_pgpring 1 "May 2013" Unix "User Manuals" + .SH NAME +-pgpring \- Mutt key ring dumper ++neomutt_pgpring \- Mutt key ring dumper + + .SH SYNTAX + .PP +-\fBpgpring\fP [ \fB\-k\fP \fIkeyring\fP ] [ \fB\-2\fP | \fB\-5\fP ] ++\fBneomutt_pgpring\fP [ \fB\-k\fP \fIkeyring\fP ] [ \fB\-2\fP | \fB\-5\fP ] + [ \fB\-s\fP ] [ \fB\-S\fP ] [ \fB\-f\fP ] + + .SH DESCRIPTION + .PP +-pgpring is a key ring dumper. It extracts information from PGP's ++neomutt_pgpring is a key ring dumper. It extracts information from PGP's + binary key ring and emits it in an (almost) readable output format + understood by mutt's key selection routines. This output format + mimics the one used by the GNU Privacy Guard (GPG). +diff --git a/hcache/hcachever.sh b/hcache/hcachever.sh +index 733e6ca1..c35425d1 100755 +--- a/hcache/hcachever.sh ++++ b/hcache/hcachever.sh +@@ -77,7 +77,7 @@ do + done + echo " */" >> $TMPD + +-MD5TEXT=`echo "$TEXT" | ../mutt_md5` ++MD5TEXT=`echo "$TEXT" | ../neomutt_md5` + echo "#define HCACHEVER 0x"`echo $MD5TEXT | cut -c-8` >> $TMPD + + # TODO: validate we have all structs +-- +2.13.5 + diff --git a/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20170912.patch b/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20170912.patch new file mode 100644 index 000000000000..a8a0c8ad2726 --- /dev/null +++ b/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20170912.patch @@ -0,0 +1,293 @@ +From 457e54623ce8c5ef40647ebbc4a304417e353230 Mon Sep 17 00:00:00 2001 +From: Nicolas Bock <nicolasbock@gmail.com> +Date: Mon, 2 Oct 2017 14:04:34 -0600 +Subject: [PATCH] Rename mutt to neomutt + +--- + Makefile.am | 28 +++++++++++++++------------- + configure.ac | 8 ++++---- + contrib/{smime_keys => neomutt_smime_keys} | 0 + contrib/pgp2.rc | 4 ++-- + contrib/pgp5.rc | 4 ++-- + contrib/pgp6.rc | 4 ++-- + contrib/smime.rc | 2 +- + doc/Makefile.am | 30 +++++++++++++++--------------- + lib/Makefile.am | 4 ++-- + 9 files changed, 43 insertions(+), 41 deletions(-) + rename contrib/{smime_keys => neomutt_smime_keys} (100%) + +diff --git a/Makefile.am b/Makefile.am +index 97218b8f..859b2bcd 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -3,7 +3,7 @@ + include $(top_srcdir)/flymake.am + + AUTOMAKE_OPTIONS = 1.6 foreign +-EXTRA_PROGRAMS = pgpewrap pgpring ++EXTRA_PROGRAMS = neomutt_pgpewrap neomutt_pgpring + + # Test the .tar file by building everything + AM_DISTCHECK_CONFIGURE_FLAGS = \ +@@ -42,9 +42,9 @@ distdir = neo$(PACKAGE)-$(VERSION) + + BUILT_SOURCES = conststrings.c git_ver.h + +-bin_PROGRAMS = mutt $(PGPAUX_TARGET) ++bin_PROGRAMS = neomutt $(PGPAUX_TARGET) + +-mutt_SOURCES = account.c addrbook.c address.h alias.c alias.h attach.c \ ++neomutt_SOURCES = account.c addrbook.c address.h alias.c alias.h attach.c \ + bcache.c body.c body.h browser.c buffy.c charset.c color.c \ + commands.c complete.c compose.c compress.c content.h context.h copy.c \ + curs_lib.c curs_main.c edit.c editmsg.c enter.c enter_state.h \ +@@ -59,18 +59,18 @@ mutt_SOURCES = account.c addrbook.c address.h alias.c alias.h attach.c \ + smtp.c sort.c state.c state.h status.c system.c thread.c thread.h url.c \ + version.c where.h + +-nodist_mutt_SOURCES = $(BUILT_SOURCES) ++nodist_neomutt_SOURCES = $(BUILT_SOURCES) + + LIBIMAP = -Limap -limap + LIBIMAPDEPS = $(top_srcdir)/imap/imap.h imap/libimap.a + +-LIBMUTT = -Llib -lmutt +-LIBMUTTDEPS = $(top_srcdir)/lib/lib.h lib/libmutt.a ++LIBMUTT = -Llib -lneomutt ++LIBMUTTDEPS = $(top_srcdir)/lib/lib.h lib/libneomutt.a + +-mutt_LDADD = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(HCACHE_LIBS) $(NCRYPT_LIBS) \ ++neomutt_LDADD = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(HCACHE_LIBS) $(NCRYPT_LIBS) \ + $(LIBIMAP) $(LIBMUTT) $(LIBICONV) $(GPGME_LIBS) $(INTLLIBS) + +-mutt_DEPENDENCIES = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(LIBIMAPDEPS) \ ++neomutt_DEPENDENCIES = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(LIBIMAPDEPS) \ + $(LIBMUTTDEPS) $(HCACHE_DEPS) $(NCRYPT_DEPS) $(INTLDEPS) + + DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \ +@@ -78,7 +78,7 @@ DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \ + + AM_CPPFLAGS=-I. -I$(top_srcdir) $(GPGME_CFLAGS) + +-EXTRA_mutt_SOURCES = browser.h mbyte.h mutt_idna.c mutt_idna.h \ ++EXTRA_neomutt_SOURCES = browser.h mbyte.h mutt_idna.c mutt_idna.h \ + mutt_lua.c mutt_sasl.c mutt_notmuch.c mutt_ssl.c mutt_ssl_gnutls.c \ + remailer.c remailer.h resize.c url.h + +@@ -94,11 +94,13 @@ EXTRA_DIST = account.h attach.h bcache.h browser.h buffy.h \ + rfc1524.h rfc2047.h rfc2231.h rfc3676.h rfc822.h sidebar.h \ + sort.h txt2c.c txt2c.sh version.h + ++neomutt_pgpewrap_SOURCES = pgpewrap.c ++ + EXTRA_SCRIPTS = + +-pgpring_SOURCES = pgppubring.c +-pgpring_LDADD = $(LIBOBJS) $(NCRYPT_LIBS) $(INTLLIBS) $(LIBMUTT) +-pgpring_DEPENDENCIES = $(LIBOBJS) $(NCRYPT_DEPS) $(INTLDEPS) $(LIBMUTTDEPS) ++neomutt_pgpring_SOURCES = pgppubring.c ++neomutt_pgpring_LDADD = $(LIBOBJS) $(NCRYPT_LIBS) $(INTLLIBS) $(LIBMUTT) ++neomutt_pgpring_DEPENDENCIES = $(LIBOBJS) $(NCRYPT_DEPS) $(INTLDEPS) $(LIBMUTTDEPS) + + txt2c_SOURCES = txt2c.c + txt2c_LDADD = +@@ -130,7 +132,7 @@ LDADD = $(LIBOBJS) $(INTLLIBS) + dist-hook: + echo $(VERSION) > $(distdir)/.tarball-version + +-git_ver.h: $(mutt_SOURCES) $(SUBDIRS) ++git_ver.h: $(neomutt_SOURCES) $(SUBDIRS) + version=`git describe --dirty --abbrev=6 --match "neomutt-*" 2> /dev/null | sed -e 's/^neomutt-[0-9]\{8\}//' -e 's/g//'`; \ + echo 'const char *GitVer = "'$$version'";' > git_ver.h.tmp; \ + cmp -s git_ver.h.tmp git_ver.h || mv git_ver.h.tmp git_ver.h; \ +diff --git a/configure.ac b/configure.ac +index 1e888e86..7898fa1b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -4,7 +4,7 @@ dnl autoreconf -i + CFLAGS=$CFLAGS + LDFLAGS=$LDFLAGS + +-AC_INIT([NeoMutt], [20170912], [neomutt-devel@neomutt.org], [mutt], [https://www.neomutt.org]) ++AC_INIT([NeoMutt], [20170912], [neomutt-devel@neomutt.org], [neomutt], [https://www.neomutt.org]) + AC_CONFIG_SRCDIR(mutt.h) + AC_CONFIG_AUX_DIR([.build-aux]) + AM_INIT_AUTOMAKE +@@ -186,7 +186,7 @@ AC_ARG_WITH(mailpath, + AC_ARG_WITH(docdir, + AS_HELP_STRING([--with-docdir=PATH],[Specify where to put the documentation]), + [mutt_cv_docdir=$withval], +- [mutt_cv_docdir='${datarootdir}/doc/mutt']) ++ [mutt_cv_docdir='${datarootdir}/doc/neomutt']) + + AC_ARG_WITH(domain, + AS_HELP_STRING([--with-domain=DOMAIN],[Specify your DNS domain name]), +@@ -213,14 +213,14 @@ AS_IF([test x$use_gpgme = xyes && test x$gpgme_found = xno], [ + dnl --enable-pgp + AS_IF([test x$use_pgp != "xno"], [ + AC_DEFINE(CRYPT_BACKEND_CLASSIC_PGP, 1, [Define if you want classic PGP Support.]) +- PGPAUX_TARGET="pgpring\$(EXEEXT) pgpewrap\$(EXEEXT)" ++ PGPAUX_TARGET="neomutt_pgpring\$(EXEEXT) neomutt_pgpewrap\$(EXEEXT)" + build_ncrypt_pgp="yes" + ]) + + dnl --enable-smime + AS_IF([test x$use_smime != "xno"], [ + AC_DEFINE(CRYPT_BACKEND_CLASSIC_SMIME, 1, [Define if you want classic S/MIME support.]) +- SMIMEAUX_TARGET='$(top_srcdir)/contrib/smime_keys' ++ SMIMEAUX_TARGET='$(top_srcdir)/contrib/neomutt_smime_keys' + build_ncrypt_smime="yes" + ]) + +diff --git a/contrib/smime_keys b/contrib/neomutt_smime_keys +similarity index 100% +rename from contrib/smime_keys +rename to contrib/neomutt_smime_keys +diff --git a/contrib/pgp2.rc b/contrib/pgp2.rc +index bd01e2d2..08b592dd 100644 +--- a/contrib/pgp2.rc ++++ b/contrib/pgp2.rc +@@ -37,10 +37,10 @@ set pgp_export_command="pgp -kxaf +language=mutt %r" + set pgp_verify_key_command="pgp -kcc +language=mutt %r" + + # read in the public key ring +-set pgp_list_pubring_command="pgpring -2 %r" ++set pgp_list_pubring_command="neomutt_pgpring -2 %r" + + # read in the secret key ring +-set pgp_list_secring_command="pgpring -s -2 %r" ++set pgp_list_secring_command="neomutt_pgpring -s -2 %r" + + # pattern for good signature + set pgp_good_sign="Good signature" +diff --git a/contrib/pgp5.rc b/contrib/pgp5.rc +index 4440d6b7..cdd85217 100644 +--- a/contrib/pgp5.rc ++++ b/contrib/pgp5.rc +@@ -34,9 +34,9 @@ set pgp_export_command="pgpk -xa +language=mutt --OutputInformationFD=1 %r" + set pgp_verify_key_command="pgpk -c +batchmode +language=mutt --OutputInformationFD=1 %r" + + # read in the public key ring +-set pgp_list_pubring_command="pgpring -5 %r" ++set pgp_list_pubring_command="neomutt_pgpring -5 %r" + + # read in the secret key ring +-set pgp_list_secring_command="pgpring -5 -s %r" ++set pgp_list_secring_command="neomutt_pgpring -5 -s %r" + + +diff --git a/contrib/pgp6.rc b/contrib/pgp6.rc +index a8708042..6b1ef985 100644 +--- a/contrib/pgp6.rc ++++ b/contrib/pgp6.rc +@@ -31,10 +31,10 @@ set pgp_export_command="pgp6 +compatible -kxaf %r" + set pgp_verify_key_command="pgp6 +compatible -kcc %r" + + # read in the public key ring +-set pgp_list_pubring_command="pgpring -5 %r" ++set pgp_list_pubring_command="neomutt_pgpring -5 %r" + + # read in the secret key ring +-set pgp_list_secring_command="pgpring -s -5 %r" ++set pgp_list_secring_command="neomutt_pgpring -s -5 %r" + + # create a clearsigned message + set pgp_clearsign_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgp6 +compatible +verbose=0 +batchmode +clearsig -afst %?a? -u %a?" +diff --git a/contrib/smime.rc b/contrib/smime.rc +index 532ac9ec..aa9897fb 100644 +--- a/contrib/smime.rc ++++ b/contrib/smime.rc +@@ -52,7 +52,7 @@ set smime_get_signer_cert_command="openssl smime -verify -in %f -noverify -signe + set smime_get_cert_email_command="openssl x509 -in %f -noout -email" + + # Add a certificate to the database using smime_keys. +-set smime_import_cert_command="smime_keys add_cert %f" ++set smime_import_cert_command="neomutt_smime_keys add_cert %f" + + + +diff --git a/doc/Makefile.am b/doc/Makefile.am +index 9bfe7ea6..dffbe5f6 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -40,11 +40,11 @@ install-data-local: makedoc-all + $(MKDIR_P) $(DESTDIR)$(mandir)/man1 + $(MKDIR_P) $(DESTDIR)$(mandir)/man5 + $(MKDIR_P) $(DESTDIR)$(sysconfdir) +- $(INSTALL) -m 644 mutt.1 $(DESTDIR)$(mandir)/man1/mutt.1 +- $(INSTALL) -m 644 muttrc.man $(DESTDIR)$(mandir)/man5/muttrc.5 ++ $(INSTALL) -m 644 mutt.1 $(DESTDIR)$(mandir)/man1/neomutt.1 ++ $(INSTALL) -m 644 muttrc.man $(DESTDIR)$(mandir)/man5/neomuttrc.5 + $(INSTALL) -m 644 $(srcdir)/smime_keys.1 $(DESTDIR)$(mandir)/man1/smime_keys.1 +- $(INSTALL) -m 644 $(srcdir)/pgpewrap.1 $(DESTDIR)$(mandir)/man1/pgpewrap.1 +- $(INSTALL) -m 644 $(srcdir)/pgpring.1 $(DESTDIR)$(mandir)/man1/pgpring.1 ++ $(INSTALL) -m 644 $(srcdir)/pgpewrap.1 $(DESTDIR)$(mandir)/man1/neomutt_pgpewrap.1 ++ $(INSTALL) -m 644 $(srcdir)/pgpring.1 $(DESTDIR)$(mandir)/man1/neomutt_pgpring.1 + $(INSTALL) -m 644 $(srcdir)/mbox.5 $(DESTDIR)$(mandir)/man5/mbox.5 + $(INSTALL) -m 644 $(srcdir)/mmdf.5 $(DESTDIR)$(mandir)/man5/mmdf.5 + $(MKDIR_P) $(DESTDIR)$(docdir) +@@ -58,28 +58,28 @@ install-data-local: makedoc-all + -for f in $(HTML_DOCFILES); do \ + $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir); \ + done +- $(INSTALL) -m 644 Muttrc $(DESTDIR)$(sysconfdir)/Muttrc.dist +- -if [ -f $(DESTDIR)$(pkgdatadir)/Muttrc ]; then \ +- mv $(DESTDIR)$(pkgdatadir)/Muttrc* $(DESTDIR)$(sysconfdir); \ +- elif [ -f $(DESTDIR)$(pkgdatadir)/../Muttrc ]; then \ +- mv $(DESTDIR)$(pkgdatadir)/../Muttrc* $(DESTDIR)$(sysconfdir); \ +- elif [ ! -f $(DESTDIR)$(sysconfdir)/Muttrc ]; then \ +- $(INSTALL) -m 644 Muttrc $(DESTDIR)$(sysconfdir); \ ++ $(INSTALL) -m 644 Muttrc $(DESTDIR)$(sysconfdir)/neoMuttrc.dist ++ -if [ -f $(DESTDIR)$(pkgdatadir)/neoMuttrc ]; then \ ++ mv $(DESTDIR)$(pkgdatadir)/neoMuttrc* $(DESTDIR)$(sysconfdir); \ ++ elif [ -f $(DESTDIR)$(pkgdatadir)/../neoMuttrc ]; then \ ++ mv $(DESTDIR)$(pkgdatadir)/../neoMuttrc* $(DESTDIR)$(sysconfdir); \ ++ elif [ ! -f $(DESTDIR)$(sysconfdir)/neoMuttrc ]; then \ ++ $(INSTALL) -m 644 neoMuttrc $(DESTDIR)$(sysconfdir); \ + fi + -$(INSTALL) -m 644 $(srcdir)/neomutt-syntax.vim $(DESTDIR)$(docdir) + + uninstall-local: +- for f in mutt.1 smime_keys.1 pgpewrap.1 pgpring.1; do \ ++ for f in neomutt.1 smime_keys.1 neomutt_pgpewrap.1 neomutt_pgpring.1; do \ + rm -f $(DESTDIR)$(mandir)/man1/$$f; \ + done +- for f in muttrc.5 mbox.5 mmdf.5; do \ ++ for f in neomuttrc.5 mbox.5 mmdf.5; do \ + rm -f $(DESTDIR)$(mandir)/man5/$$f; \ + done + for f in $(srcdir_DOCFILES) $(topsrcdir_DOCFILES) $(HTML_DOCFILES); do \ + rm -f $(DESTDIR)$(docdir)/$$f; \ + done + -rm -f $(DESTDIR)$(docdir)/manual.txt +- for i in Muttrc; do \ ++ for i in neoMuttrc; do \ + if cmp -s $(DESTDIR)$(sysconfdir)/$$i.dist $(DESTDIR)$(sysconfdir)/$$i; then \ + rm $(DESTDIR)$(sysconfdir)/$$i; \ + fi; \ +@@ -122,7 +122,7 @@ sortcheck: manual.xml + clean-local: + rm -f *.html mutt.1 muttrc.man + +-DISTCLEANFILES = manual.txt manual.html manual.xml Muttrc ++DISTCLEANFILES = manual.txt manual.html manual.xml neoMuttrc + + muttrc.man: makedoc$(EXEEXT) $(top_srcdir)/init.h muttrc.man.head muttrc.man.tail + $(MAKEDOC_CPP) $(top_srcdir)/init.h | \ +diff --git a/lib/Makefile.am b/lib/Makefile.am +index ac7658a9..222cbc68 100644 +--- a/lib/Makefile.am ++++ b/lib/Makefile.am +@@ -7,7 +7,7 @@ EXTRA_DIST = lib.h base64.h buffer.h date.h debug.h exit.h file.h hash.h mapping + + AM_CPPFLAGS = -I$(top_srcdir) + +-noinst_LIBRARIES = libmutt.a ++noinst_LIBRARIES = libneomutt.a + +-libmutt_a_SOURCES = base64.c buffer.c date.c debug.c exit.c file.c hash.c mapping.c md5.c memory.c message.c sha1.c string.c ++libneomutt_a_SOURCES = base64.c buffer.c date.c debug.c exit.c file.c hash.c mapping.c md5.c memory.c message.c sha1.c string.c + +-- +2.13.6 + diff --git a/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20171006.patch b/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20171006.patch new file mode 100644 index 000000000000..6b591e329080 --- /dev/null +++ b/mail-client/neomutt/files/0001-Rename-mutt-to-neomutt-20171006.patch @@ -0,0 +1,25 @@ +From dd318718302850408319e36766329bed29b2c1c1 Mon Sep 17 00:00:00 2001 +From: Nicolas Bock <nicolasbock@gmail.com> +Date: Mon, 2 Oct 2017 14:04:34 -0600 +Subject: [PATCH] Rename mutt to neomutt + +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 7a3cfad9..4e2968fd 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -184,7 +184,7 @@ AC_ARG_WITH(mailpath, + AC_ARG_WITH(docdir, + AS_HELP_STRING([--with-docdir=PATH],[Specify where to put the documentation]), + [mutt_cv_docdir=$withval], +- [mutt_cv_docdir='${datarootdir}/doc/mutt']) ++ [mutt_cv_docdir='${datarootdir}/doc/neomutt']) + + AC_ARG_WITH(domain, + AS_HELP_STRING([--with-domain=DOMAIN],[Specify your DNS domain name]), +-- +2.13.6 + diff --git a/mail-client/neomutt/files/Muttrc b/mail-client/neomutt/files/Muttrc new file mode 100644 index 000000000000..6f0d63e3b527 --- /dev/null +++ b/mail-client/neomutt/files/Muttrc @@ -0,0 +1,19 @@ +# Some minimal Mutt settings, Gentoo-style. These reflect the Gentoo +# predilection for maildir folders. +# +# Please don't add settings to this file to change other user +# preferences (such as colors), since those can be hard for a user to +# undo if their preference doesn't match yours! For example, it is +# *impossible* currently in mutt to remove color settings from objects +# other than the index. + +set mbox_type=Maildir +set folder=~/.maildir +set spoolfile=~/.maildir/ +set record=~/.maildir-sent/ +set move=no + +# Maybe we shouldn't set index_format here, but this is a recommended +# one for maildir-style folders. + +set index_format="%4C %Z %{%b %d} %-16.16L %s" diff --git a/mail-client/neomutt/files/Muttrc.mbox b/mail-client/neomutt/files/Muttrc.mbox new file mode 100644 index 000000000000..1382a374ea68 --- /dev/null +++ b/mail-client/neomutt/files/Muttrc.mbox @@ -0,0 +1,9 @@ +# Some minimal Mutt settings, Gentoo-style. Since mutt was installed +# with USE=mbox, this file doesn't have any changes from the default +# mutt settings, making it very minimal indeed... +# +# Please don't add settings to this file to change other user +# preferences (such as colors), since those can be hard for a user to +# undo if their preference doesn't match yours! For example, it is +# *impossible* currently in mutt to remove color settings from objects +# other than the index. diff --git a/mail-client/neomutt/metadata.xml b/mail-client/neomutt/metadata.xml new file mode 100644 index 000000000000..2a3defe32d49 --- /dev/null +++ b/mail-client/neomutt/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>nicolasbock@gentoo.org</email> + <name>Nicolas Bock</name> + </maintainer> + <use> + <flag name="gpg">Enable support for <pkg>app-crypt/gpgme</pkg></flag> + <flag name="notmuch">Enable support for <pkg>net-mail/notmuch</pkg></flag> + <flag name="smime">Enable support for smime</flag> + <flag name="tokyocabinet">Enable tokyocabinet database backend for header + caching</flag> + <flag name="kyotocabinet">Enable kyotocabinet database backend for header + caching</flag> + <flag name="lmdb">Enable LMDB backend for header caching</flag> + </use> +</pkgmetadata> diff --git a/mail-client/neomutt/neomutt-20170714.ebuild b/mail-client/neomutt/neomutt-20170714.ebuild new file mode 100644 index 000000000000..db298e091290 --- /dev/null +++ b/mail-client/neomutt/neomutt-20170714.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic + +SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="A small but very powerful text-based mail client" +HOMEPAGE="https://www.neomutt.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="berkdb crypt debug doc gdbm gnutls gpg idn kerberos kyotocabinet + libressl lmdb nls notmuch qdbm sasl selinux slang smime ssl +symlink + tokyocabinet" + +CDEPEND=" + app-misc/mime-types + berkdb? ( >=sys-libs/db-4:= ) + gdbm? ( sys-libs/gdbm ) + kyotocabinet? ( dev-db/kyotocabinet ) + lmdb? ( dev-db/lmdb ) + nls? ( virtual/libintl ) + qdbm? ( dev-db/qdbm ) + tokyocabinet? ( dev-db/tokyocabinet ) + gnutls? ( >=net-libs/gnutls-1.0.17 ) + gpg? ( >=app-crypt/gpgme-0.9.0 ) + idn? ( net-dns/libidn ) + kerberos? ( virtual/krb5 ) + notmuch? ( net-mail/notmuch ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + !slang? ( sys-libs/ncurses:0 ) + slang? ( sys-libs/slang ) + ssl? ( + !libressl? ( >=dev-libs/openssl-0.9.6:0 ) + libressl? ( dev-libs/libressl ) + ) +" +DEPEND="${CDEPEND} + net-mail/mailbase + doc? ( + dev-libs/libxml2 + dev-libs/libxslt + app-text/docbook-xsl-stylesheets + || ( www-client/lynx www-client/w3m www-client/elinks ) + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-mutt ) +" + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + eapply "${FILESDIR}/0001-Rename-mutt-to-neomutt-${PV}.patch" + eapply_user + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + local myconf=( + "$(use_enable crypt pgp)" + "$(use_enable debug)" + "$(use_enable doc)" + "$(use_enable gpg gpgme)" + "$(use_enable nls)" + "$(use_enable smime)" + "$(use_enable notmuch)" + "$(use_with idn)" + "$(use_with kerberos gss)" + "$(use_with sasl)" + "$(use_with tokyocabinet)" + "$(use_with kyotocabinet)" + "$(use_with qdbm)" + "$(use_with gdbm)" + "$(use_with berkdb bdb)" + "$(use_with lmdb)" + "--with-$(usex slang slang curses)" + "--sysconfdir=${EPREFIX}/etc/${PN}" + "--with-docdir=${EPREFIX}/usr/share/doc/${PF}" + ) + + if use gnutls; then + myconf+=( "--with-gnutls" ) + elif use ssl; then + myconf+=( "--with-ssl" ) + fi + + econf "${myconf[@]}" +} + +src_install() { + emake DESTDIR="${D}" install + + # A newer file is provided by app-misc/mime-types. So we link it. + rm "${ED}"/etc/${PN}/mime.types || die + dosym "${EPREFIX}/etc/mime.types" /etc/${PN}/mime.types + + ## A man-page is always handy, so fake one + if use !doc; then + emake -C doc neomuttrc.man + # make the fake slightly better, bug #413405 + sed -e 's#@docdir@/manual.txt#http://www.neomutt.org/guide#' \ + -e 's#in @docdir@,#at http://www.neomutt.org/,#' \ + -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ + -e "s#@bindir@#${EPREFIX}/usr/bin#" \ + doc/mutt.man > neomutt.1 || die + cp doc/neomuttrc.man neomuttrc.5 || die + doman neomutt.1 neomuttrc.5 + fi + + dodoc COPYRIGHT ChangeLog* OPS* README* +} diff --git a/mail-client/neomutt/neomutt-20170912.ebuild b/mail-client/neomutt/neomutt-20170912.ebuild new file mode 100644 index 000000000000..af1e426e2d5b --- /dev/null +++ b/mail-client/neomutt/neomutt-20170912.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic + +SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="A small but very powerful text-based mail client" +HOMEPAGE="https://www.neomutt.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="berkdb crypt debug doc gdbm gnutls gpg idn kerberos kyotocabinet + libressl lmdb nls notmuch qdbm sasl selinux slang smime ssl +symlink + tokyocabinet" + +CDEPEND=" + app-misc/mime-types + berkdb? ( >=sys-libs/db-4:= ) + gdbm? ( sys-libs/gdbm ) + kyotocabinet? ( dev-db/kyotocabinet ) + lmdb? ( dev-db/lmdb ) + nls? ( virtual/libintl ) + qdbm? ( dev-db/qdbm ) + tokyocabinet? ( dev-db/tokyocabinet ) + gnutls? ( >=net-libs/gnutls-1.0.17 ) + gpg? ( >=app-crypt/gpgme-0.9.0 ) + idn? ( net-dns/libidn ) + kerberos? ( virtual/krb5 ) + notmuch? ( net-mail/notmuch ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + !slang? ( sys-libs/ncurses:0 ) + slang? ( sys-libs/slang ) + ssl? ( + !libressl? ( >=dev-libs/openssl-0.9.6:0 ) + libressl? ( dev-libs/libressl ) + ) +" +DEPEND="${CDEPEND} + net-mail/mailbase + doc? ( + dev-libs/libxml2 + dev-libs/libxslt + app-text/docbook-xsl-stylesheets + || ( www-client/lynx www-client/w3m www-client/elinks ) + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-mutt ) +" + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + eapply "${FILESDIR}/0001-Rename-mutt-to-neomutt-${PV}.patch" + eapply_user + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + local myconf=( + "$(use_enable crypt pgp)" + "$(use_enable debug)" + "$(use_enable doc)" + "$(use_enable gpg gpgme)" + "$(use_enable nls)" + "$(use_enable smime)" + "$(use_enable notmuch)" + "$(use_with idn)" + "$(use_with kerberos gss)" + "$(use_with sasl)" + "$(use_with tokyocabinet)" + "$(use_with kyotocabinet)" + "$(use_with qdbm)" + "$(use_with gdbm)" + "$(use_with berkdb bdb)" + "$(use_with lmdb)" + "--with-$(usex slang slang curses)" + "--sysconfdir=${EPREFIX}/etc/${PN}" + "--with-docdir=${EPREFIX}/usr/share/doc/${PF}" + ) + + if use gnutls; then + myconf+=( "--with-gnutls" ) + elif use ssl; then + myconf+=( "--with-ssl" ) + fi + + econf "${myconf[@]}" +} + +src_install() { + emake DESTDIR="${D}" install + + # A newer file is provided by app-misc/mime-types. So we link it. + rm "${ED}"/etc/${PN}/mime.types || die + dosym "${EPREFIX}/etc/mime.types" /etc/${PN}/mime.types + + # A man-page is always handy, so fake one + if use !doc; then + emake -C doc muttrc.man + # make the fake slightly better, bug #413405 + sed -e 's#@docdir@/manual.txt#http://www.neomutt.org/guide#' \ + -e 's#in @docdir@,#at http://www.neomutt.org/,#' \ + -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ + -e "s#@bindir@#${EPREFIX}/usr/bin#" \ + doc/mutt.man > neomutt.1 || die + cp doc/muttrc.man neomuttrc.5 || die + doman neomutt.1 neomuttrc.5 + fi + + dodoc COPYRIGHT LICENSE* ChangeLog* README* +} diff --git a/mail-client/neomutt/neomutt-20171006.ebuild b/mail-client/neomutt/neomutt-20171006.ebuild new file mode 100644 index 000000000000..1adc070a0981 --- /dev/null +++ b/mail-client/neomutt/neomutt-20171006.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic + +SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="A small but very powerful text-based mail client" +HOMEPAGE="https://www.neomutt.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="berkdb crypt debug doc gdbm gnutls gpg idn kerberos kyotocabinet + libressl lmdb nls notmuch qdbm sasl selinux slang smime ssl +symlink + tokyocabinet" + +CDEPEND=" + app-misc/mime-types + berkdb? ( >=sys-libs/db-4:= ) + gdbm? ( sys-libs/gdbm ) + kyotocabinet? ( dev-db/kyotocabinet ) + lmdb? ( dev-db/lmdb ) + nls? ( virtual/libintl ) + qdbm? ( dev-db/qdbm ) + tokyocabinet? ( dev-db/tokyocabinet ) + gnutls? ( >=net-libs/gnutls-1.0.17 ) + gpg? ( >=app-crypt/gpgme-0.9.0 ) + idn? ( net-dns/libidn ) + kerberos? ( virtual/krb5 ) + notmuch? ( net-mail/notmuch ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + !slang? ( sys-libs/ncurses:0 ) + slang? ( sys-libs/slang ) + ssl? ( + !libressl? ( >=dev-libs/openssl-0.9.6:0 ) + libressl? ( dev-libs/libressl ) + ) +" +DEPEND="${CDEPEND} + net-mail/mailbase + doc? ( + dev-libs/libxml2 + dev-libs/libxslt + app-text/docbook-xsl-stylesheets + || ( www-client/lynx www-client/w3m www-client/elinks ) + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-mutt ) +" + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + eapply "${FILESDIR}/0001-Rename-mutt-to-neomutt-${PV}.patch" + eapply_user + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + local myconf=( + "$(use_enable crypt pgp)" + "$(use_enable debug)" + "$(use_enable doc)" + "$(use_enable gpg gpgme)" + "$(use_enable nls)" + "$(use_enable smime)" + "$(use_enable notmuch)" + "$(use_with idn)" + "$(use_with kerberos gss)" + "$(use_with sasl)" + "$(use_with tokyocabinet)" + "$(use_with kyotocabinet)" + "$(use_with qdbm)" + "$(use_with gdbm)" + "$(use_with berkdb bdb)" + "$(use_with lmdb)" + "--with-$(usex slang slang curses)" + "--sysconfdir=${EPREFIX}/etc/${PN}" + "--with-docdir=${EPREFIX}/usr/share/doc/${PF}" + ) + + if use gnutls; then + myconf+=( "--with-gnutls" ) + elif use ssl; then + myconf+=( "--with-ssl" ) + fi + + econf "${myconf[@]}" +} + +src_install() { + emake DESTDIR="${D}" install + + # A newer file is provided by app-misc/mime-types. So we link it. + + # A man-page is always handy, so fake one + if use !doc; then + emake -C doc neomuttrc.man + # make the fake slightly better, bug #413405 + sed -e 's#@docdir@/manual.txt#http://www.neomutt.org/guide#' \ + -e 's#in @docdir@,#at http://www.neomutt.org/,#' \ + -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ + -e "s#@bindir@#${EPREFIX}/usr/bin#" \ + doc/neomutt.man > neomutt.1 || die + cp doc/neomuttrc.man neomuttrc.5 || die + doman neomutt.1 neomuttrc.5 + fi + + dodoc COPYRIGHT LICENSE* ChangeLog* README* +} diff --git a/mail-client/neomutt/neomutt-9999.ebuild b/mail-client/neomutt/neomutt-9999.ebuild new file mode 100644 index 000000000000..590236b4e3e5 --- /dev/null +++ b/mail-client/neomutt/neomutt-9999.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic git-r3 + +EGIT_REPO_URI="https://github.com/neomutt/neomutt.git" +EGIT_CHECKOUT_DIR="${WORKDIR}/neomutt-${P}" +KEYWORDS="" + +DESCRIPTION="A small but very powerful text-based mail client" +HOMEPAGE="https://www.neomutt.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="berkdb crypt debug doc gdbm gnutls gpg idn kerberos kyotocabinet + libressl lmdb nls notmuch qdbm sasl selinux slang smime ssl +symlink + tokyocabinet" + +CDEPEND=" + app-misc/mime-types + berkdb? ( >=sys-libs/db-4:= ) + gdbm? ( sys-libs/gdbm ) + kyotocabinet? ( dev-db/kyotocabinet ) + lmdb? ( dev-db/lmdb ) + nls? ( virtual/libintl ) + qdbm? ( dev-db/qdbm ) + tokyocabinet? ( dev-db/tokyocabinet ) + gnutls? ( >=net-libs/gnutls-1.0.17 ) + gpg? ( >=app-crypt/gpgme-0.9.0 ) + idn? ( net-dns/libidn ) + kerberos? ( virtual/krb5 ) + notmuch? ( net-mail/notmuch ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + !slang? ( sys-libs/ncurses:0 ) + slang? ( sys-libs/slang ) + ssl? ( + !libressl? ( >=dev-libs/openssl-0.9.6:0 ) + libressl? ( dev-libs/libressl ) + ) +" +DEPEND="${CDEPEND} + net-mail/mailbase + doc? ( + dev-libs/libxml2 + dev-libs/libxslt + app-text/docbook-xsl-stylesheets + || ( www-client/lynx www-client/w3m www-client/elinks ) + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-mutt ) +" + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + eapply_user + eautoreconf +} + +src_configure() { + local myconf=( + "$(use_enable crypt pgp)" + "$(use_enable debug)" + "$(use_enable doc)" + "$(use_enable gpg gpgme)" + "$(use_enable nls)" + "$(use_enable smime)" + "$(use_enable notmuch)" + "$(use_with idn)" + "$(use_with kerberos gss)" + "$(use_with sasl)" + "$(use_with tokyocabinet)" + "$(use_with kyotocabinet)" + "$(use_with qdbm)" + "$(use_with gdbm)" + "$(use_with berkdb bdb)" + "$(use_with lmdb)" + "--with-$(usex slang slang curses)" + "--sysconfdir=${EPREFIX}/etc/${PN}" + "--with-docdir=${EPREFIX}/usr/share/doc/${PF}" + ) + + if use gnutls; then + myconf+=( "--with-gnutls" ) + elif use ssl; then + myconf+=( "--with-ssl" ) + fi + + econf "${myconf[@]}" +} + +src_install() { + emake DESTDIR="${D}" install + + # A newer file is provided by app-misc/mime-types. So we link it. + #rm "${ED}"/etc/${PN}/mime.types || die + #dosym "${EPREFIX}/etc/mime.types" /etc/${PN}/mime.types + + # A man-page is always handy, so fake one + if use !doc; then + emake -C doc neomuttrc.man + # make the fake slightly better, bug #413405 + sed -e 's#@docdir@/manual.txt#http://www.neomutt.org/guide#' \ + -e 's#in @docdir@,#at http://www.neomutt.org/,#' \ + -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ + -e "s#@bindir@#${EPREFIX}/usr/bin#" \ + doc/neomutt.man > neomutt.1 || die + cp doc/neomuttrc.man neomuttrc.5 || die + doman neomutt.1 neomuttrc.5 + fi + + dodoc COPYRIGHT LICENSE* ChangeLog* README* +} |