1 |
commit: 7d5fb55938debf3717a4ed44ee8012de440c2e0d |
2 |
Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 15 17:38:23 2021 +0000 |
4 |
Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 15 17:39:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d5fb559 |
7 |
|
8 |
mail-client/neomutt: Version bump to 20211015 |
9 |
|
10 |
Signed-off-by: Nicolas Bock <nicolasbock <AT> gentoo.org> |
11 |
|
12 |
mail-client/neomutt/Manifest | 1 + |
13 |
mail-client/neomutt/neomutt-20211015.ebuild | 162 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 163 insertions(+) |
15 |
|
16 |
diff --git a/mail-client/neomutt/Manifest b/mail-client/neomutt/Manifest |
17 |
index 222c371feb0..d5903cf7521 100644 |
18 |
--- a/mail-client/neomutt/Manifest |
19 |
+++ b/mail-client/neomutt/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST neomutt-20210205.tar.gz 3476980 BLAKE2B 2b8f07a957d668f0903ae3f48d72e0b00414b9ed0411723bc725cd2369ed16c31e461799a0161f3b6caecb8b3a182a0ad9ca7bbb5431ed9ff67cae5dc87b11e5 SHA512 4e9faaa989eb17d1f65e835d3ad37bbda3307f9a939f351776d4cb4677d856fa998ba0eff04bf0cf344485977077695e07c55e79e0800888f646c46fbfac8554 |
22 |
+DIST neomutt-20211015.tar.gz 3727778 BLAKE2B 2a2c57014b089a86ee38a261251ef1ee8c07d25753358cde4f3be0897a04f1fa54828e7cbe7435d004adc49afa40bcfd80ad7e9a8f4c4e7b11ebd7d7f7f60a2a SHA512 b466fa73567b3f97c084133315dc8b35578ca369018a7beccb0e6f18324add262c591671c4fc60defd3c9623db7e95e2f631a6df10b0ef3869cf0e4a6b0eec03 |
23 |
DIST neomutt-test-files-8629adab700a75c54e8e28bf05ad092503a98f75.tar.gz 3673 BLAKE2B 50354f19aedc5fc07d59ecb5b38fa65de16119bc0929f47014bd35dab4d3a4e5953c8b35670f3440003cf0cbccc2d0d2b3a869dc929cdc3cd60b02790270fb54 SHA512 3d4962210bc558234d818801dcaa7851a0aef011c96d91c054af535186ffda42059fc61fb148c48e1b076999fe3159b31589a69a29ed1897f8928f52fcc157d3 |
24 |
|
25 |
diff --git a/mail-client/neomutt/neomutt-20211015.ebuild b/mail-client/neomutt/neomutt-20211015.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..dd0fe7e9a57 |
28 |
--- /dev/null |
29 |
+++ b/mail-client/neomutt/neomutt-20211015.ebuild |
30 |
@@ -0,0 +1,162 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit toolchain-funcs |
37 |
+ |
38 |
+if [[ ${PV} =~ 99999999$ ]]; then |
39 |
+ inherit git-r3 |
40 |
+ EGIT_REPO_URI="https://github.com/neomutt/neomutt.git" |
41 |
+else |
42 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ KEYWORDS="~amd64 ~ppc64 ~s390 ~x86" |
44 |
+fi |
45 |
+ |
46 |
+TEST_FILES_COMMIT=8629adab700a75c54e8e28bf05ad092503a98f75 |
47 |
+SRC_URI+=" test? ( https://github.com/${PN}/neomutt-test-files/archive/${TEST_FILES_COMMIT}.tar.gz -> neomutt-test-files-${TEST_FILES_COMMIT}.tar.gz )" |
48 |
+ |
49 |
+DESCRIPTION="A small but very powerful text-based mail client" |
50 |
+HOMEPAGE="https://neomutt.org/" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+IUSE="autocrypt berkdb doc gdbm gnutls gpgme idn kerberos kyotocabinet |
55 |
+ lmdb lz4 nls notmuch pgp-classic qdbm sasl selinux slang smime-classic |
56 |
+ ssl tokyocabinet test zlib zstd" |
57 |
+REQUIRED_USE=" |
58 |
+ autocrypt? ( gpgme )" |
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-1.13.1:= ) |
78 |
+ autocrypt? ( >=dev-db/sqlite-3 ) |
79 |
+ idn? ( net-dns/libidn:= ) |
80 |
+ kerberos? ( virtual/krb5 ) |
81 |
+ notmuch? ( net-mail/notmuch:= ) |
82 |
+ sasl? ( >=dev-libs/cyrus-sasl-2 ) |
83 |
+ !slang? ( sys-libs/ncurses:0= ) |
84 |
+ slang? ( sys-libs/slang ) |
85 |
+ ssl? ( >=dev-libs/openssl-1.0.2u:0= ) |
86 |
+ lz4? ( app-arch/lz4 ) |
87 |
+ zlib? ( sys-libs/zlib ) |
88 |
+ zstd? ( app-arch/zstd ) |
89 |
+" |
90 |
+DEPEND="${CDEPEND} |
91 |
+ dev-lang/tcl:= |
92 |
+ net-mail/mailbase |
93 |
+ doc? ( |
94 |
+ dev-libs/libxml2 |
95 |
+ dev-libs/libxslt |
96 |
+ app-text/docbook-xsl-stylesheets |
97 |
+ || ( |
98 |
+ www-client/lynx |
99 |
+ www-client/w3m |
100 |
+ www-client/elinks |
101 |
+ ) |
102 |
+ ) |
103 |
+" |
104 |
+RDEPEND="${CDEPEND} |
105 |
+ selinux? ( sec-policy/selinux-mutt ) |
106 |
+" |
107 |
+ |
108 |
+RESTRICT="!test? ( test )" |
109 |
+ |
110 |
+src_configure() { |
111 |
+ local myconf=( |
112 |
+ "$(usex doc --full-doc --disable-doc)" |
113 |
+ "$(use_enable nls)" |
114 |
+ "$(use_enable notmuch)" |
115 |
+ |
116 |
+ "$(use_enable autocrypt)" |
117 |
+ "$(use_enable gpgme)" |
118 |
+ "$(use_enable pgp-classic pgp)" |
119 |
+ "$(use_enable smime-classic smime)" |
120 |
+ |
121 |
+ # Database backends. |
122 |
+ "$(use_enable berkdb bdb)" |
123 |
+ "$(use_enable gdbm)" |
124 |
+ "$(use_enable kyotocabinet)" |
125 |
+ "$(use_enable qdbm)" |
126 |
+ "$(use_enable tokyocabinet)" |
127 |
+ |
128 |
+ # Header compression. |
129 |
+ "$(use_enable lz4)" |
130 |
+ "$(use_enable zlib)" |
131 |
+ "$(use_enable zstd)" |
132 |
+ |
133 |
+ "$(use_enable idn)" |
134 |
+ "$(use_enable kerberos gss)" |
135 |
+ "$(use_enable lmdb)" |
136 |
+ "$(use_enable sasl)" |
137 |
+ "--with-ui=$(usex slang slang ncurses)" |
138 |
+ "--sysconfdir=${EPREFIX}/etc/${PN}" |
139 |
+ "$(use_enable ssl)" |
140 |
+ "$(use_enable gnutls)" |
141 |
+ |
142 |
+ "$(usex test --testing --disable-testing)" |
143 |
+ ) |
144 |
+ |
145 |
+ econf CCACHE=none CC_FOR_BUILD=$(tc-getCC) "${myconf[@]}" |
146 |
+} |
147 |
+ |
148 |
+src_test() { |
149 |
+ local test_dir="$(readlink --canonicalize ${S}/../neomutt-test-files-${TEST_FILES_COMMIT})" |
150 |
+ pushd ${test_dir} || die "Could not cd into test_dir" |
151 |
+ NEOMUTT_TEST_DIR="${test_dir}" ./setup.sh \ |
152 |
+ || die "Failed to run the setup.sh script" |
153 |
+ popd || die "Could not cd back" |
154 |
+ NEOMUTT_TEST_DIR="${test_dir}" emake test |
155 |
+} |
156 |
+ |
157 |
+src_install() { |
158 |
+ emake DESTDIR="${D}" install |
159 |
+ |
160 |
+ # A man-page is always handy, so fake one - here neomuttrc.5 (neomutt.1 |
161 |
+ # already exists) |
162 |
+ if use !doc; then |
163 |
+ sed -n \ |
164 |
+ -e '/^\(CC_FOR_BUILD\|CFLAGS_FOR_BUILD\)\s*=/p' \ |
165 |
+ -e '/^\(EXTRA_CFLAGS_FOR_BUILD\|LDFLAGS_FOR_BUILD\)\s*=/p' \ |
166 |
+ -e '/^\(EXEEXT\|SRCDIR\)\s*=/p' \ |
167 |
+ Makefile > docs/Makefile.fakedoc || die |
168 |
+ sed -n \ |
169 |
+ -e '/^MAKEDOC_CPP\s*=/,/^\s*$/p' \ |
170 |
+ -e '/^docs\/\(makedoc$(EXEEXT)\|neomutt\.1\|neomuttrc\.5\)\s*:/,/^\s*$/p' \ |
171 |
+ docs/Makefile.autosetup >> docs/Makefile.fakedoc || die |
172 |
+ emake -f docs/Makefile.fakedoc docs/neomutt.1 |
173 |
+ emake -f docs/Makefile.fakedoc docs/neomuttrc.5 |
174 |
+ doman docs/neomutt.1 docs/neomuttrc.5 |
175 |
+ fi |
176 |
+ |
177 |
+ dodoc LICENSE* ChangeLog* README* |
178 |
+} |
179 |
+ |
180 |
+pkg_postinst() { |
181 |
+ if use gpgme && ( use pgp-classic || use smime-classic ); then |
182 |
+ ewarn " Note that gpgme (old gpg) includes both pgp and smime" |
183 |
+ ewarn " support. You can probably remove pgp-classic (old crypt)" |
184 |
+ ewarn " and smime-classic (old smime) from your USE-flags and" |
185 |
+ ewarn " only enable gpgme." |
186 |
+ fi |
187 |
+ |
188 |
+ if use autocrypt && ! use idn; then |
189 |
+ ewarn " It is highly recommended that NeoMutt be also configured" |
190 |
+ ewarn " with idn when autocrypt is enabled." |
191 |
+ fi |
192 |
+} |