1 |
commit: e4ef3e09eaff3575e918104c835ebded6e94b3fc |
2 |
Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 13:57:07 2020 +0000 |
4 |
Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 14:46:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ef3e09 |
7 |
|
8 |
mail-client/neomutt: Updated live ebuild |
9 |
|
10 |
This change syncronizes the live ebuild with the latest release version |
11 |
of neomutt. This includes the new tests. |
12 |
|
13 |
Signed-off-by: Nicolas Bock <nicolasbock <AT> gentoo.org> |
14 |
|
15 |
mail-client/neomutt/neomutt-99999999.ebuild | 65 +++++++++++++++++++---------- |
16 |
1 file changed, 42 insertions(+), 23 deletions(-) |
17 |
|
18 |
diff --git a/mail-client/neomutt/neomutt-99999999.ebuild b/mail-client/neomutt/neomutt-99999999.ebuild |
19 |
index 7cfa7fbe26d..d45bb541971 100644 |
20 |
--- a/mail-client/neomutt/neomutt-99999999.ebuild |
21 |
+++ b/mail-client/neomutt/neomutt-99999999.ebuild |
22 |
@@ -1,9 +1,9 @@ |
23 |
-# Copyright 1999-2019 Gentoo Authors |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
EAPI=7 |
28 |
|
29 |
-inherit eutils flag-o-matic |
30 |
+inherit eutils |
31 |
|
32 |
if [[ ${PV} =~ 99999999$ ]]; then |
33 |
inherit git-r3 |
34 |
@@ -14,6 +14,9 @@ else |
35 |
KEYWORDS="~amd64 ~x86" |
36 |
fi |
37 |
|
38 |
+TEST_FILES_COMMIT=8629adab700a75c54e8e28bf05ad092503a98f75 |
39 |
+SRC_URI+=" test? ( https://github.com/${PN}/neomutt-test-files/archive/${TEST_FILES_COMMIT}.tar.gz -> neomutt-test-files-${TEST_FILES_COMMIT}.tar.gz )" |
40 |
+ |
41 |
DESCRIPTION="A small but very powerful text-based mail client" |
42 |
HOMEPAGE="https://neomutt.org/" |
43 |
|
44 |
@@ -21,7 +24,7 @@ LICENSE="GPL-2" |
45 |
SLOT="0" |
46 |
IUSE="berkdb doc gdbm gnutls gpgme idn kerberos kyotocabinet libressl |
47 |
lmdb nls notmuch pgp-classic qdbm sasl selinux slang smime-classic |
48 |
- ssl tokyocabinet" |
49 |
+ ssl tokyocabinet test" |
50 |
|
51 |
CDEPEND=" |
52 |
app-misc/mime-types |
53 |
@@ -33,39 +36,44 @@ CDEPEND=" |
54 |
) |
55 |
<sys-libs/db-6.3:= |
56 |
) |
57 |
- gdbm? ( sys-libs/gdbm ) |
58 |
+ gdbm? ( sys-libs/gdbm:= ) |
59 |
kyotocabinet? ( dev-db/kyotocabinet ) |
60 |
- lmdb? ( dev-db/lmdb ) |
61 |
+ lmdb? ( dev-db/lmdb:= ) |
62 |
nls? ( virtual/libintl ) |
63 |
qdbm? ( dev-db/qdbm ) |
64 |
tokyocabinet? ( dev-db/tokyocabinet ) |
65 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
66 |
- gpgme? ( >=app-crypt/gpgme-0.9.0 ) |
67 |
+ gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
68 |
+ gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
69 |
idn? ( net-dns/libidn:= ) |
70 |
kerberos? ( virtual/krb5 ) |
71 |
- notmuch? ( net-mail/notmuch ) |
72 |
+ notmuch? ( net-mail/notmuch:= ) |
73 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
74 |
- !slang? ( sys-libs/ncurses:0 ) |
75 |
+ !slang? ( sys-libs/ncurses:0= ) |
76 |
slang? ( sys-libs/slang ) |
77 |
ssl? ( |
78 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
79 |
- libressl? ( dev-libs/libressl ) |
80 |
+ !libressl? ( >=dev-libs/openssl-1.0.2u:0= ) |
81 |
+ libressl? ( dev-libs/libressl:= ) |
82 |
) |
83 |
" |
84 |
DEPEND="${CDEPEND} |
85 |
- dev-lang/tcl |
86 |
+ dev-lang/tcl:= |
87 |
net-mail/mailbase |
88 |
doc? ( |
89 |
dev-libs/libxml2 |
90 |
dev-libs/libxslt |
91 |
app-text/docbook-xsl-stylesheets |
92 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
93 |
- )" |
94 |
+ || ( |
95 |
+ www-client/lynx |
96 |
+ www-client/w3m |
97 |
+ www-client/elinks |
98 |
+ ) |
99 |
+ ) |
100 |
+" |
101 |
RDEPEND="${CDEPEND} |
102 |
selinux? ( sec-policy/selinux-mutt ) |
103 |
" |
104 |
|
105 |
-S="${WORKDIR}/${PN}-${P}" |
106 |
+RESTRICT="!test? ( test )" |
107 |
|
108 |
src_configure() { |
109 |
local myconf=( |
110 |
@@ -92,29 +100,40 @@ src_configure() { |
111 |
"--sysconfdir=${EPREFIX}/etc/${PN}" |
112 |
"$(use_enable ssl)" |
113 |
"$(use_enable gnutls)" |
114 |
+ |
115 |
+ "$(usex test --testing --disable-testing)" |
116 |
) |
117 |
|
118 |
econf CCACHE=none "${myconf[@]}" |
119 |
} |
120 |
|
121 |
+src_test() { |
122 |
+ local test_dir="$(readlink --canonicalize ${S}/../neomutt-test-files-${TEST_FILES_COMMIT})" |
123 |
+ pushd ${test_dir} || die "Could not cd into test_dir" |
124 |
+ NEOMUTT_TEST_DIR="${test_dir}" ./setup.sh \ |
125 |
+ || die "Failed to run the setup.sh script" |
126 |
+ popd || die "Could not cd back" |
127 |
+ NEOMUTT_TEST_DIR="${test_dir}" emake test |
128 |
+} |
129 |
+ |
130 |
src_install() { |
131 |
emake DESTDIR="${D}" install |
132 |
|
133 |
- # A man-page is always handy, so fake one – here neomuttrc.5 |
134 |
- # (neomutt.1 already exists) |
135 |
+ # A man-page is always handy, so fake one - here neomuttrc.5 (neomutt.1 |
136 |
+ # already exists) |
137 |
if use !doc; then |
138 |
sed -n \ |
139 |
-e '/^\(CC_FOR_BUILD\|CFLAGS_FOR_BUILD\)\s*=/p' \ |
140 |
-e '/^\(EXTRA_CFLAGS_FOR_BUILD\|LDFLAGS_FOR_BUILD\)\s*=/p' \ |
141 |
-e '/^\(EXEEXT\|SRCDIR\)\s*=/p' \ |
142 |
- Makefile > doc/Makefile.fakedoc || die |
143 |
+ Makefile > docs/Makefile.fakedoc || die |
144 |
sed -n \ |
145 |
-e '/^MAKEDOC_CPP\s*=/,/^\s*$/p' \ |
146 |
- -e '/^doc\/\(makedoc$(EXEEXT)\|neomutt\.1\|neomuttrc\.5\)\s*:/,/^\s*$/p' \ |
147 |
- doc/Makefile.autosetup >> doc/Makefile.fakedoc || die |
148 |
- emake -f doc/Makefile.fakedoc doc/neomutt.1 |
149 |
- emake -f doc/Makefile.fakedoc doc/neomuttrc.5 |
150 |
- doman doc/neomutt.1 doc/neomuttrc.5 |
151 |
+ -e '/^docs\/\(makedoc$(EXEEXT)\|neomutt\.1\|neomuttrc\.5\)\s*:/,/^\s*$/p' \ |
152 |
+ docs/Makefile.autosetup >> docs/Makefile.fakedoc || die |
153 |
+ emake -f docs/Makefile.fakedoc docs/neomutt.1 |
154 |
+ emake -f docs/Makefile.fakedoc docs/neomuttrc.5 |
155 |
+ doman docs/neomutt.1 docs/neomuttrc.5 |
156 |
fi |
157 |
|
158 |
dodoc LICENSE* ChangeLog* README* |