Gentoo Archives: gentoo-commits

From: Nicolas Bock <nicolasbock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/neomutt/
Date: Tue, 03 Apr 2018 13:39:32
Message-Id: 1522762745.3444edbc3659ad58974e96d932efc6a83e5f2883.nicolasbock@gentoo
1 commit: 3444edbc3659ad58974e96d932efc6a83e5f2883
2 Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 13:38:27 2018 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 13:39:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3444edbc
7
8 mail-client/neomutt: Version bump neomutt-20180323
9
10 Closes: https://bugs.gentoo.org/651656
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 mail-client/neomutt/Manifest | 1 +
14 mail-client/neomutt/neomutt-20180323.ebuild | 140 ++++++++++++++++++++++++++++
15 2 files changed, 141 insertions(+)
16
17 diff --git a/mail-client/neomutt/Manifest b/mail-client/neomutt/Manifest
18 index 477a606c217..baa000cbc29 100644
19 --- a/mail-client/neomutt/Manifest
20 +++ b/mail-client/neomutt/Manifest
21 @@ -1,3 +1,4 @@
22 DIST neomutt-20171208.tar.gz 2703917 BLAKE2B 709cdb7b00e887f01bf6b1e805b25938ceca1a25d77c8674150e32ae4ac28aad10479ab54f172e2b07cab98b903973190faa138de1061ebbf4fcbe09d544ecf9 SHA512 e4f8a5f01d96d6f82959fe583634585deee28cf146c768e5049281b273c5b76b91ee01c9d9382a26f72a092c14341905129e73bf5c6ba19baae7823bc6680671
23 DIST neomutt-20171215.tar.gz 2680191 BLAKE2B 9826537ed985cf56e4a52e0938967645ca607fcd57f455e1a521a67875bacc397e1706099291fe5a7a350542d0bc07b7835a908c64d84067fb12e39f973af545 SHA512 8098f537e8ef7d3f7aa87fc875c0dc079b996285b786fe6fc6bdf18154c1282b03a4e19dd6902a110616443ca2b23008c8c1f5c4a615c53b620b537c50dfb658
24 DIST neomutt-20180223.tar.gz 2695087 BLAKE2B ebe19022dd23914dd3c529b49fac1b58cb965e8974b8cf2f7fd1f417cb9a3f0fcded951d5506092f90ad03b8fd209392143240b1d48560f9772242652a347817 SHA512 6fbbea9e182d087d8fe90094dfcbadaaca2878fa71e024e504999d1a54d853dcd346ea7aa32f421ed9dfdf90c42307f2796518dc43748805c4e36fd5755d4adc
25 +DIST neomutt-20180323.tar.gz 2650465 BLAKE2B 59f11208320e514119e60f6c85a876fed2693b9eae3127fc3fa5a35722a80dfd99b0c6b5a5074711d42b35d459e70f4dda3d29e7358e1d95d5d0d350438290d5 SHA512 997c697300768809823b8d8588c93003c6cd7fcc6cbe7ce524096033e91c618119f78c697ccd15b4c93751b3156d50e611974e8f8b332efb467c031385e9f819
26
27 diff --git a/mail-client/neomutt/neomutt-20180323.ebuild b/mail-client/neomutt/neomutt-20180323.ebuild
28 new file mode 100644
29 index 00000000000..f90289f77c0
30 --- /dev/null
31 +++ b/mail-client/neomutt/neomutt-20180323.ebuild
32 @@ -0,0 +1,140 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit eutils flag-o-matic
39 +
40 +if [[ ${PV} =~ 9999$ ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/neomutt/neomutt.git"
43 + EGIT_CHECKOUT_DIR="${WORKDIR}/neomutt-${P}"
44 +else
45 + SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
46 + KEYWORDS="~amd64 ~x86"
47 +fi
48 +
49 +DESCRIPTION="A small but very powerful text-based mail client"
50 +HOMEPAGE="https://www.neomutt.org/"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +IUSE="berkdb crypt doc gdbm gnutls gpg gpgme idn kerberos kyotocabinet
55 + libressl lmdb nls notmuch pgp_classic qdbm sasl selinux slang smime
56 + smime_classic ssl tokyocabinet"
57 +
58 +CDEPEND="
59 + app-misc/mime-types
60 + berkdb? (
61 + || (
62 + sys-libs/db:6.2
63 + sys-libs/db:5.3
64 + sys-libs/db:4.8
65 + )
66 + <sys-libs/db-6.3:=
67 + )
68 + gdbm? ( sys-libs/gdbm )
69 + kyotocabinet? ( dev-db/kyotocabinet )
70 + lmdb? ( dev-db/lmdb )
71 + nls? ( virtual/libintl )
72 + qdbm? ( dev-db/qdbm )
73 + tokyocabinet? ( dev-db/tokyocabinet )
74 + gnutls? ( >=net-libs/gnutls-1.0.17 )
75 + gpg? ( >=app-crypt/gpgme-0.9.0 )
76 + gpgme? ( >=app-crypt/gpgme-0.9.0 )
77 + idn? ( net-dns/libidn )
78 + kerberos? ( virtual/krb5 )
79 + notmuch? ( net-mail/notmuch )
80 + sasl? ( >=dev-libs/cyrus-sasl-2 )
81 + !slang? ( sys-libs/ncurses:0 )
82 + slang? ( sys-libs/slang )
83 + ssl? (
84 + !libressl? ( >=dev-libs/openssl-0.9.6:0 )
85 + libressl? ( dev-libs/libressl )
86 + )
87 +"
88 +DEPEND="${CDEPEND}
89 + dev-lang/tcl
90 + net-mail/mailbase
91 + doc? (
92 + dev-libs/libxml2
93 + dev-libs/libxslt
94 + app-text/docbook-xsl-stylesheets
95 + || ( www-client/lynx www-client/w3m www-client/elinks )
96 + )"
97 +RDEPEND="${CDEPEND}
98 + selinux? ( sec-policy/selinux-mutt )
99 +"
100 +
101 +S="${WORKDIR}/${PN}-${P}"
102 +
103 +src_configure() {
104 + local myconf=(
105 + "$(use_enable doc)"
106 + "$(use_enable nls)"
107 + "$(use_enable notmuch)"
108 +
109 + # During the transition of the crypto USE flags we need to support
110 + # both sets of flags. We do not want to emit a configuration setting
111 + # twice, since the second flag overrides the first, potentially
112 + # leading to unwanted settings. See https://bugs.gentoo.org/640824 for
113 + # details.
114 + "$(if use gpg || use gpgme; then echo "--enable"; else echo "--disable"; fi)-gpgme"
115 + "$(if use crypt || use pgp_classic; then echo "--enable"; else echo "--disable"; fi)-pgp"
116 + "$(if use smime || use smime_classic; then echo "--enable"; else echo "--disable"; fi)-smime"
117 +
118 + # Database backends.
119 + "$(use_enable berkdb bdb)"
120 + "$(use_enable gdbm)"
121 + "$(use_enable kyotocabinet)"
122 + "$(use_enable qdbm)"
123 + "$(use_enable tokyocabinet)"
124 +
125 + "$(use_enable idn)"
126 + "$(use_enable kerberos gss)"
127 + "$(use_enable lmdb)"
128 + "$(use_enable sasl)"
129 + "--with-ui=$(usex slang slang ncurses)"
130 + "--sysconfdir=${EPREFIX}/etc/${PN}"
131 + "$(use_enable ssl)"
132 + "$(use_enable gnutls)"
133 + )
134 +
135 + econf "${myconf[@]}"
136 +}
137 +
138 +src_install() {
139 + emake DESTDIR="${D}" install
140 +
141 + # A man-page is always handy, so fake one – here neomuttrc.5
142 + # (neomutt.1 already exists)
143 + if use !doc; then
144 + sed -n '/^\(SRCDIR\|EXEEXT\|CC_FOR_BUILD\)\s*=/p;$a\\n' \
145 + Makefile > doc/Makefile.fakedoc || die
146 + sed -n '/^\(MAKEDOC_CPP\s*=\|doc\/\(makedoc$(EXEEXT)\|neomuttrc.man\):\)/,/^[[:blank:]]*$/p' \
147 + doc/Makefile.autosetup >> doc/Makefile.fakedoc || die
148 + emake -f doc/Makefile.fakedoc doc/neomuttrc.man
149 + cp doc/neomuttrc.man doc/neomuttrc.5 || die
150 + doman doc/neomutt.1 doc/neomuttrc.5
151 + fi
152 +
153 + dodoc COPYRIGHT LICENSE* ChangeLog* README*
154 +}
155 +
156 +pkg_postinst() {
157 + if use crypt || use gpg || use smime; then
158 + ewarn "Pleae note that the crypto related USE flags of neomutt have changed."
159 + ewarn "(https://bugs.gentoo.org/637176)"
160 + ewarn "crypt -> pgp_classic"
161 + ewarn "gpg -> gpgme"
162 + ewarn "smime -> smime_classic"
163 + ewarn "The old USE flags still work but their use is deprecated and will"
164 + ewarn "be removed in a future release."
165 + if use gpg && ( use crypt || use smime ); then
166 + ewarn " Note that gpgme (old gpg) includes both pgp and smime"
167 + ewarn " support. You can probably remove pgp_classic (old crypt)"
168 + ewarn " and smime_classic (old smime) from your USE-flags and"
169 + ewarn " only enable gpgme."
170 + fi
171 + fi
172 +}