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: Fri, 25 Sep 2020 14:00:01
Message-Id: 1601042378.837fedab5b6d0832cdf26f75f9c1c865991e8e43.nicolasbock@gentoo
1 commit: 837fedab5b6d0832cdf26f75f9c1c865991e8e43
2 Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 13:05:14 2020 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 13:59:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=837fedab
7
8 mail-client/neomutt: version bump to 2020-09-25
9
10 Signed-off-by: Nicolas Bock <nicolasbock <AT> gentoo.org>
11
12 mail-client/neomutt/Manifest | 1 +
13 mail-client/neomutt/neomutt-20200925.ebuild | 149 ++++++++++++++++++++++++++++
14 2 files changed, 150 insertions(+)
15
16 diff --git a/mail-client/neomutt/Manifest b/mail-client/neomutt/Manifest
17 index ae4fa4a23a4..7337c9469ab 100644
18 --- a/mail-client/neomutt/Manifest
19 +++ b/mail-client/neomutt/Manifest
20 @@ -1,3 +1,4 @@
21 DIST neomutt-20200626.tar.gz 3349377 BLAKE2B 4fd75c2e8e8b3d55a63f954cb261c3930f871141c73d3fb8d2f42422735f3f862bae6966249187632aa2d55acb0372cd150381e11ce936cfef9976c71e43eb67 SHA512 f4ffc958bdd02107b2dd11bf321483a6e1e73a67e0540d034ab26f9eb13930ad80299b11f79acaedb4262f8f8643f9ce4baa388bc7f901b9ae35e9650acdcc9e
22 DIST neomutt-20200821.tar.gz 3404856 BLAKE2B db15997c89135680dcef7c6108ca1c2e120eade4a1e915f02de6f81758fed2a360f905e3dbe79f4ebfc17e86c3476d4823f227f5752a5558de13dde2cde6308a SHA512 f7cba9123613c34711b84ab9f5ccab840be38876da20b29d281c142a3b4f5d582b879d727c95232b0fcc7b41947d05bf89707232d3980e160bcdba68784d6eef
23 +DIST neomutt-20200925.tar.gz 3440056 BLAKE2B 6f9858a02bdfc8a947ba1a26557e1b5c0ec027845e67a15b6811853e5b8820b9a27419ced4eaa407ca9b32efcd53d7cf878c44c0a54a277018aef36127c49e59 SHA512 1ee89ee1b3581fe2b7dafd091e315fcf4d6f7b0644c15b08af8eb2720e83f07ae526b5659abb44430309821f48013fc85af0dd6f140729b2e52e5f874cf3bc50
24 DIST neomutt-test-files-8629adab700a75c54e8e28bf05ad092503a98f75.tar.gz 3673 BLAKE2B 50354f19aedc5fc07d59ecb5b38fa65de16119bc0929f47014bd35dab4d3a4e5953c8b35670f3440003cf0cbccc2d0d2b3a869dc929cdc3cd60b02790270fb54 SHA512 3d4962210bc558234d818801dcaa7851a0aef011c96d91c054af535186ffda42059fc61fb148c48e1b076999fe3159b31589a69a29ed1897f8928f52fcc157d3
25
26 diff --git a/mail-client/neomutt/neomutt-20200925.ebuild b/mail-client/neomutt/neomutt-20200925.ebuild
27 new file mode 100644
28 index 00000000000..d45bb541971
29 --- /dev/null
30 +++ b/mail-client/neomutt/neomutt-20200925.ebuild
31 @@ -0,0 +1,149 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit eutils
38 +
39 +if [[ ${PV} =~ 99999999$ ]]; then
40 + inherit git-r3
41 + EGIT_REPO_URI="https://github.com/neomutt/neomutt.git"
42 + EGIT_CHECKOUT_DIR="${WORKDIR}/neomutt-${P}"
43 +else
44 + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~x86"
46 +fi
47 +
48 +TEST_FILES_COMMIT=8629adab700a75c54e8e28bf05ad092503a98f75
49 +SRC_URI+=" test? ( https://github.com/${PN}/neomutt-test-files/archive/${TEST_FILES_COMMIT}.tar.gz -> neomutt-test-files-${TEST_FILES_COMMIT}.tar.gz )"
50 +
51 +DESCRIPTION="A small but very powerful text-based mail client"
52 +HOMEPAGE="https://neomutt.org/"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +IUSE="berkdb doc gdbm gnutls gpgme idn kerberos kyotocabinet libressl
57 + lmdb nls notmuch pgp-classic qdbm sasl selinux slang smime-classic
58 + ssl tokyocabinet test"
59 +
60 +CDEPEND="
61 + app-misc/mime-types
62 + berkdb? (
63 + || (
64 + sys-libs/db:6.2
65 + sys-libs/db:5.3
66 + sys-libs/db:4.8
67 + )
68 + <sys-libs/db-6.3:=
69 + )
70 + gdbm? ( sys-libs/gdbm:= )
71 + kyotocabinet? ( dev-db/kyotocabinet )
72 + lmdb? ( dev-db/lmdb:= )
73 + nls? ( virtual/libintl )
74 + qdbm? ( dev-db/qdbm )
75 + tokyocabinet? ( dev-db/tokyocabinet )
76 + gnutls? ( >=net-libs/gnutls-1.0.17:= )
77 + gpgme? ( >=app-crypt/gpgme-0.9.0:= )
78 + idn? ( net-dns/libidn:= )
79 + kerberos? ( virtual/krb5 )
80 + notmuch? ( net-mail/notmuch:= )
81 + sasl? ( >=dev-libs/cyrus-sasl-2 )
82 + !slang? ( sys-libs/ncurses:0= )
83 + slang? ( sys-libs/slang )
84 + ssl? (
85 + !libressl? ( >=dev-libs/openssl-1.0.2u:0= )
86 + libressl? ( dev-libs/libressl:= )
87 + )
88 +"
89 +DEPEND="${CDEPEND}
90 + dev-lang/tcl:=
91 + net-mail/mailbase
92 + doc? (
93 + dev-libs/libxml2
94 + dev-libs/libxslt
95 + app-text/docbook-xsl-stylesheets
96 + || (
97 + www-client/lynx
98 + www-client/w3m
99 + www-client/elinks
100 + )
101 + )
102 +"
103 +RDEPEND="${CDEPEND}
104 + selinux? ( sec-policy/selinux-mutt )
105 +"
106 +
107 +RESTRICT="!test? ( test )"
108 +
109 +src_configure() {
110 + local myconf=(
111 + "$(usex doc --full-doc --disable-doc)"
112 + "$(use_enable nls)"
113 + "$(use_enable notmuch)"
114 +
115 + "$(use_enable gpgme)"
116 + "$(use_enable pgp-classic pgp)"
117 + "$(use_enable smime-classic smime)"
118 +
119 + # Database backends.
120 + "$(use_enable berkdb bdb)"
121 + "$(use_enable gdbm)"
122 + "$(use_enable kyotocabinet)"
123 + "$(use_enable qdbm)"
124 + "$(use_enable tokyocabinet)"
125 +
126 + "$(use_enable idn)"
127 + "$(use_enable kerberos gss)"
128 + "$(use_enable lmdb)"
129 + "$(use_enable sasl)"
130 + "--with-ui=$(usex slang slang ncurses)"
131 + "--sysconfdir=${EPREFIX}/etc/${PN}"
132 + "$(use_enable ssl)"
133 + "$(use_enable gnutls)"
134 +
135 + "$(usex test --testing --disable-testing)"
136 + )
137 +
138 + econf CCACHE=none "${myconf[@]}"
139 +}
140 +
141 +src_test() {
142 + local test_dir="$(readlink --canonicalize ${S}/../neomutt-test-files-${TEST_FILES_COMMIT})"
143 + pushd ${test_dir} || die "Could not cd into test_dir"
144 + NEOMUTT_TEST_DIR="${test_dir}" ./setup.sh \
145 + || die "Failed to run the setup.sh script"
146 + popd || die "Could not cd back"
147 + NEOMUTT_TEST_DIR="${test_dir}" emake test
148 +}
149 +
150 +src_install() {
151 + emake DESTDIR="${D}" install
152 +
153 + # A man-page is always handy, so fake one - here neomuttrc.5 (neomutt.1
154 + # already exists)
155 + if use !doc; then
156 + sed -n \
157 + -e '/^\(CC_FOR_BUILD\|CFLAGS_FOR_BUILD\)\s*=/p' \
158 + -e '/^\(EXTRA_CFLAGS_FOR_BUILD\|LDFLAGS_FOR_BUILD\)\s*=/p' \
159 + -e '/^\(EXEEXT\|SRCDIR\)\s*=/p' \
160 + Makefile > docs/Makefile.fakedoc || die
161 + sed -n \
162 + -e '/^MAKEDOC_CPP\s*=/,/^\s*$/p' \
163 + -e '/^docs\/\(makedoc$(EXEEXT)\|neomutt\.1\|neomuttrc\.5\)\s*:/,/^\s*$/p' \
164 + docs/Makefile.autosetup >> docs/Makefile.fakedoc || die
165 + emake -f docs/Makefile.fakedoc docs/neomutt.1
166 + emake -f docs/Makefile.fakedoc docs/neomuttrc.5
167 + doman docs/neomutt.1 docs/neomuttrc.5
168 + fi
169 +
170 + dodoc LICENSE* ChangeLog* README*
171 +}
172 +
173 +pkg_postinst() {
174 + if use gpgme && ( use pgp-classic || use smime-classic ); then
175 + ewarn " Note that gpgme (old gpg) includes both pgp and smime"
176 + ewarn " support. You can probably remove pgp-classic (old crypt)"
177 + ewarn " and smime-classic (old smime) from your USE-flags and"
178 + ewarn " only enable gpgme."
179 + fi
180 +}