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